Re: Problem with version > 0.11, handling OwlReadyInconsistentOntologyError()

Posted by Demian on
URL: http://owlready.306.s1.nabble.com/Problem-with-version-0-11-handling-OwlReadyInconsistentOntologyError-tp941p959.html

Hi again,

Thanks for the reply.

I know that ontology is inconsistent, i'm creating different scenarios using a query
 and sometimes some result aren't Logical Consequence thus the ontology is inconsistent;

but till version 0.11 i' ve handled the exception just fine like this:

def consistency(self):
        try:
            with self.onto:
                sync_reasoner(self.my_world)
                return "The ontology is consistent"
        except OwlReadyInconsistentOntologyError:
            return "The ontology is inconsistent"

If you want i could send you the whole project.

Best Regards,
Demian


Demian