I want to query an .owl
remotely using the IRIs provided in another .owl
file. For example:
The base file:
<rdf:Description rdf:about="https://example.com/data/syst1.owl#syst1"> <hasSub rdf:resource="https://example.com/data/sub1.owl#sub1"/>.
<rdf:Description rdf:about="https://example.com/data/syst1.owl#syst1"> <hasSub rdf:resource="https://example.com/data/sub2.owl#sub2"/>.
...
<rdf:Description rdf:about="https://example.com/data/syst1.owl#syst1"> <hasSub rdf:resource="https://example.com/data/subn.owl#subn"/>.
The file with information I want to query (https://example.com/data/subx.owl
for an arbitrary x):
<rdf:Description rdf:about="https://example.com/data/subx.owl#subx"> <hasProp rdf:resource="https://example.com/data/propx.owl#propx"/>
Say I want to get propx, how do I write the query? In blazegraph, I tried something along the line of:
SELECT ?prop
WHERE {
?syst hasSub ?entity.
SERVICE <IRI(?entity)> {
?entity hasProp ?prop
}
}
However, this just queries my base .owl
file and hence, does not return anything. Is there something I missed here?