Example Code:
from owlready2 import *
my_world = World()
onto = get_ontology("
http://test.org/onto.owl")
with onto:
class Test1(Thing):
pass
class Test2(Thing):
pass
Test2.equivalent_to = [Test1]
print("Equivalent to: ")
print(Test1.equivalent_to)
print(Test2.equivalent_to)
print(Test1.INDIRECT_equivalent_to)
print(Test2.INDIRECT_equivalent_to)
print("Destroying Test1")
destroy_entity(Test1)
print("Test2 should now be equivalent to nothing")
print(Test2.equivalent_to)