diff --git a/databusclient/api/download.py b/databusclient/api/download.py index ad7d76e..eef4db9 100644 --- a/databusclient/api/download.py +++ b/databusclient/api/download.py @@ -595,7 +595,7 @@ def _query_sparql_endpoint(endpoint_url, query, databus_key=None) -> dict: Dictionary containing the query results. """ sparql = SPARQLWrapper(endpoint_url) - sparql.method = "POST" + sparql.setMethod("POST") sparql.setQuery(query) sparql.setReturnFormat(JSON) if databus_key is not None: diff --git a/tests/conftest.py b/tests/conftest.py index 5f4c0a2..9f522c8 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -10,6 +10,9 @@ class DummySPARQL: def __init__(self, *args, **kwargs): pass + def setMethod(self, m): + self._method = m + def setQuery(self, q): self._q = q