Difference between revisions of "App/API/Ontology/glossary markup"
From mx Help Wiki
m |
m |
||
Line 4: | Line 4: | ||
<nowiki>http:</nowiki>//''base_url''/api/ontology/'''glossary_markup'''/<text> | <nowiki>http:</nowiki>//''base_url''/api/ontology/'''glossary_markup'''/<text> | ||
+ | |||
+ | ''This is an alternate method to 'uri_markup' (which is the preferred markup method)''. Returns the provided text and a hyperlinked version that resolved to the ontology API ('''ontology_class''' action) documented here. | ||
== Response (JSON) == | == Response (JSON) == | ||
Line 20: | Line 22: | ||
{ | { | ||
"text":"Head longer than metasoma", | "text":"Head longer than metasoma", | ||
− | "markup":"\u003Ca href=\" | + | "markup":"\u003Ca href=\"http://api.hymao.org/ontology/ontology_class/HAO_0000397\"\u003Ehead\u003C/a\u003E longer than \u003Ca href=\"http://api.hymao.org/ontology/ontology_class/HAO_0000626\"\u003Emetasoma\u003C/a\u003E" |
} | } |
Revision as of 15:16, 4 March 2011
Description
http://base_url/api/ontology/glossary_markup/<text>
This is an alternate method to 'uri_markup' (which is the preferred markup method). Returns the provided text and a hyperlinked version that resolved to the ontology API (ontology_class action) documented here.
Response (JSON)
text: text markup: html
Example
Request:
http://api.hymao.org/api/ontology/glossary_markup/Head%20longer%20than%20metasoma
Response:
{ "text":"Head longer than metasoma", "markup":"\u003Ca href=\"http://api.hymao.org/ontology/ontology_class/HAO_0000397\"\u003Ehead\u003C/a\u003E longer than \u003Ca href=\"http://api.hymao.org/ontology/ontology_class/HAO_0000626\"\u003Emetasoma\u003C/a\u003E" }