W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > April to June 2012

Re: Possible long response for WW-1

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 08 May 2012 14:42:22 +0100
Message-ID: <4FA922BE.9070403@epimorphics.com>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:15:48 GMT