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

Re: function library summary and issues

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Sun, 28 Nov 2010 15:34:06 +0000
Message-ID: <4CF2766E.8030104@epimorphics.com>
To: Steve Harris <steve.harris@garlik.com>
CC: Gregory Williams <greg@evilfunhouse.com>, SPARQL Working Group <public-rdf-dawg@w3.org>


On 28/11/10 15:14, Steve Harris wrote:
>> >  If we require it, it seems natural to me to have:
>> >
>> >    CONCAT("a"@en, "b"@en) ->  "ab"@en
>> >    CONCAT("a"@en, "b"@fr) ->  "ab"  (or error)
>> >    CONCAT("a"@en, "b") ->  "ab"  (or error)
> There are legitimate cases where you might have some literals without tags, and some with, and want to concatenate them, without having loads of logic.

(just sorting out the small details)

This can be achieved by using STR:

CONCAT(STR("a"@en), STR("b"@fr)) ->  "ab"

Is that too much logic?

GROUP_CONCAT does require use of STR becuase it uses fn:string-join.

	Andy
Received on Sunday, 28 November 2010 15:34:46 GMT

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