W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2010

Group by expressions

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 31 Aug 2010 11:51:24 +0100
Message-ID: <4C7CDEAC.1010406@epimorphics.com>
To: Axel Polleres <axel.polleres@deri.org>
CC: SPARQL Working Group <public-rdf-dawg@w3.org>
Agenda for 2010-08-31:
 > Projecting expressions used for grouping - see recent discussion of 
ISSUE-41 on the mailing list

Input: The current grammar has:

[20]  GroupCondition  ::=
    ( BuiltInCall
    |  FunctionCall
    |  '(' Expression ( 'AS' Var )? ')'
    | Var )

and the name introduced can then be used in SELECT expressions and HAVING.

SELECT (?o3+128 AS ?o4)
{
....
}
GROUP BY (?o1+?o2 AS ?o3)
HAVING ( ?o3 > 45)

Currently, the name is optional, reflecting that it may not be used 
again if it's not mentioned in HAVING or SELECT.  This avoids needing to 
require sub-expression determination.

	Andy
Received on Tuesday, 31 August 2010 10:52:00 GMT

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