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

xs:string return types: [was Re: function library summary and issues]

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Wed, 17 Nov 2010 15:36:46 +0000
Message-ID: <4CE3F68E.8040700@epimorphics.com>
To: Axel Polleres <axel.polleres@deri.org>
CC: SPARQL Working Group <public-rdf-dawg@w3.org>
The return type for fn:concat and fn:strig-join is xs:string not a 
simple literal.

On 16/11/10 18:33, Axel Polleres wrote:
>    cf. http://www.w3.org/2009/sparql/meeting/2010-11-16#line0289
>    As for 2) there were some discussions about concat still, with three alternatives:
>    - take fn:concat "as is" i.e. only accepting xs:AtomicTypes castable to xs:string

My reading is that a consequence of this is:

  fn:concat("a", "b") -> "ab"^^xsd:string

Do we want that?  I don't think it's helpful.

The example in section 2.5 is wrong (who added that?)

Steve --

The signature for fn:string-join used in GROUP_CONCAT is also returns an 
xsd:string did you mean that?  The example underneath does not match that.

fn:string-join($arg1 as xs:string*, $arg2 as xs:string) as xs:string

Received on Wednesday, 17 November 2010 15:37:22 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:02 UTC