4

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.

Stanislav Kralin
  • 11,070
  • 4
  • 35
  • 58
dimid
  • 7,285
  • 1
  • 46
  • 85

2 Answers2

4

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

Stanislav Kralin
  • 11,070
  • 4
  • 35
  • 58
4

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

jrsh
  • 371
  • 2
  • 12
  • Instead of editing the script, you can also pass the option to the script with `runBlazegraph.sh -o '-Dorg.wikidata.query.rdf.tool.rdf.RdfRepository.timeout=3600'`. A little caution is required though if the option is already added; in general it will add the option towards the end so it should override what was already set, but this is not set in stone and might depend on the JVM. – badroit Jul 24 '21 at 01:12