diff --git a/scholia/rss.py b/scholia/rss.py index 7705cc09..a605fa64 100644 --- a/scholia/rss.py +++ b/scholia/rss.py @@ -360,7 +360,7 @@ def wb_get_venue_latest_works(q): 'type="application/rss+xml" />\n' query = VENUE_SPARQL_QUERY.format(q=q) - url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql' + url = SPARQL_ENDPOINT params = {'query': query, 'format': 'json'} response = requests.get(url, params=params) data = response.json() @@ -404,7 +404,7 @@ def wb_get_topic_latest_works(q): 'type="application/rss+xml" />\n' query = TOPIC_SPARQL_QUERY.format(q=q) - url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql' + url = SPARQL_ENDPOINT params = {'query': query, 'format': 'json'} response = requests.get(url, params=params) data = response.json() @@ -450,7 +450,7 @@ def wb_get_organization_latest_works(q): 'type="application/rss+xml" />\n' query = ORGANIZATION_SPARQL_QUERY.format(q=q) - url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql' + url = SPARQL_ENDPOINT params = {'query': query, 'format': 'json'} response = requests.get(url, params=params) data = response.json() @@ -496,7 +496,7 @@ def wb_get_sponsor_latest_works(q): 'type="application/rss+xml" />\n' query = SPONSOR_SPARQL_QUERY.format(q=q) - url = 'https://query.wikidata.org/bigdata/namespace/wdq/sparql' + url = SPARQL_ENDPOINT params = {'query': query, 'format': 'json'} response = requests.get(url, params=params) data = response.json()