Reply – Re: Comparing classes or construction object
Your Name
Subject
Message
or Cancel
In Reply To
Re: Comparing classes or construction object
— by Jiba Jiba
Hi,

To compare class, you can use the issubclass() Python function (reimplemented in Owlready2, so be sure to import it from owlready2). However, to fully consider OWL constructor such as Or and And, you need to perform reasoning before (with sync_reasoner()).

Jiba