- From: Axel Polleres <axel.polleres@deri.org>
- Date: Mon, 9 Nov 2009 16:25:55 +0000
- To: "Olivier Corby" <Olivier.Corby@sophia.inria.fr>
- Cc: "SPARQL Working Group" <public-rdf-dawg@w3.org>
Indeed, looks nice just using distinct instead of of an aggregate.
Axel
On 9 Nov 2009, at 16:23, Olivier Corby wrote:
> In order to get one price per book, I suggest this :
>
> PREFIX : <http://books.example/>
> SELECT SUM(?lprice) AS ?totalPrice
> WHERE {
> {select distinct ?org ?book where {
> ?org :affiliates ?auth .
> ?auth :writesBook ?book .}
> }
> ?book :price ?lprice
> }
> GROUP BY ?org
> HAVING (SUM(?lprice) > 10)
>
>
>
> Olivier
>
Received on Monday, 9 November 2009 16:26:33 UTC