View Extraction
From NCBO Wiki
- Description: This Web service extracts a branch of an ontology given a "root" term by iterating over all terms residing in the sub-tree. The output file is generated as a file download from your browser and the ontology content is in OWL format.
- Note: All NCBO REST Web services will be required to contain the parameter "apikey=YourApiKey" starting June 2011. The parameter will be added to all Web service calls for the April 27, 2011 release but will not be required until June 2011. To obtain an API key, login to BioPortal and go to "Account" where your API key will be displayed. The addition of the API key replaces the use of the email parameter.
- Note for Application Developers: Application developers will also need to include the apikey parameter on all NCBO Web service calls. This allows us to track usage of our system at the level of an application. To obtain an API key, login to BioPortal and go to "Account" where your API key will be displayed. The addition of the API key replaces the use of the email parameter.
- Signature: ./viewextractor/{ontology version id}[?{args}]&apikey={YourAPIKey}
- Where the Web service signature prefix is http://rest.bioontology.org/
- Arguments:
- ontologyversionid: Ontology Version Id (required)
- conceptid: Concept Id (required)
- ontologyname: The name of the resulting ontology (required)
- filterrelations: The types of relations to filter out of the results (optional)
- Examples:
http://rest.bioontology.org/bioportal/viewextractor/35686/?conceptid=E800-E999.9 &filterrelations=PAR,isa,CHD,inverse_isa,SUBSETMEMBER,SubClass,SuperClass,[R]SIB,SIB &existontology=true&ontologyname=http://who.int/icd9&apikey=YourAPIKey
http://rest.bioontology.org/bioportal/viewextractor/46317/?conceptid=Adjustment &ontologyname=http://example.org/testing.owl&apikey=YourAPIKey