Search code examples
semantic-webgraph-databasesblazegraph

Context parameters in Blazegraph Nano SPARQL


I am doing some experiments with the Blazegraph Nano SPARQL Server. I started the server with the following command:

$ java -server -Xmx4g -jar bigdata-bundled.jar

However, I need to set a timeout for queries. There is a context parameter named queryTimeout for that, but I do not know how it has to be used. Can I add a command option to set this parameter? If this parameter can only be set in a web.xml file, where can I find a minimal web.xml file that I can use to set the queryTimeout parameter?


Solution

  • It is possible to compile Blazegraph again after updating the web.xml file. The steps are:

    Clone the git repository.

    git clone git://git.code.sf.net/p/bigdata/git Blazegraph
    

    Checkout the release.

    git checkout -b BLAZEGRAPH_RELEASE_1_5_1
    

    Edit bigdata-war/src/WEB-INF/web.xml to set the queryTimeout property as:

    <context-param>
       <description>When non-zero, the timeout for queries (milliseconds).</description>
       <param-name>queryTimeout</param-name>
       <param-value>60000</param-value>
    </context-param>
    

    Recompile Blazegraph.

     ant clean executable-jar