I am using RDF lib with python. Is it there any function that controls if an ontology is inconsistent.
< owl:Class rdf:about="http://www.semanticweb.org/ontologies/2016/1/semantic_mapping_domain_model#Chair">
< owl:equivalentClass rdf:resource="http://www.semanticweb.org/ontologies/2016/1/semantic_mapping_domain_model#Table"/>
< rdfs:subClassOf rdf:resource="http://www.semanticweb.org/ontologies/2016/1/semantic_mapping_domain_model#Furniture"/>
< owl:disjointWith rdf:resource="http://www.semanticweb.org/ontologies/2016/1/semantic_mapping_domain_model#Table"/>
< /owl:Class>
I have forced an individual to belong to some class and to its complement. I would like to perform a consistency check on a .owl file using python.
Starting the Pellet reasoner with Protégé returns:
InconsistentOntologyException: cannot do reasoning on inconsistent ontologies!
When I load the ontology (you can find it here) with the following python code:
import uri
from rdflib import Graph, Literal, BNode, Namespace, RDF, URIRef
from rdflib.namespace import DC, FOAF, RDF
[...]
g = Graph()
g.parse("/local_path/scripts/semantic_mapChairs.owl")
[...]
nothing is detected (there is an instance of the object Chair). Do you have any advice?