Hi,
I am using Jena ARQ API to query DBpedia dataset using a sparql endpoint. I
want to set the timeout limit for querying using a java program so that the
program will not crash if sufficient timeout is set. My intention is to have a
simple loop to handle so that if an exception happens, the query will be
re-done.
I have come across a code sample to set timeout in the internet and I am
not sure whether this works correctly. Is this correct or there is any other
way of doing this?
QueryEngineHTTP qexec = (QueryEngineHTTP)
QueryExecutionFactory.sparqlService(
strSparqlEndpoint, qExecuteQuery);
qexec.addParam("timeout","10000");
Kalpa Gunaratna