Difference between revisions of "App/API/Ontology/ontology class"

From mx Help Wiki
Jump to: navigation, search
m
Line 7: Line 7:
 
  ''CLASS_ID'':
 
  ''CLASS_ID'':
 
   definition: ''definition''
 
   definition: ''definition''
   relationships:
+
  label: ''name''
     ''relationship_type'': ''RELATED_CLASS_ID''
+
   relationships:  
    ...
+
     [
 +
    {  subject:
 +
          id: ''CLASS_ID1''
 +
          label: ''name''
 +
        predicate: ''relationship_type''  
 +
        object:
 +
          id: ''CLASS_ID2''
 +
          label: ''name''
 +
    }
 +
    ...  
 +
    ]
 +
   
 +
 
  
 
== Example ==
 
== Example ==

Revision as of 15:56, 10 February 2011

http://base_url/api/ontology/ontology_class/<CLASS_ID>

Description

Response (JSON)

CLASS_ID:
 definition: definition
 label: name
 relationships: 
   [
    {  subject: 
         id: CLASS_ID1
         label: name
       predicate: relationship_type 
       object: 
         id: CLASS_ID2
         label: name
    }
    ... 
   ]
   


Example

Request:

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

Response:

 HAO_0000397:
   definition: "The tagma that is located anterior to the thorax."
   relationships: 
     "is_a":"HAO:0000988"
     "part_of":"HAO:0000182"
Personal tools