3

I am running same queries on Virtuoso and Jena Fuseki - A query on Virtuoso gave ResultRows=594890 while on Fuseki it gave the error of "page not responding". Also in many other cases, the fuseki could not execute the same queries which were done by virtuoso efficiently. I am wondering how could I adjust the MaxQueryExecutionTime, ResultSetMaxRows, MaxQueryCostEstimationTime in Fuseki, as it can be done in Virtuoso by editing the virtuoso.ini file.

Example Query below gave the above mentioned no. of results in Virtuoso but it failed on Fuseki.

PREFIX rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX bench: <http://localhost/vocabulary/bench/> 
PREFIX swrc:  <http://swrc.ontoware.org/ontology#> 
SELECT ?article WHERE {
       ?article rdf:type bench:Article .
       ?article ?property ?value
       FILTER (?property=swrc:pages)
}
TallTed
  • 9,069
  • 2
  • 22
  • 37
Khan
  • 95
  • 1
  • 8
  • Try to improve your question with some query examples.... – James Jan 17 '20 at 16:57
  • "page not responding" is not an error from Fuseki - it is the browser probably. The request is still executing at the server. – AndyS Jan 17 '20 at 21:07
  • Timeouts can be set in the Fuseki configuration. https://jena.apache.org/documentation/fuseki2/fuseki-configuration.html – AndyS Jan 17 '20 at 21:09
  • Worth noting, your query is much less efficient than if you replace `?article ?property ?value FILTER (?property=swrc:pages)` with `?article swrc:pages ?value`. Making this change may radically decrease the timeout(s) required for your existing query, in either SPARQL engine. – TallTed Oct 08 '20 at 16:49

1 Answers1

2

As commented by @AndyS,

Fuseki timeouts can be set in the Fuseki configuration, as documented.

TallTed
  • 9,069
  • 2
  • 22
  • 37