Difference between revisions of "RDF in BioPortal"

From NCBO Wiki
Jump to navigation Jump to search
Line 18: Line 18:
 
* '''OWL and RDF ontologies''': these ontologies already have http URIs for each resource that they define. We used the URIs provided by ontology authors.
 
* '''OWL and RDF ontologies''': these ontologies already have http URIs for each resource that they define. We used the URIs provided by ontology authors.
 
* '''OBO ontologies''': terms in the ontologies in the OBO format do not have http URIs. We used the same URIs that the [http://docs.google.com/Doc?docid=0Acx6Blq96uycZHpwcm5td18wZGtkMmdiZ3Y&hl=en OBO library uses for these terms]
 
* '''OBO ontologies''': terms in the ontologies in the OBO format do not have http URIs. We used the same URIs that the [http://docs.google.com/Doc?docid=0Acx6Blq96uycZHpwcm5td18wZGtkMmdiZ3Y&hl=en OBO library uses for these terms]
** <tt><nowiki>http://purl.obolibrary.org/obo/IDSPACE_LOCALID</nowiki></tt>
+
** <nowiki>http://purl.obolibrary.org/obo/IDSPACE_LOCALID</nowiki>
 
** For example: http://purl.obolibrary.org/obo/GO_0050918
 
** For example: http://purl.obolibrary.org/obo/GO_0050918
 
* '''RRF and Protege ontologies''': terms in these ontologies do not have http URIs. We generate the URIs in the following form for these terms:
 
* '''RRF and Protege ontologies''': terms in these ontologies do not have http URIs. We generate the URIs in the following form for these terms:
** <tt><nowiki>http://purl.bioontology.org/ontology/{Acronym}/{ID}</nowiki></tt>
+
** <nowiki>http://purl.bioontology.org/ontology/{Acronym}/{ID}</nowiki>
  
 
= Accessing RDF content =
 
= Accessing RDF content =

Revision as of 09:33, 23 July 2010

This page describes representation of ontologies in the NCBO BioPortal and individual classes in these ontologies in RDF. Please send comments and questions to support@bioontology.org.

You can access RDF graphs for all BioPortal ontologies at our prototype SPARQL endpoint.

Goals for generating RDF for BioPortal content

We had the following goals in generating RDF for BioPortal:

  1. Provide RDF for each class in BioPortal so that we can have a URL to a concept that resolves to a set of RDF triples that provide essential information about the term.
  2. Provide an RDF dump of each ontology in BioPortal to put them in a tripelstore to enable SPARQL access to the ontologies.

Our goal was not to provide an RDF graph that covers the complete content of each ontology. Rather, we wanted to provide uniform RDF format for all the terms from the ontologies that were originally developed in different formats.

Providing URIs

In order to have an RDF graph for each term, we must have an http URI for the term. We used the following approach to determine the URIs for the terms for ontologies in different formats:

  • OWL and RDF ontologies: these ontologies already have http URIs for each resource that they define. We used the URIs provided by ontology authors.
  • OBO ontologies: terms in the ontologies in the OBO format do not have http URIs. We used the same URIs that the OBO library uses for these terms
  • RRF and Protege ontologies: terms in these ontologies do not have http URIs. We generate the URIs in the following form for these terms:
    • http://purl.bioontology.org/ontology/{Acronym}/{ID}

Accessing RDF content

There are two ways to access the RDF content that we generate for BioPortal ontologies and their terms:

  1. Use the NCBO prototype SPARQL endpoint
  2. Use the RDF Term Service to get an RDF snippet for a single term or several terms and the

RDF Download Service to download the whole ontology in RDF. Note that the second service will provide only some basic information about each term, not all the relations that are defined in the ontology.

Content of the RDF graph

For each term in BioPortal, we provide the following information in the RDF graph:

  • id (including the original id, using skos:notation)
  • preferred name
  • synonyms
  • superclasses (for OWL, Protege, and OBO)
  • skos:broader and skos:narrower for terms from RRF ontologies
  • all annotation properties for terms in OWL ontologies
  • part-of relations for OBO terms