You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2014/07/02 14:31:27 UTC

[jira] [Created] (JENA-736) QueryExecution should implement Closable

Benson Margulies created JENA-736:
-------------------------------------

             Summary: QueryExecution should implement Closable
                 Key: JENA-736
                 URL: https://issues.apache.org/jira/browse/JENA-736
             Project: Apache Jena
          Issue Type: Improvement
            Reporter: Benson Margulies


This would be nice ...

 try (QueryExecution qexec = QueryExecutionFactory.sparqlService("http://dbpedia.org/sparql", query)) {
            ResultSet results = qexec.execSelect();
            for (; results.hasNext(); ) {
                // Result processing is done here.
            }
        }



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