W3C home > Mailing lists > Public > public-sparql-dev@w3.org > October to December 2007

RE: Simple example of need for negation operator

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Tue, 11 Dec 2007 16:16:13 +0000
To: Lee Feigenbaum <lee@thefigtrees.net>, Adrian Walker <adriandwalker@gmail.com>
Cc: "public-sparql-dev@w3.org" <public-sparql-dev@w3.org>
Message-ID: <38CBA1F6A350B044AF785E63AAC3C67763E4805063@G5W0276.americas.hpqcorp.net>

-------- Original Message --------
> From: Lee Feigenbaum <>
> Date: 11 December 2007 14:53
>
> Some can, like min and max. Most can't, as far as I know.
>
> See
> http://lists.w3.org/Archives/Public/public-rdf-dawg/2007OctDec/0078.html
>
> Lee
>
> Adrian Walker wrote:
> > Lee --
> >
> > Is there perhaps some similar SPARQL workaround to get aggregation?
> >
> > That would be: count rows, count symbols, sum, max, min, and avg.
> >
> >                                   Thanks,  -- Adrian
> >

For count/sum/avg/stddev - it would require assignment of some term not in the graph.  Only BGPs can set variable bindings.  So, no, it can't be done unless the answer is already in the graph in some way.

        Andy
Received on Tuesday, 11 December 2007 16:19:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:17:05 GMT