Difference between revisions of "BioPortal REST services"

From NCBO Wiki
Jump to navigation Jump to search
Line 147: Line 147:
 
** level=<integer> - limits results to a given level in the hierarchy
 
** level=<integer> - limits results to a given level in the hierarchy
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 +
* '''Sample Output:'''
  
 
==  Find children of a given concept in the latest version of a given ontology ==
 
==  Find children of a given concept in the latest version of a given ontology ==
Line 154: Line 155:
 
** level=<integer> - limits results to a given level in the hierarchy
 
** level=<integer> - limits results to a given level in the hierarchy
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 +
* '''Sample Output:'''
  
 
==  Find paths to root from a concept in a specific ontology version ==
 
==  Find paths to root from a concept in a specific ontology version ==
Line 161: Line 163:
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 
** limit=<integer> – limits the number of results
 
** limit=<integer> – limits the number of results
 +
* '''Sample Output:'''
  
 
==  Find paths to root from a concept in the latest version of a given ontology  ==
 
==  Find paths to root from a concept in the latest version of a given ontology  ==
Line 168: Line 171:
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 
** limit=<integer> – limits the number of results
 
** limit=<integer> – limits the number of results
 +
* '''Sample Output:'''
  
 
==  Find paths to leaves from a concept in a specific ontology version ==
 
==  Find paths to leaves from a concept in a specific ontology version ==
Line 175: Line 179:
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 
** limit=<integer> – limits the number of results
 
** limit=<integer> – limits the number of results
 +
* '''Sample Output:'''
  
 
==  Find paths to leaves from a concept in the latest version of a given ontology  ==
 
==  Find paths to leaves from a concept in the latest version of a given ontology  ==
Line 182: Line 187:
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 
** limit=<integer> – limits the number of results
 
** limit=<integer> – limits the number of results
 +
* '''Sample Output:'''
  
 
==  Find siblings of a given concept in a specific ontology version ==
 
==  Find siblings of a given concept in a specific ontology version ==
Line 190: Line 196:
 
* '''Optional arguments:'''  
 
* '''Optional arguments:'''  
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 +
* '''Sample Output:'''
  
 
==  Find siblings of a given concept in the latest version of a given ontology ==
 
==  Find siblings of a given concept in the latest version of a given ontology ==
Line 198: Line 205:
 
* '''Optional arguments:'''  
 
* '''Optional arguments:'''  
 
** offset=<integer> – results offset (used for pagination)
 
** offset=<integer> – results offset (used for pagination)
 +
* '''Sample Output:'''

Revision as of 09:58, 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

<?xml version="1.0" encoding="UTF-8" ?> <success> <accessedResource> /bioportal/virtual/parents/MSH/C0025202 </accessedResource> <accessDate>2009-04-21 10:55:33.494 PDT</accessDate> <list> <classBean> <ontologyVersionId>MSH</ontologyVersionId> <id>C0206769</id> <relations> <entry> <string>Level</string> <int>1</int> </entry> </relations> </classBean> <classBean> <ontologyVersionId>MSH</ontologyVersionId> <id>C0206754</id> <relations> <entry> <string>Level</string> <int>1</int> </entry> </relations> </classBean> </list> </success>

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