summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Car <nicholas.car@surroundaustralia.com>2020-05-03 12:22:01 +1000
committerGitHub <noreply@github.com>2020-05-03 12:22:01 +1000
commit981a5ba7dd29f5d6128ad5f2c0b732afa49f4628 (patch)
tree7f66d5b5e51f24208e2fc0841c8417099bccc6db
parentbf842c3dbb7a469d731bdeeb78567bf31050432a (diff)
parent48a250e0341c85e27b9cb38b1c37fafdf4c02119 (diff)
downloadrdflib-981a5ba7dd29f5d6128ad5f2c0b732afa49f4628.tar.gz
Merge pull request #1033 from white-gecko/feature/sparqlstore
Set update endpoint similar to query endpoint for sparqlstore if only one is given
-rw-r--r--rdflib/plugins/stores/sparqlstore.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/rdflib/plugins/stores/sparqlstore.py b/rdflib/plugins/stores/sparqlstore.py
index 5f7446ce..4c93e213 100644
--- a/rdflib/plugins/stores/sparqlstore.py
+++ b/rdflib/plugins/stores/sparqlstore.py
@@ -493,8 +493,8 @@ class SPARQLUpdateStore(SPARQLStore):
def open(self, configuration, create=False):
"""
sets the endpoint URLs for this SPARQLStore
- :param configuration: either a tuple of (queryEndpoint, update_endpoint),
- or a string with the query endpoint
+ :param configuration: either a tuple of (query_endpoint, update_endpoint),
+ or a string with the endpoint which is configured as query and update endpoint
:param create: if True an exception is thrown.
"""
@@ -507,9 +507,7 @@ class SPARQLUpdateStore(SPARQLStore):
self.update_endpoint = configuration[1]
else:
self.query_endpoint = configuration
-
- if not self.update_endpoint:
- self.update_endpoint = self.endpoint
+ self.update_endpoint = configuration
def _transaction(self):
if self._edits is None: