pwin/owlready2

Unload an ontology after load() call

Opened this issue · 2 comments

Is there any way to 'unload' an ontology after a get_ontology().load() call?

You might get what you're after using the context manager,

ontology = owl.get_ontology('ontology.owl')
with ontology.load():
   Do things

My request concerns the need of unloading ontologies outside the CM, for example after the object "ontology" has been passed to a function.