Reputation: 664
I want to query my Apache Jena triplestore with SPAQRL. Let's assume there is a named graph "namedGraph" in my dateset. Now I query with the following SPAQRL:
SELECT ?src ?subject ?predicate ?object
WHERE{
GRAPH ?src{
?subject ?predicate ?object
}
}
and i get the whole model with <namedGraph>
as ?src
value. So far, everything is fine, but when I use this SPARQL:
SELECT ?subject ?predicate ?object
WHERE{
GRAPH <namedGraph>{
?subject ?predicate ?object
}
}
there is no result. What am I doing wrong? Thanks.
Upvotes: 0
Views: 295
Reputation: 664
Ok, it was a mistake. I gave my Model a normal name - namedGraph
. If you don't provide an URI
like http://example/namedGraph
Apache Jena initializes this graph with the following default URI
: http://server/unset-base/namedGraph
.
Upvotes: 3