Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Various Accept types appear to return different results #6804

Open
ebremer opened this issue May 31, 2023 · 4 comments
Open

Various Accept types appear to return different results #6804

ebremer opened this issue May 31, 2023 · 4 comments
Assignees

Comments

@ebremer
Copy link

ebremer commented May 31, 2023

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
Copy link
Member

@TomDemeranville Any thoughts about this?

@TomDemeranville
Copy link
Contributor

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
Copy link
Contributor

@ebremer
Copy link
Author

ebremer commented Dec 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants