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

Re: ACTION-24: aggregate functions with multiple answers

From: Gregory Williams <greg@evilfunhouse.com>
Date: Mon, 11 May 2009 12:36:56 -0400
Cc: SPARQL Working Group <public-rdf-dawg@w3.org>
Message-Id: <43CCCBF5-BE40-4C54-8160-F25FD81E1026@evilfunhouse.com>
To: "Seaborne, Andy" <andy.seaborne@hp.com>
A couple of questions...

On May 11, 2009, at 10:36 AM, Seaborne, Andy wrote:

> Choices for dealing with this include:
>
> 1/ The value space for MIN is the value space of the first  
> encountered datatype and everything incompatible is ignored.
>
> 2/ The value space has to be given - there is no single "MIN"  
> operation:
> e.g. MIN(xsd:dateTime, ?x)

In what way is this different from the explicit casting approach  
previously mentioned (MIN(xsd:date(?x))? Do you imagine that they  
would handle differently values for which the casting fails?

> 3/ There is one answer per group for each datatype encountered in  
> the group.  This means multiple rows per group.

Could the same functionality be had by allowing a DATATYPE(?x)  
expression in the GROUP BY clause?

thanks,
.greg
Received on Monday, 11 May 2009 16:37:33 GMT

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