Re: Prioritised list of open issues (query, my bits)

On 9 Feb 2010, at 09:00, Andy Seaborne wrote:
> On 08/02/2010 10:23 AM, Steve Harris wrote:
>> http://www.w3.org/2009/sparql/track/issues/35
>> Can aggregate functions take DISTINCT as an argument a la SELECT
>> COUNT(DISTINCT ?X)?
>> - Seems consensus on yes.
>
> A URI should name the function, not a collection of related  
> functionality.
>
> Example:
>
> COUNT(DISTINCT ?x) vs COUNT(?x)
>
> How do you name the difference if they are not different URIs?

In my view, DISTINCT does not change the function, it changes the  
(multi)set that the function is applied to, c.f. http://www.w3.org/2009/sparql/docs/query-1.1/rq25.xml#aggregateAlgebra

More concretely, you form a DISTINCT multiset of the bound values of ? 
x, then apply the count function to the resulting set.

> In custom aggregates, what does my:agg name?

The aggregate function, defined as per the aggregate functions in §9.2.

- Steve

-- 
Steve Harris, Garlik Limited
2 Sheen Road, Richmond, TW9 1AE, UK
+44 20 8973 2465  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10  
9AD

Received on Tuesday, 9 February 2010 09:53:23 UTC