nichtich/wikidata-taxonomy

getting "SPARQL request failed" for every call

finin opened this issue · 6 comments

finin commented

I've been using wdtaxonomy (v 0.6.6) happily for many months on my macbook running 10.14.5. Starting yesterday, every call I make (e.g., "wdtaxonomy -c Q5") produces an immediate "SPARQL request failed" message.

I tried capturing the sparql queries with --sparql and pasting that into the wikidata query service web page, and it they work. I also tried passing the standard query service URL with --sparql-endpoint and that did not help. I tried uninstalling and then installing again, which did not fix the problem.

Might it be due to this: https://lists.wikimedia.org/pipermail/wikidata/2019-June/013161.html ?

Any suggestions?

Hi @finin, thanks for the feedback. Please try version 0.6.7!

finin commented

Hey, I have the latest version 0.6.7, still, it's happening with me.
This is the query that I ran : wdtaxonomy -f csv Q735
Output: SPARQL request failed

finin commented
finin commented

Capturing the query with a -s flag and executing it directly on Wikidata Query Service show that the problem is due to a query timeout. Adding a -b flag to the query does work, so apparently, counting all of the instances takes too much time.

wdtaxonomy -b -f csv Q735 

Had a similar issue.
Here is the dialog: #52
now works as advertised
/jay