Hello,
Assuming we have the following graphs in our stardog DB: a schema graph and a data graph
<http://ex.com/Person> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> <http://ex.com/schema> .
<http://ex.com/Athete> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2000/01/rdf-schema#Class> <http://ex.com/schema> .
<http://ex.com/Athete> <http://www.w3.org/2000/01/rdf-schema#subClassOf> <http://ex.com/Person> <http://ex.com/schema> .
<http://ex.com/Bolt> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://ex.com/Athete> <http://ex.com/data> .
I want to be able to get results from queries like
select * where {?s rdf:type/rdfs:subClassOf <http://ex.com/Person> }
when I enable querying in all graphs by default in settings, or explicitly as
select *
from named <http://ex.com/data>
from named <http://ex.com/schema>
where {?s rdf:type/rdfs:subClassOf <http://ex.com/Person> }
but the queries return nothing. I have already seen the answer to this similar query and would like to make a more specific support request here.
what is the best way to get the transitive closure of types? I am only interested rdf:type/rdfs:subClassOf
paths in this case.
in our setup, merging everything on the default graph or copying the schema graph in each graph would not work and was wondering is there is a lightweight reasoning option without the rdfs side effects ofe.g.rdfs:domain
& rdfs:range
Thank you in advance