-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Expected Behavior
By correctly setting the server.js
config, I hope to query and write only to the default graph of my GraphDB instance.
Actual Behavior
In the server.js
config, I first set the graphName
to 'default'
, but this will also make LD-R retrieve triples from named graphs. When writing triples, they end up in the default graph. This is probably the expected behavior of GraphDB (also see this issue). To query the default graph only, I can write queries using the special named graph http://www.openrdf.org/schema/sesame#nil
to limit the query to the default graph.
PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
SELECT *
FROM sesame:nil
WHERE { ?s ?p ?o }
However, when I change in the server.js
config the value of graphName
to 'http://www.openrdf.org/schema/sesame#nil'
, I don't see any results appearing in LD-R. When making a new resource in LD-R, it is added to the named graph http://www.openrdf.org/schema/sesame#nil
. If I try the same query again directly on GraphDB, I don't see the new resource. Only when I specifically query the named graph itself, I can find it:
PREFIX sesame: <http://www.openrdf.org/schema/sesame#>
SELECT *
WHERE { GRAPH sesame:nil { ?s ?p ?o } }
I don't know which queries are send by LD-R, but I guess the read and write queries use GRAPH
, similar as in the last query. Is it possible to make an exception for GraphDB if graphName
equals 'http://www.openrdf.org/schema/sesame#nil'
? The read queries should be similar as the first query and the write queries should become something like:
INSERT DATA { inst:subj inst:pred inst:obj }
(no named graph in write queries, because it should go in the default graph instead of the 'virtual' named graph http://www.openrdf.org/schema/sesame#nil
)
Steps to Reproduce the Problem
Use configs in 'static' mode and run GraphDB locally
Specifications
- Version: LD-R 1.3.7
- Platform: Windows 10
- triplestore: GraphDB v8.6.1