destroy_entity not working when i try to destroy a class
Posted by REPMEDDY on
URL: http://owlready.306.s1.nabble.com/destroy-entity-not-working-when-i-try-to-destroy-a-class-tp2614.html
Hello everyone,
i'm trying to delete a class in my ontology with the destroy_entity method as shown in the documentation but i keep getting this error:
ValueError: list.remove(x): x not in list
Here is a snippet of my code:
def destroy_class(self, class_identifier):
with self.onto:
destroy_entity(class_identifier)
class_identifier = ontology_manager.onto["Bird1"]
OntologyManager.destroy_class(ontology_manager, class_identifier)
So basically, in a file called OntologyManager i created a class called in the same way and the method destroy_class is defined inside that class. In another file i try to delete the class Bird1 as shown above but as said i keep getting that error.