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 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

Re: use aggregates in CONSTRUCT query

2015-11-02 Thread Milorad Tosic
ubject: Re: use aggregates in CONSTRUCT query 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 <peter.w...@tuwien.ac.at> wrote: &g

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 {