Ontologies as Trees
An ontology, from the Greek words ontos (of being) and logia (science, study, theory), is a classification of the concepts in a domain and relationships between them. An ontology describes the kinds of things that exist in our model of the world.
Ontologies can be represented in Java as class hierarchies, which have tree structure.