Re: what functions should we include in SPARQL 1.1?

On 2010-11-03, at 10:23, Andy Seaborne wrote:

> Fine tuning.
> fn:concat
> [[
> The fn:concat function is specified to allow an two or more arguments that are concatenated together. This is the only function specified in this document that allows a variable number of arguments. This capability is retained for compatibility with [XML Path Language (XPath) Version 1.0].
> ]]
> As Steve pointed out, fn:concat casts to string (and empty sequences go to empty string) but also it's the only function in F&O that takes a variable number of arguments; others take sequences e.g. fn:string-join.
> If we wish to be more conservative, we could provide own binary string concatenation operation (tighter signature, can devolves to fn:concat for the functionality).

OK, but I think we should also expose a CONCAT() function that's fn:concat underneath. The variadic nature is useful, as is the implicit cast to xsd:string.

- Steve 

Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD

Received on Wednesday, 3 November 2010 11:06:56 UTC