- From: Andy Seaborne <andy.seaborne@epimorphics.com>
- Date: Tue, 08 May 2012 14:42:22 +0100
- To: public-rdf-dawg@w3.org
On 08/05/12 14:32, Sandro Hawke wrote:
> On Thu, 2012-04-26 at 12:57 +0100, Andy Seaborne wrote:
>> ---- Data 1 ----
>> @prefix :<http://example/> .
>>
>> :order :hasItem :item1 .
>> :order :hasItem :item2 .
>>
>> :item1 :price 5 .
>> :item2 :price 2 .
>> ---- Data 1 ----
>>
>>
>> SPARQL 1.1 introduces grouping and aggregation - it's one of the major
>> features missing and a major use feature request [F&R]. These queries
>> give the total price of the order.
>>
>> SELECT (SUM(?price) AS ?total)
>> WHERE { :order :item/:price ?price }
>
> That should be :hastItem/:price I think. And below, I guess you
> changed :item to :hasItem in the data but not the queries.
>
> -- Sandro
Thanks for catching that.
Andy
Received on Tuesday, 8 May 2012 13:43:00 UTC