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

Re: Comment on: rq25

From: Andy Seaborne <andy.seaborne@talis.com>
Date: Mon, 21 Dec 2009 15:01:10 +0000
Message-ID: <4B2F8DB6.20607@talis.com>
To: Olivier Corby <Olivier.Corby@sophia.inria.fr>
CC: SPARQL Working Group <public-rdf-dawg@w3.org>

>>
>> What about distinct, does it select distinct values of price ?
>>
>> select distinct price(?doc) as ?price where {
>> ?doc :author ?a
>> }
>
> Yes. DISTINCT is a modifier that happens after the expressions have been
> evaluated and the nre variables bound.

http://lists.w3.org/Archives/Public/public-rdf-dawg/2009OctDec/0585.html

A discussion of the order of modifers hasn't made the doc yet but it's:

pattern =>
    group inc aggregate calculation =>
      extends =>
         having =>
            order by =>
              project =>
                distinct => reduced =>
                  offset/limit

So, the names are out of scope earlier ones (GROUP BY) and legal in 
later ones (e.g. ORDER BY and DISTINCT).

	Andy
Received on Monday, 21 December 2009 15:01:32 GMT

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