ORCID / ORCID-Source

ORCID Open Source Project
https://orcid.org
Other
396 stars 145 forks source link

Various Accept types appear to return different results #6804

Open ebremer opened 1 year ago

ebremer commented 1 year ago

Comparing the result MIME types for the same URL: text/turtle application/ld+json application/rdf+xml application/n-triples

all return effectively different results. JSON-LD seems to have the most, while turtle, n-triples, RDF/XML return data missing many of the same elements as JSON-LD such as affiliation data. JSON-LD is the only one containing the Schema.org name space.

Turtle has record date/update times

<http://pub.orcid.org/orcid-pub-web/experimental_rdf_v1/0000-0002-7533-5580>
        rdf:type              foaf:PersonalProfileDocument ;
        pav:createdBy         <https://orcid.org/0000-0002-7533-5580> ;
        pav:createdOn         "2015-01-13T09:22:09.741Z"^^xsd:dateTime ;
        pav:createdWith       <https://orcid.org> ;
        pav:lastUpdateOn      "2023-03-31T10:21:11.304Z"^^xsd:dateTime ;
        prov:generatedAtTime  "2023-03-31T10:21:11.304Z"^^xsd:dateTime ;
        prov:wasAttributedTo  <https://orcid.org/0000-0002-7533-5580> ;
        foaf:maker            <https://orcid.org/0000-0002-7533-5580> ;
        foaf:primaryTopic     <https://orcid.org/0000-0002-7533-5580> .

whereas json-ld does not.

wjrsimpson commented 10 months ago

@TomDemeranville Any thoughts about this?

TomDemeranville commented 10 months ago

You're right about our JSON-LD, it uses a different namespace from the other endpoints.

The turtle/rdf data was put in place many years ago by the community. One of the few open source contributions we've had. A few years later we added the JSON-LD response to contain more information based on the schema.org namespace.

We didn't update the other LOD formats as they were being used by applications, although none of the LOD formats are used much compared to our native formats.

TomDemeranville commented 10 months ago

Out documentation on this is here: https://info.orcid.org/ufaqs/does-orcid-support-schema-org-linked-open-data-and-json-ld/

ebremer commented 10 months ago

I'd prefer to use an LOD format. I end up using your format as it is more complete and then perform my own mapping to RDF.