Dear list,
I'm doing some experiments comparing SPARQL querying on different
platforms, with different entailment regimes (mainly RDFS and OWL2QL). I
came into the overhead problem of ResultSet (or also ResultSetFormatter). I
Reading other threads, I learned that Arq works as a buffer, and that the
execSelect method do not really compute the query. The real results are
retrieved looping over the resultSet. I naively thought that the execSelect
would have done the query, and that ResultSet was only for printing or
seeing results.
Now, the question is: I would like to know whether the right thing for
measuring the time of querying is:
- to take the time before and after the execution of execSelect() , or
- at the end of the loop...
Any hint would be highly appreciated. Thanks in advance!
Mat
_______________________
Here the snippet:
Query query=QueryFactory.create(queryString);
QueryExecution qexec = QueryExecutionFactory.create(query,
model);ResultSet results = qexec.execSelect();
while (results.hasNext()) { here print on file; }