Setting a query timeout in Wikidata api

921 views Asked by At

I've created a local version of the wikidata api using the instructions here, and I'd like to specify a custom timeout to override the 60 second timeout in the official api. I haven't found anything in RWStore.properties, but perhaps I'm missing something.

2

There are 2 answers

0
Stanislav Kralin On BEST ANSWER

According to Blazegraph documentation, this should be the queryTimeout parameter in the web.xml file.

1
jrsh On

Using the pre-built full service package (https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual#Standalone_service) with blazegraph-service-0.3.0.war, without a web.xml or other files to modify, there's also following way to adjust the query timeout limit:

Open the runBlazegraph.sh file and append following option: -Dorg.wikidata.query.rdf.tool.rdf.RdfRepository.timeout=3600 to the java options.

This would increase the timeout time to 1 hour (3600s).