Re: HTTP QueryExecution has been closed

2023-10-27 Thread Martynas Jusevičius
What I meant: can try-with-resources call qex.close() before constructQuads even does the checkNotClosed() check? On Fri, Oct 27, 2023 at 11:31 PM Martynas Jusevičius wrote: > > Can try-with-resources call qex.close() before constructDataset() does here? >

Re: HTTP QueryExecution has been closed

2023-10-27 Thread Martynas Jusevičius
Can try-with-resources call qex.close() before constructDataset() does here? https://github.com/apache/jena/blob/main/jena-arq/src/main/java/org/apache/jena/sparql/exec/QueryExecDataset.java#L232 On Fri, Oct 27, 2023 at 11:18 PM Martynas Jusevičius wrote: > > Hi, > > I'm trying to understand in

HTTP QueryExecution has been closed

2023-10-27 Thread Martynas Jusevičius
Hi, I'm trying to understand in which circumstances can the following code try (QueryExecution qex = QueryExecution.create(getQuery(), rowModel)) { return qex.execConstructDataset(); } throw the "HTTP QueryExecution has been closed" exception? Full code here:

qparse but preserve comments

2023-10-27 Thread Justin
Hello, Is it possible to allow qparse to preserve comments? e.g. it currently does not: ``` justin@parens:/tmp$ cat a.rq select * where { ?s ?p ?o # comment here } justin@parens:/tmp$ ~/Downloads/apache-jena-4.7.0/bin/qparse --query a.rq SELECT * WHERE { ?s ?p ?o } ``` If comment lines