Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a query timeout in Wikidata api

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.

like image 276
dimid Avatar asked Jan 29 '23 17:01

dimid


2 Answers

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

like image 199
Stanislav Kralin Avatar answered Feb 03 '23 22:02

Stanislav Kralin


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).

like image 34
jrsh Avatar answered Feb 03 '23 22:02

jrsh