Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set update endpoint similar to query endpoint for sparqlstore if only one is given #1033

Merged
merged 1 commit into from
May 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 3 additions & 5 deletions rdflib/plugins/stores/sparqlstore.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,8 +493,8 @@ def __len__(self, *args, **kwargs):
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.
"""

Expand All @@ -507,9 +507,7 @@ def open(self, configuration, create=False):
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:
Expand Down