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

Re: GROUP_CONCAT

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 20 Oct 2009 19:21:16 +0100
Cc: "public-rdf-dawg@w3.org Group" <public-rdf-dawg@w3.org>
Message-Id: <D1543F45-3E23-4881-A74E-B21C46F1F977@garlik.com>
To: Gregory Williams <greg@evilfunhouse.com>
On 20 Oct 2009, at 19:15, Gregory Williams wrote:

> On Oct 20, 2009, at 1:54 PM, Steve Harris wrote:
>
>> GROUP_CONCAT() is an aggregate function that takes an aggregated  
>> variable, and returns a string - I guess a plain literal in RDF  
>> terms.
> ...
>> As Andy said on the call, if you want the output to be machine  
>> readable (e.g. to treat it as an array on the client side) you may  
>> need to escape the values passed to GROUP_CONCAT.
>
> I assume this means you could use an expression instead of just "an  
> aggregated variable"?

Yes, for example I've done things equivalent to
   GROUP_CONCAT(CONCAT(?lat, ",", ?long), " ")
before

- Steve
Received on Tuesday, 20 October 2009 18:21:46 GMT

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