Difference between revisions of "BioPortal REST services"

From NCBO Wiki
Jump to navigation Jump to search
Line 74: Line 74:
 
** limit=<integer> – limits the number of results
 
** limit=<integer> – limits the number of results
 
** '''Example''': http://rest.bioontology.org/bioportal/virtual/parents/1032/Melanoma?level=1&offset=1&limit=10
 
** '''Example''': http://rest.bioontology.org/bioportal/virtual/parents/1032/Melanoma?level=1&offset=1&limit=10
 +
* '''Sample Output:'''
 +
 +
<?xml version="1.0" encoding="UTF-8" ?>
 +
<success>
 +
<accessedResource>
 +
/bioportal/concepts/parents/13578/Melanoma
 +
</accessedResource>
 +
<accessDate>2009-04-21 10:28:43.964 PDT</accessDate>
 +
<data>
 +
<list>
 +
<classBean>
 +
<ontologyVersionId>13578</ontologyVersionId>
 +
<id>Common_Neoplasm</id>
 +
<relations>
 +
<entry>
 +
<string>Level</string>
 +
<int>1</int>
 +
</entry>
 +
</relations>
 +
</classBean>
 +
<classBean>
 +
<ontologyVersionId>13578</ontologyVersionId>
 +
<id>Diseases_and_Disorders</id>
 +
<relations>
 +
<entry>
 +
<string>Level</string>
 +
<int>4</int>
 +
</entry>
 +
</relations>
 +
</classBean>
 +
</list>
 +
</data>
 +
</success>
  
 
==  Find children of a given concept in a specific ontology version ==
 
==  Find children of a given concept in a specific ontology version ==

Revision as of 10:32, 21 April 2009

This page documents the signatures for NCBO (and, more specifically, BioPortal) REST services. This list may not be exhaustive.

Note: Signatures for BioPortal services have changed in BioPortal 2.0.4 release on January 13th, 2009. This page has the new service URLs. If you have any questions, please contact BioPortal Support.

The prefix for all service URLs in the table below is http://rest.bioontology.org/bioportal/

List all the latest version of ontologies

Find a specific ontology based on a version id

Download an ontology file

Find all versions of an ontology form a virtual ontology id

Get latest version of an ontology id

Get concept id

Get all root concepts for an ontology id

Get concept for latest ontology version id

Search BioPortal

List all ontology categories id

Hierarchy Services

Find parents of a given concept in a specific ontology version

Find parents of a given concept in the latest version of a given ontology

<?xml version="1.0" encoding="UTF-8" ?> <success> <accessedResource> /bioportal/concepts/parents/13578/Melanoma </accessedResource> <accessDate>2009-04-21 10:28:43.964 PDT</accessDate> <list> <classBean> <ontologyVersionId>13578</ontologyVersionId> <id>Common_Neoplasm</id> <relations> <entry> <string>Level</string> <int>1</int> </entry> </relations> </classBean> <classBean> <ontologyVersionId>13578</ontologyVersionId> <id>Diseases_and_Disorders</id> <relations> <entry> <string>Level</string> <int>4</int> </entry> </relations> </classBean> </list> </success>

Find children of a given concept in a specific ontology version

Find children of a given concept in the latest version of a given ontology

Find paths to root from a concept in a specific ontology version

Find paths to root from a concept in the latest version of a given ontology

Find paths to leaves from a concept in a specific ontology version

Find paths to leaves from a concept in the latest version of a given ontology

Find siblings of a given concept in a specific ontology version

Find siblings of a given concept in the latest version of a given ontology