Re: More on the evil examples... and "What really happened to Limit per Resource?"

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:23:47 UTC