Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jena SPARQL connection not closed #310

Open
datalchemist opened this issue May 11, 2016 · 0 comments
Open

Jena SPARQL connection not closed #310

datalchemist opened this issue May 11, 2016 · 0 comments

Comments

@datalchemist
Copy link

I may have miss something but it seems that using banana-rdf to do SPARQL queries will cause connections to remain open without any easy way to close them.

More specifically, if we do something like:
val result=endpoint.executeSelect(parsedQuery)

Then, we got a Jena ResultSet on which we can iterate to get the solutions but we lost the underlying QueryExecution that needs to be closed when result handling is finished.
As a results, if we do many queries, it ends up with an exception such as "Too much files open".

When I look at the JenaSparqlEngine code in banana-rdf, I see that indeed, no reference is kept on the QueryExecution object... and actually, I wonder how this could be handled in a generic way to fit banana-rdf framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant