Difference between revisions of "App/API/Ontology/analyze"
From mx Help Wiki
m |
m |
||
Line 11: | Line 11: | ||
matches: | matches: | ||
{ | { | ||
− | ''label'': {''CLASS_ID'' => ''definition'' } | + | ''label'': { |
+ | ''CLASS_ID'' => ''definition'' | ||
+ | ... | ||
+ | } | ||
... | ... | ||
} | } |
Revision as of 09:03, 21 February 2011
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 than [metasoma]", "matches": { "head":{"HAO_0000397":"Deans, A. R. 2009. HAO curator.."}, "metasoma":{"HAO_0000626":"Miko, I. 2009. Curator. Hymenoptera Anatomy Ontology."} } }