On 02/04/2021 11:58, graham wrote:
Hi
I have a copy of a result set, made by doing
try (QueryExecution qexec = QueryExecutionFactory.create(query,
model))
{
ResultSet results = qexec.execSelect();
return ResultSetFactory.copyResults(results);
}
I presume I don't have to close the copy of the result set since it's in
memory?
Correct.
In fact, ResultSets don't have a "close" - it's the QueryExecution that
should be closed (e.g. tidy up partial CONSTRUCT responses).
Likewise if I have an in memory Model which I query by exec-ing a SPARQL
query as per the above (without the copy), I presume I don't have to
close that either?
Correct.
Result models aren't connected back to the data.
thanks
graham
Andy