A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

Querying Wikidata using Jena, app freezes after the 5th query

TheMarmottin

Hello ! When using Jena, I am unable to reliably query wikidata. No matter the query, the process will inevitably hang after the fifth query, without any error messages, no timeout, no information. These are very simple queries, usually searching the entity matching a certain rdfs:label.

I am querying on “https://query.wikidata.org/sparql”, is this a known issue ? I had trouble finding information about this problem.

I apologize if this is not the right place to ask this question.
Thank you very much,
Marmottin

LucasWerkmeisterWMDE

Hi @TheMarmottin! Are you running these queries sequentially or in parallel? According to the user manual, there is a limit of 5 parallel queries per IP, so you might be encountering that.

(A better place to ask this question might be Wikidata talk:SPARQL query service or the user manual talk page, there are probably more people watching those places.)

TheMarmottin

Hi ! I am running them sequentially, i handle the results of one request before running another. Thanks for the suggestion !