Other Resources:
DOI Content in Schema.org in JSON-LD Format
How to represent DOI content in Schema.org in JSON-LD format?
✍: FYIcenter.com
Schema.org in JSON-LD is the LD (Linked Data) style of JSON format
developed by schema.org
It contains embedded links to allow applications to
follow related data that are hosted on different sites across the Web.
You can use the DOI Content Negotiation service provided by doi.org to represent the content of a given DOI in Schema.org in JSON-LD format.
The Schema.org in JSON-LD format is triggered by the "application/vnd.schemaorg.ld+json" MIME type as shown this HTTP request syntax:
GET https://doi.org/{doi} HTTP/1.1 Accept: application/vnd.schemaorg.ld+json
Here is an example of how to use the DOI Content Negotiation service to get the Schema.org in JSON-LD format of a given DOI:
fyicenter$ curl -H "Accept: application/vnd.schemaorg.ld+json" \ 'https://doi.org/10.1126/science.169.3946.635' <html><head><title>Handle Redirect</title></head> <body> <a href="https://api.crossref.org/v1/works/10.1126%2Fscience.169.3946.635/transform"> https://api.crossref.org/v1/works/10.1126%2Fscience.169.3946.635/transform</a> </body></html>
Okay, doi.org is not serving this Content Negotiation request directly. It is redirecting you to api.crossref.org to get the response.
You can add the -L option to let "curl" follow the redirected location. api.crossref.org will return you the DOI content in Schema.org in JSON-LD format.
fyicenter$ curl -LH "Accept: application/vnd.schemaorg.ld+json" \ 'https://doi.org/10.1126/science.169.3946.635' No acceptable resource available.
Too bad. api.crossref.org does not support this content format.
⇒ DOI Content in Citeproc JSON Format
⇐ DOI Content in RDF Turtle Format
2022-10-06, 225👍, 0💬
Popular Posts:
How to lookup OA information of a given DOI number? If you know the DOI (Digital Object Identifier) ...
What is DOI API for Python - Crossref Commons? "Crossref Commons" is a Python library that offers a ...
Paper Summary: Title: Nanometre-scale thermometry in a living cell Author(s): Kucsko, G.; Maurer, P....
doi.FYIcenter.com is a FYI center on DOI (Digital Object Identifier). Questions and comments are wel...
Collections: Download Papers Open Access Lookup DOI FAQs Other Resources: Software QA Resources Deve...