AW: use aggregates in CONSTRUCT query

2015-11-05 Thread Wetz Peter
Thanks, that did the trick. > -Ursprüngliche Nachricht- > Von: Milorad Tosic [mailto:mbto...@yahoo.com.INVALID] > Gesendet: Montag, 02. November 2015 12:35 > An: users@jena.apache.org > Betreff: Re: use aggregates in CONSTRUCT query > > Peter, > A pragmatic way

Re: use aggregates in CONSTRUCT query

2015-11-02 Thread Milorad Tosic
Peter, A pragmatic way would be to use a nested SELECT first, where you can define aggregates that you would latter use in CONSTRUCT as usual. Regards,Milorad From: Martynas Jusevičius To: users@jena.apache.org Sent: Monday, November 2, 2015 12:23 PM Subject: Re: use aggregates in

Re: use aggregates in CONSTRUCT query

2015-11-02 Thread Martynas Jusevičius
You can, but they need to go in the WHERE part, not CONSTRUCT. And you need to GROUP BY first: http://rdf.myexperiment.org/howtosparql?page=GROUP%20BY On Mon, Nov 2, 2015 at 12:20 PM, Wetz Peter wrote: > This is more of a SPARQL question, so sorry, if it not perfectly fits here: > I wonder, if it

use aggregates in CONSTRUCT query

2015-11-02 Thread Wetz Peter
This is more of a SPARQL question, so sorry, if it not perfectly fits here: I wonder, if it's possible to use aggregates in SPARQL CONSTRUCT queries. For instance, I have the following query: CONSTRUCT { ?s ei:number ?number . } FROM WHERE { ?s