-
Notifications
You must be signed in to change notification settings - Fork 577
Closed
Labels
Milestone
Description
When I instantiate a Graph
with the SPARQLStore
and call query()
on it I get:
TypeError: update() takes from 2 to 3 positional arguments but 5 were given
while I would expect an Exception.
Reproduce it with:
from rdflib import Graph
graph = Graph(store="SPARQLStore")
graph.update("insert data {graph <urn:ex> {<urn:s> <urn:p> <urn:o>}}")
This is caused by the fact, that the SPARQLStore
inherits from SPARQLConnector
:
class SPARQLStore(SPARQLConnector, Store):
Two issues:
- Why does
SPARQLStore
inherit fromSPARQLConnector
? - The
SPARQLStore
should defineupdate
and return en Exception.