Re: GROUP_CONCAT

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 UTC