I had been trying to use OWL API to check if an ontology is consistent or not. When I try to run the reasoner on Protege I get the correct inconsistency due to the disjointedness as in the figure below.
But when I use the same ontology with the OWL API, its returning true for hermit.isConsistent(). Is it due to the wrong usage of the reasoner. I have provided the code below as well .
Both Reasoner and Configuration are from the package org.semanticweb.HermiT
Hi,
I had been trying to use OWL API to check if an ontology is consistent or not. When I try to run the reasoner on Protege I get the correct inconsistency due to the disjointedness as in the figure below.
But when I use the same ontology with the OWL API, its returning true for
hermit.isConsistent()
. Is it due to the wrong usage of the reasoner. I have provided the code below as well . BothReasoner
andConfiguration
are from the packageorg.semanticweb.HermiT