DOI Content in RDF Turtle Format

Q

How to represent DOI content in RDF Turtle format?

✍: FYIcenter.com

A

RDF Turtle is also called Terse RDF Triple Language. It allows RDF graphs to be completely written in a compact and natural text form, with abbreviations for common usage patterns and datatypes.

You can use the DOI Content Negotiation service provided by doi.org to represent the content of a given DOI in RDF Turtle format.

The RDF Turtle format is triggered by the "text/turtle" MIME type as shown this HTTP request syntax:

GET https://doi.org/{doi} HTTP/1.1
Accept: text/turtle

Here is an example of how to use the DOI Content Negotiation service to get the RDF Turtle format of a given DOI:

fyicenter$ curl -H "Accept: text/turtle" \
  '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 RDF Turtle format.

fyicenter$ curl -LH "Accept: text/turtle" \
  'https://doi.org/10.1126/science.169.3946.635'

<http://dx.doi.org/10.1126/science.169.3946.635>
  <http://prismstandard.org/namespaces/basic/2.1/doi>
    "10.1126/science.169.3946.635" ;
  <http://prismstandard.org/namespaces/basic/2.1/endingPage>
    "641" ;
  <http://prismstandard.org/namespaces/basic/2.1/startingPage>
    "635" ;
  <http://prismstandard.org/namespaces/basic/2.1/volume>
    "169" ;
  <http://purl.org/dc/terms/creator>
    <http://id.crossref.org/contributor/henry-s-frank-3new7r2ulpnaj> ;
  <http://purl.org/dc/terms/date>
    "1970-08-14"^^<http://www.w3.org/2001/XMLSchema#date> ;
  <http://purl.org/dc/terms/identifier>
    "10.1126/science.169.3946.635" ;
  <http://purl.org/dc/terms/isPartOf>
    <http://id.crossref.org/issn/0036-8075> ;
  <http://purl.org/dc/terms/publisher>
    "American Association for the Advancement of Science (AAAS)" ;
  <http://purl.org/dc/terms/title>
    "The Structure of Ordinary Water" ;
  <http://purl.org/ontology/bibo/doi>
    "10.1126/science.169.3946.635" ;
  <http://purl.org/ontology/bibo/pageEnd>
    "641" ;
  <http://purl.org/ontology/bibo/pageStart>
    "635" ;
  <http://purl.org/ontology/bibo/volume>
    "169" ;
  <http://www.w3.org/2002/07/owl#sameAs>
    <doi:10.1126/science.169.3946.635> , <info:doi/10.1126/science.169.3946.635> .

<http://id.crossref.org/contributor/henry-s-frank-3new7r2ulpnaj>
  a       <http://xmlns.com/foaf/0.1/Person> ;
  <http://xmlns.com/foaf/0.1/familyName>
    "Frank" ;
  <http://xmlns.com/foaf/0.1/givenName>
    "Henry S." ;
  <http://xmlns.com/foaf/0.1/name>
    "Henry S. Frank" .

<http://id.crossref.org/issn/0036-8075>
  a       <http://purl.org/ontology/bibo/Journal> ;
  <http://prismstandard.org/namespaces/basic/2.1/issn>
    "1095-9203" , "0036-8075" ;
  <http://purl.org/dc/terms/title>
    "Science" ;
  <http://purl.org/ontology/bibo/issn>
    "1095-9203" , "0036-8075" ;
  <http://www.w3.org/2002/07/owl#sameAs>
    "urn:issn:1095-9203" , "urn:issn:0036-8075" .

 

DOI Content in Schema.org in JSON-LD Format

DOI Content in RIS (Research Information Systems)

DOI Content Negotiation at doi.org

⇑⇑ DOI - Frequently Asked Questions

2022-10-06, 311👍, 0💬