Hi; I realized that runSPARQL Method of RunSingleSPARQL returns a ResultSet and it does not allow to close QueryExecution. However 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 [1]
So I've filed a Jira issue as STANBOL-1307 and applied a patch for it. With my patch I've removed the runSPARQL method and created a method to retrieve QueryExecution. Thus close method could be run at test method. I think that returning Resultset should be done at another architecture that collects ResultSet objects, closes the QueryExecution and returns collected ResultSet. You can check this: [2]. I can design something similar to it and apply a patch at another Jira issue. Thanks; Furkan KAMACI [1] http://jena.sourceforge.net/ARQ/app_api.html [2] http://jenabean.googlecode.com/svn/trunk/jenabean/src/main/java/thewebsemantic/Sparql.java