summaryrefslogtreecommitdiff
path: root/rdflib
diff options
context:
space:
mode:
authorJörn Hees <joernhees@users.noreply.github.com>2015-03-06 16:55:16 +0100
committerJörn Hees <joernhees@users.noreply.github.com>2015-03-06 16:55:16 +0100
commitcc6a656aee634de482f0a7e554a4212cd82dd054 (patch)
tree3edd5c88d6ce60d5cb5ab72ca85f621d8815c5ee /rdflib
parenta33537b7a4726ba5852479c2c206041dcd363bbb (diff)
parent3a706e2c6aded68cf12e56c9937d0c1800146ecd (diff)
downloadrdflib-cc6a656aee634de482f0a7e554a4212cd82dd054.tar.gz
Merge pull request #466 from joernhees/travis_fuseki
Running a local fuseki server on travis, closes #460
Diffstat (limited to 'rdflib')
-rw-r--r--rdflib/plugins/stores/sparqlstore.py18
1 files changed, 11 insertions, 7 deletions
diff --git a/rdflib/plugins/stores/sparqlstore.py b/rdflib/plugins/stores/sparqlstore.py
index b3ae46eb..f528b1e8 100644
--- a/rdflib/plugins/stores/sparqlstore.py
+++ b/rdflib/plugins/stores/sparqlstore.py
@@ -149,10 +149,11 @@ class SPARQLStore(NSSPARQLWrapper, Store):
This is in theory context-aware and should work as expected
when a context is specified.
- For ConjunctiveGraphs, reading is done from the "default graph" Exactly
+ For ConjunctiveGraphs, reading is done from the "default graph". Exactly
what this means depends on your endpoint, because SPARQL does not offer a
simple way to query the union of all graphs as it would be expected for a
- ConjuntiveGraph.
+ ConjuntiveGraph. This is why we recommend using Dataset instead, which is
+ motivated by the SPARQL 1.1.
Fuseki/TDB has a flag for specifying that the default graph
is the union of all graphs (tdb:unionDefaultGraph in the Fuseki config).
@@ -443,12 +444,15 @@ class SPARQLStore(NSSPARQLWrapper, Store):
class SPARQLUpdateStore(SPARQLStore):
- """
- A store using SPARQL queries for read-access
- and SPARQL Update for changes
+ """A store using SPARQL queries for reading and SPARQL Update for changes.
+
+ This can be context-aware, if so, any changes will be to the given named
+ graph only.
- This can be context-aware, if so, any changes will
- be to the given named graph only.
+ In favor of the SPARQL 1.1 motivated Dataset, we advise against using this
+ with ConjunctiveGraphs, as it reads and writes from and to the
+ "default graph". Exactly what this means depends on the endpoint and can
+ result in confusion.
For Graph objects, everything works as expected.