mjordan / persistent_identifiers

Drupal 8/9 Module that provides a generalized framework for minting and persisting persistent identifiers (DOIs, ARKs, etc.).
GNU General Public License v2.0
5 stars 11 forks source link

Allow admin to determine how the persitent ID field maps to RDF #8

Closed mjordan closed 3 years ago

mjordan commented 4 years ago

schema:sameAs is a good default. This module can then implement a hook (hook_jsonld_alter_normalized_array?) to emit the RDF.

mjordan commented 4 years ago

Resolved with ad7b5dbfefca76de3074c7e80942d788436bda57. Admin can choose to map it to JSON-LD, and what to prepend the PI with, but not what property it's mapped to (it's mapped to schema:sameAs).

mjordan commented 3 years ago

Repoening, it appears this option doesn't do anything.

mjordan commented 3 years ago

Currently, by default Islandora emits a SameAs that has property that has the node URL as its object:

   "http://schema.org/sameAs": [
        {
          "@id": "https://future.islandora.ca/node/8"
        }
      ]

README says this option is supposed to emit another SameAs with the first identifier as it's object, e.g.:

   "http://schema.org/sameAs": [
        {
          "@id": "https://future.islandora.ca/node/8"
        },
        {
          "@id": "https://ids-n2t2-stg.n2t.net/ark:/99999/fq3js30"
        }
      ]

We also need better documentation as to what the "Resolver base URL" does - for PIDs that do not start with and http URL like DOIs, it provides a way to prepend a resolver URL.

mjordan commented 3 years ago

Resolved with 84e9f5ce311e14c80ef4baba1399919e0c959f34.