Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stain
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stain/3f800addae9dc95230c4 to your computer and use it in GitHub Desktop.
Save stain/3f800addae9dc95230c4 to your computer and use it in GitHub Desktop.

From http://www.uniprot.org/uniprot/P35354.rdf

<rdf:RDF xmlns="http://purl.uniprot.org/core/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:bibo="http://purl.org/ontology/bibo/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:void="http://rdfs.org/ns/void#" xmlns:sd="http://www.w3.org/ns/sparql-service-description#" xmlns:faldo="http://biohackathon.org/resource/faldo#">

<!-- .. -->
<rdf:Description rdf:about="http://purl.uniprot.org/uniprot/P35354">
  <citation rdf:resource="http://purl.uniprot.org/citations/16373578" rdf:ID="_5033353335340018"/>
  <!-- .. -->
</rdf:Description>
<!-- .. -->
<rdf:Description rdf:about="#_5033353335340018">
  <rdf:type rdf:resource="http://purl.uniprot.org/core/Citation_Statement"/>
  <scope>FUNCTION</scope>
  <!-- .. -->
</rdf:Description>

.. is it correct I should get out the triples:

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix uniprot: <http://purl.uniprot.org/core/> .

<http://purl.uniprot.org/uniprot/P35354> 
  uniprot:citation <http://purl.uniprot.org/citations/16373578> .

<http://www.uniprot.org/uniprot/P35354.rdf#_5033353335340018> 
  rdf:type <http://www.w3.org/1999/02/22-rdf-syntax-ns#Statement> ;
  rdf:subject <http://purl.uniprot.org/uniprot/P35354> ;
  rdf:predicate <http://purl.uniprot.org/core/citation> ;
  rdf:object <http://purl.uniprot.org/citations/16373578> .

<http://www.uniprot.org/uniprot/P35354.rdf#_5033353335340018>
  rdf:type uniprot:Citation_Statement ;
  uniprot:scope "FUNCTION" .

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment