implementation of a load-ontology function