[ 
https://issues.apache.org/jira/browse/STANBOL-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970493#comment-13970493
 ] 

Rupert Westenthaler commented on STANBOL-1307:
----------------------------------------------

You are right. This is a design issue that requires to change the interface of 
the RunSingleSPARQL. Looks like in Jena one has to return the QueryExecution as 
there is no way to call close() on the ResultSet (e.g. as in Sesame).

Because of that returning the ResultSet is not an option as it would not allow 
to correctly close the Execution. Returning the QueryExecution is much less 
elegant but can not be avoided.

> runSPARQL Method of RunSingleSPARQL Does Not Allow To Close QueryExecution
> --------------------------------------------------------------------------
>
>                 Key: STANBOL-1307
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1307
>             Project: Stanbol
>          Issue Type: Bug
>    Affects Versions: 1.0.0
>            Reporter: Furkan KAMACI
>             Fix For: 1.0.0, 0.12.1
>
>         Attachments: STANBOL-1307.patch
>
>
> runSPARQL Method of RunSingleSPARQL returns a ResultSet and it does not allow 
> to close QueryExecution.  It is important to cleanly close the query 
> execution when finished. System resources connected to persistent storage may 
> need to be released. You can check it from here: 
> http://jena.sourceforge.net/ARQ/app_api.html



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to