Consider two GraphDB repositories with different reasoning rulesets:
- Repo A with ruleset "RDFS (Optimized)"
- Repo B with ruleset "RDFS-Plus (Optimized)"
I executed the following SPARQL INSERT in both these repositories:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ex: <http://www.example.com#>
INSERT DATA {
ex:hasPet a owl:ObjectProperty;
rdfs:domain ex:Human;
rdfs:range ex:Pet.
ex:someHuman ex:hasPet ex:somePet.
}
In both repositories, I would expect that through rdfs:domain
and rdfs:range
, the following class assertions should be inferred:
ex:someHuman rdf:type ex:Human
ex:somePet rdf:type ex:Pet
rdfs:domain
and rdfs:range
are RDFS properties so they should be inferred for Repo A. And because RDFS-Plus is an extension of RDFS, I thought they would also be inferred in Repo B.
However, these tripels are only inferred with ruleset RDFS (Repo A). If I execute the following SPARQL query, I only get a result in Repo A and no result in Repo B.
PREFIX ex: <http://www.example.com#>
SELECT ?pet WHERE {
?pet a ex:Pet.
}
Could somebody tell me why the two tripels above are only inferred with RDFS ruleset, but not with RDFS-Plus ruleset?