Using SPARQL for limited RDFS and OWL reasoning
问题 What I'm currently using rdflib for creating and managing RDF graphs in Python. RDFlib doesn't do any RDFS or OWL reasoning, though. This leads to results like the following: If I have A rdf:type MyType . MyType rdfs:subClassOf SuperType . and I ask select ?x where {?x rdf:type SuperType} then I get nothing, but I'd like to get A (by RDFS semantics). The same thing happens with owl:equivalentClass . If I have A rdf:type MyType . MyType owl:equivalentClass SiblingType . and I ask select ?x