X-Git-Url: https://code.communitydata.science/covid19.git/blobdiff_plain/36167295ecfe297780be2ec42ef1213e26d014e0..4226b45b97226fd7ee89116b7e1c2f18ad77816f:/transliterations/src/wikidata_api_calls.py?ds=inline diff --git a/transliterations/src/wikidata_api_calls.py b/transliterations/src/wikidata_api_calls.py index f2fac88..212ed4f 100644 --- a/transliterations/src/wikidata_api_calls.py +++ b/transliterations/src/wikidata_api_calls.py @@ -29,7 +29,7 @@ def search_wikidata(session, term, *args, **kwargs): return results def run_sparql_query(q): - results = requests.get("https://query.wikidata.org/bigdata/namespace/wdq/sparql",params={"query":q,"format":"json"}) + results = requests.get("https://query.wikidata.org/bigdata/namespace/wdq/sparql",params={"format":"json","query":q}) time.sleep(2) return results