I have the following RDF model:
@prefix : <http://test.com/#> . :graph1 :hasNode :node1 ; :centerNode :node1 . :graph1 :hasNode :node2 . :graph1 :hasNode :node3 .
I want to run a SPARQL query in which if a :nodeX is associated with :graphX with the predicate :centerNode , I return true (or some other indication) otherwise false ; The result will look something like this:
?n ?g ?centered ----------------------------- :node1 :graph1 true :node2 :graph1 false :node3 :graph1 false
Is there a way to do this in SPARQL 1.0? if not, can this be done in SPARQL 1.1?
source share