Dear Forum,
I have a question regarding the destroying of an ontology.
I run the code in Spyder IDE, where I want to make multiple executions of the code. While starting a new execution of the code (in the same python instance), I always create the ontology with: owl.get_ontology( "
http://test-ontology.de/pml#" ).
What I could observe was that after the first run, the ontology was extended and not newly created. Therefore, I always have to start the spyder console new.
For the next approach, I tried to destroy the ontology in the last line of the code with:
[In the beginning of the code] >> onto_temp = owl.get_ontology( "
http://test-ontology.de/pml#" )
[Last code line] >> onto_temp.destroy()
The problem with this approach is, that the code somehow does not work properly within the second execution and the ontology can not be returned after the creation.
Therefore, I wanted to ask how I could correctly implement the destroy function for multiple executions within the same python instance.
Currently, I am bound to an NDA and can not provide any specific code samples.
Thank you and all the best!