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

+ for fn:concat

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Tue, 28 Sep 2010 19:02:42 +0100
Message-ID: <4CA22DC2.9060109@epimorphics.com>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
In the draft response to a comment:

http://www.w3.org/2009/sparql/wiki/CommentResponse:PA-1

[[
Also, note that the actual syntax may still change, in fact, the group 
is discussing whether to take your proposal on board to allow '+' as a 
shortcut notation for string concatenation (fn:concat).
]]

There are several choices for the operator, or it could be a keyword (in 
which case it can take a variable, but defined, number of arguments).

CONCAT(?a,?b,?c)

GROUP_CONCAT is related.

Less need for a separator as it's a definite list of variables:.

CONCAT(?a,",",?b,",",?c)

?a+","+?b+","+?c

CONCAT("(",?a,",",?b,")")

"("+?a+","+?b+")")

	Andy
Received on Tuesday, 28 September 2010 18:03:18 GMT

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