ztm.ontology is used to work with the ontology of a ztm.topicmaps instance. The implementation consists of a utility that caches traits and other data of the different types in the ontology for performance and a set of wrappers that simplify common ontology editing operations.