Re: initial set of aggregates test cases plus ACTION-210

On Aug 22, 2010, at 7:44 PM, Axel Polleres wrote:

> I committed some initial aggregates test cases for COUNT, including some on COUNT(*).
> Particularly agg06 covers:
> 
> SELECT (COUNT(*) AS ?C) .... HAVING (COUNT(*) > 0 )
> 
> as proposed in ACTION-210.
> 
> Please check [1]. I still need to verify and include the aggregates test cases from 
> my earlier mail [2].

The manifest lists both :agg04 and :agg05 as sharing the results from agg04.srx, but :agg05 projects one more variable than :agg04, and has a grouping that I believe should yield two results, not one.

# agg05.rq
PREFIX : <http://www.example.org>

SELECT ?P (COUNT(*) AS ?C)
WHERE { ?S ?P ?O }
GROUP BY ?P

# agg01.ttl
:s :p1 :o1, :o2, :o3.
:s :p2 :o1, :o2.

### suggested agg05 results:

?P	?C
----------
:p1	3
:p2	2



.greg

Received on Monday, 23 August 2010 02:27:32 UTC