Hi!!
Quick question on working with Named Graphs
I was performing this query in Stardog Studio
SELECT DISTINCT ?graph
WHERE {
GRAPH ?graph {
?s ?p ?o
}
}
And I got an empty result, even though our database has many named graphs with many resources.
If I switch to a known named graph and perform a query without the GRAPH term, that works:
But using the GRAPH term does not work.
Is this expected?
Thanks!
pavel
(Pavel Klinov)
December 26, 2024, 10:20am
2
Hi Daniel,
you should define the dataset for the query: either by adding FROM NAMED stardog:context:local
or by choosing that stardog:context:local
in the graph drop-down list.
Cheers,
Pavel
Hi @pavel !
The FROM
and FROM NAMED
queries worked without the GRAPH
clause. But using the GRAPH
clause still doesn't seem to work.
Might I be missing something?
Here's a screenshot of one failed test I did with the FROM NAMED
with the GRAPH
clause:
Thing is, I do have data in multiple named graphs as shown in the same SELECT
query without the GRAPH
clause:
Looking forward to your thoughts.
Thanks!!