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

From mx Help Wiki
Jump to: navigation, search
m
(Example)
Line 29: Line 29:
 
  {
 
  {
 
   "statistics":{},
 
   "statistics":{},
   "text":"[head] longer than [metasoma]",
+
   "text":"[head] longer that [metasoma]",
   "matches":
+
   "labels":  
  {
+
  {
    "head":{"HAO_0000397":"Deans, A. R. 2009. HAO curator.."},
+
    "head": {"http://purl.obolibrary.org/obo/HAO_0000397":"Deans, A. R. 2009. HAO curator.."},
    "metasoma":{"HAO_0000626":"Miko, I. 2009. Curator. Hymenoptera Anatomy Ontology."}
+
    "metasoma":{"http://purl.obolibrary.org/obo/HAO_0000626":"Miko, I. 2009. Curator. Hymenoptera Anatomy Ontology."}
  }
+
  }
 
  }
 
  }

Revision as of 14:58, 4 March 2011

Back to ontology API home

Description

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

Response (JSON)

 statistics:{}
 text: 'bracketed text',
 matches:
  {
   label: {
               CLASS_ID => definition 
               ...
              }
   ...   
  }
  

Example

Request:

http://api.hymao.org/api/ontology/analyze/Head%20longer%20that%20metasoma

Response:

{
 "statistics":{},
 "text":"[head] longer that [metasoma]",
 "labels": 
  {
    "head": {"http://purl.obolibrary.org/obo/HAO_0000397":"Deans, A. R. 2009. HAO curator.."},
    "metasoma":{"http://purl.obolibrary.org/obo/HAO_0000626":"Miko, I. 2009. Curator. Hymenoptera Anatomy Ontology."}
  }
}
Personal tools