mjordan/autocomplete_endpoint

Provide a default URI for vocabulary members

Opened this issue · 2 comments

Instead of making people maintaining vocabularies come up with a unique URI for each one, allow the URI field to be empty on creation. If it is empty, autogenerate a URI using the entity's UUID and a base URL. The base URL should be configurable and not tied to Drupal's hostname.

https://www.w3.org/TR/ld-bp/#HTTP-URIS provides guidance on URIs.

Attempted to use the Drupal module field_token_value, but there appears to be a problem specifically with using [node:url] as a default value when saving a term. The developer marked as "won't fix", but perhaps there's something that could be done with this.