Difference between revisions of "App/API/Ontology/label"

From mx Help Wiki
Jump to: navigation, search
m (Created page with '<nowiki>http:</nowiki>//''base_url''/api/ontology/'''label'''/<text> == Description == == Response (JSON) == ''label'': ''CLASS_ID'': ''citation'' ... == Example =…')
 
m (Description)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
<nowiki>http:</nowiki>//''base_url''/api/ontology/'''label'''/<text>
+
[[App/API/Ontology|Back to ontology API home]]
  
 
== Description ==
 
== Description ==
 +
 +
<nowiki>http:</nowiki>//''base_url''/api/ontology/'''label'''/<text>
 +
 +
Returns ontology classes tied to the provided label, and the reference that links the two.
  
 
== Response (JSON) ==
 
== Response (JSON) ==
Line 18: Line 22:
 
Response:
 
Response:
  
   {"head":
+
   {
    {"HAO:0000397":"Deans, A. R. 2009. HAO curator."}
+
  "head":
 +
          {"<nowiki>h</nowiki>ttp://purl.obolibrary.org/obo/HAO_0000397":"Deans, A. R. 2009. HAO curator.."}
 
   }
 
   }

Latest revision as of 16:15, 4 March 2011

Back to ontology API home

[edit] Description

http://base_url/api/ontology/label/<text>

Returns ontology classes tied to the provided label, and the reference that links the two.

[edit] Response (JSON)

label:
  CLASS_ID: citation
  ...
  

[edit] Example

Request:

http://api.hymao.org/api/ontology/label/head

Response:

 {
  "head":
         {"http://purl.obolibrary.org/obo/HAO_0000397":"Deans, A. R. 2009. HAO curator.."}
 }
Personal tools