W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > November 2011

Re: Aggregation w/o data?

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 8 Nov 2011 16:11:53 +0000
Message-Id: <B49175FF-5479-4FBA-8931-CB3EBDF23D84@garlik.com>
To: public-rdf-dawg-comments@w3.org, Bryan Thompson <bryan@systap.com>
In response to http://lists.w3.org/Archives/Public/public-rdf-dawg-comments/2011Sep/0000.html

> What is the output of this query if no solutions satisify the WHERE clause?
> An empty solution set or a solution set with a single solution having a
> binding of 0^^xsd:integer?
>
> PREFIX : <http://example/>
> SELECT (SUM(?lprice) AS ?totalPrice)
> WHERE {
>   ?book :price ?lprice .
> }
> GROUP BY ?book

An empty solution set.

Please indicate whether this response has answered your query.

Steve, on behalf of the SPARQL Working Group
Received on Tuesday, 8 November 2011 16:12:26 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 November 2011 16:12:26 GMT