On 7/19/2012 13:51, Andy Seaborne wrote:
On 19/07/12 18:50, Holger Knublauch wrote:
Andy,
just to double-check: GROUP_CONCAT is supposed to take potentially
multiple expressions as arguments, but ARQ seems to be incomplete here?
Example?
CONCAT != GROUP_CONCAT
'GROUP_CONCAT' '(' 'DISTINCT'? Expression ( ';' 'SEPARATOR' '=' String
)? ')'
So no, exactly one expression and at most one separator.
Ah good, my fault: I must have looked at an older draft of SPARQL 1.1,
plus I saw email threads where the separator syntax was discussed that
included examples with multiple expressions.
Given that it only takes one expression argument, it would be great if
the separator syntax could be simplified, so that the separator is
simply the second argument, e.g. GROUP_CONCAT(?name, "|"). Does it still
make sense to suggest this on the W3C list or is this a dead horse?
Also, could you please make AggGroupConcat/Distinct.getSeparator()
public? I need this for the ARQ->SPIN RDF syntax conversion.
Done - you get back the separator as seen (so it may be null), not the
effective separator (defaults to space).
Great!
Thanks
Holger