Re: How to keep Prefixes using Algebra

2021-09-16 Thread Andy Seaborne
On 15/09/2021 20:55, Martynas Jusevičius wrote: You could maybe getPrologue() from the original query and then setPrologue() on the resulting one. https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/Query.html#getPrologue() Yes. The algebra tralsation does include

Re: How to keep Prefixes using Algebra

2021-09-15 Thread Martynas Jusevičius
You could maybe getPrologue() from the original query and then setPrologue() on the resulting one. https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/Query.html#getPrologue() On Wed, Sep 15, 2021 at 9:51 PM Guillermo Coscarelli wrote: > > Hi, > > Right now when I parse a

How to keep Prefixes using Algebra

2021-09-15 Thread Guillermo Coscarelli
Hi, Right now when I parse a query that has prefixes and pass through the Algebra.compile() method it expands all prefixes. Is there a way to keep them Code is basically: PREFIX e: SELECT ?description (SUM(?amount) AS ?mealTotal) WHERE { ?meal