showHierarchyDownToTermById: Returns tree representation of term's parents


Returns set of terms that represent ontology "opened" down to specified term, hence displaying all its parents first and then a tree level, containing specified term. Term in the set is represented as the instance of the OntologyTerm class.





instance of the Ontology class


accession string of the term of interest


Returns set of ontology terms: each term in the set is the instance of the OntologyTerm class


Natalja Kurbatova


Adamusiak T, Burdett T, van der Velde K J, Abeygunawardena N, Antonakaki D, Parkinson H and Swertz M: OntoCAT – a simpler way to access ontology resources. Available from Nature Precedings (2010)

Malone J, Holloway E, Adamusiak T, Kapushesky M, Zheng J, Kolesnikov N, Zhukova A, Brazma A, Parkinson H: Modeling Sample Variables with an Experimental Factor Ontology. Bioinformatics 2010, 26(8):1112–1118

Experimental Factor Ontology

Ontology Common API Tasks java library

Java sources and javadocs:

See Also

Ontology, OntologyTerm and showHierarchyDownToTerm

Questions? Problems? Suggestions? or email at

All documentation is copyright its authors; we didn't write any of that.