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

From mx Help Wiki
Jump to: navigation, search
(Created page with 'stub')
 
m
Line 1: Line 1:
stub
+
<nowiki>http:</nowiki>//''base_url''/api/ontology/'''analyze'''/<text>
 +
 
 +
== Description ==
 +
 
 +
== Response (JSON) ==
 +
 
 +
  ''CLASS_ID'':
 +
  [
 +
    {
 +
    image: ''URI''
 +
    svg: ''svg''
 +
    }
 +
    ... 
 +
  ]
 +
 
 +
 
 +
 
 +
== Example ==
 +
 
 +
Request:
 +
 
 +
'''http://api.hymao.org/api/ontology/analyze/HAO_0000397'''
 +
 
 +
Response:
 +
 
 +
{
 +
  "statistics":{},
 +
  "text":"[head] longer than [metasoma]",
 +
  "labels":
 +
  {
 +
    "head":{"HAO_0000397":"Deans, A. R. 2009. HAO curator.."},
 +
    "metasoma":{"HAO_0000626":"Miko, I. 2009. Curator. Hymenoptera Anatomy Ontology."}
 +
  }
 +
}

Revision as of 13:12, 14 February 2011

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

Description

Response (JSON)

 CLASS_ID:
  [
   {
    image: URI 
    svg: svg
   }
   ...   
  ]
  
  

Example

Request:

http://api.hymao.org/api/ontology/analyze/HAO_0000397

Response:

{
 "statistics":{},
 "text":"[head] longer than [metasoma]",
 "labels":
 {
   "head":{"HAO_0000397":"Deans, A. R. 2009. HAO curator.."},
   "metasoma":{"HAO_0000626":"Miko, I. 2009. Curator. Hymenoptera Anatomy Ontology."}
 }
}
Personal tools