We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3749a6d commit 9f8c2f7Copy full SHA for 9f8c2f7
tests/test_ask_query.py
@@ -3,6 +3,8 @@
3
import re
4
import requests
5
6
+from scholia.config import config
7
+
8
USER_AGENT = "Scholia"
9
HEADERS = {"User-Agent": USER_AGENT}
10
@@ -44,7 +46,7 @@ def ask_query(file_name, q_number):
44
46
45
47
query = re.sub(r"\{\{ ?q ?\}\}", q_number, query)
48
- url = "https://query.wikidata.org/sparql"
49
+ url = config['query-server']['sparql_endpoint']
50
params = {"query": query, "format": "json"}
51
response = requests.get(url, params=params, headers=HEADERS)
52
0 commit comments