DOI Content in RDF XML Format

Q

How to represent DOI content in RDF XML format?

✍: FYIcenter.com

A

RDF XML is the XML syntax for RDF developed by W3.org. You can use the DOI Content Negotiation service provided by doi.org to represent the content of a given DOI in RDF XML format.

The RDF XML format is triggered by the "application/rdf+xml" MIME type as shown this HTTP request syntax:

GET https://doi.org/{doi} HTTP/1.1
Accept: application/rdf+xml  

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

fyicenter$ curl -H "Accept: application/rdf+xml" \
  '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 XML format.

fyicenter$ curl -LH "Accept: application/rdf+xml" \
  'https://doi.org/10.1126/science.169.3946.635'

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:j.0="http://purl.org/dc/terms/"
  xmlns:j.1="http://prismstandard.org/namespaces/basic/2.1/"
  xmlns:owl="http://www.w3.org/2002/07/owl#"
  xmlns:j.2="http://purl.org/ontology/bibo/"
  xmlns:j.3="http://xmlns.com/foaf/0.1/">
  <rdf:Description rdf:about="http://dx.doi.org/10.1126/science.169.3946.635">
  <j.0:title>The Structure of Ordinary Water</j.0:title>
  <j.1:startingPage>635</j.1:startingPage>
  <j.0:date rdf:datatype="http://www.w3.org/2001/XMLSchema#date"
  >1970-08-14</j.0:date>
  <j.0:creator>
    <j.3:Person rdf:about="http://id.crossref.org/contributor/henry-s-frank-3new7r2ulpnaj">
    <j.3:name>Henry S. Frank</j.3:name>
    <j.3:familyName>Frank</j.3:familyName>
    <j.3:givenName>Henry S.</j.3:givenName>
    </j.3:Person>
  </j.0:creator>
  <owl:sameAs rdf:resource="doi:10.1126/science.169.3946.635"/>
  <owl:sameAs rdf:resource="info:doi/10.1126/science.169.3946.635"/>
  <j.0:identifier>10.1126/science.169.3946.635</j.0:identifier>
  <j.0:publisher>American Association for the Advancement of Science (AAAS)</j.0:publisher>
  <j.1:doi>10.1126/science.169.3946.635</j.1:doi>
  <j.2:pageEnd>641</j.2:pageEnd>
  <j.2:doi>10.1126/science.169.3946.635</j.2:doi>
  <j.2:volume>169</j.2:volume>
  <j.0:isPartOf>
    <j.2:Journal rdf:about="http://id.crossref.org/issn/0036-8075">
    <j.1:issn>1095-9203</j.1:issn>
    <j.2:issn>1095-9203</j.2:issn>
    <owl:sameAs>urn:issn:1095-9203</owl:sameAs>
    <owl:sameAs>urn:issn:0036-8075</owl:sameAs>
    <j.0:title>Science</j.0:title>
    <j.1:issn>0036-8075</j.1:issn>
    <j.2:issn>0036-8075</j.2:issn>
    </j.2:Journal>
  </j.0:isPartOf>
  <j.1:endingPage>641</j.1:endingPage>
  <j.1:volume>169</j.1:volume>
  <j.2:pageStart>635</j.2:pageStart>
  </rdf:Description>
</rdf:RDF>

 

DOI Content in ONIX for DOI Format

DOI Content in Citeproc JSON Format

DOI Content Negotiation at doi.org

⇑⇑ DOI - Frequently Asked Questions

2022-10-06, 361👍, 0💬