Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] get tree of a given class via REST interface

Jennifer Leigh Vendetti vendetti at
Thu Mar 10 13:38:07 PST 2016

Hello Lorenz,

On Mar 9, 2016, at 2:15 AM, Lorenz B. <buehmann at<mailto:buehmann at>> wrote:


I'm wondering whether it's possible to get children of a given class via the REST interface.

Yes, you can either get direct children, or all children.

Direct Children

Uses this format:


Using your class as an example:<>

All Children

Uses this format:


Using your class as an example:<>

I know that there is one request


but it looks like it always returns the root classes only, and not the subclasses of the given class. see for example both links below:


For me this looks like a bug because otherwise there would be no need to have this for each class, but only for the ontology itself. Moreover, the
"children" property is always an empty array here.

Indeed I could use as REST request


but this does not return information like "hasChildren" which is quite useful when building the class tree, like it's done in the public BioPortal UI.

If you want to get information about whether a class has children, or the child count, you can use the “include” parameter, e.g.:,childrenCount<,childrenCount>

Hope that helps.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the bioontology-support mailing list