Deleting a class does not update equivalent to

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Deleting a class does not update equivalent to

dcd8
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)
Reply | Threaded
Open this post in threaded view
|

Re: Deleting a class does not update equivalent to

Jiba
Administrator
Thanks for reporting this bug.

I've just fixed it in the development version on Bitbucket!

Jiba
Reply | Threaded
Open this post in threaded view
|

Re: Deleting a class does not update equivalent to

dcd8
Thanks. I will try it out once it releases