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

Re: xpath string index function

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Thu, 29 Sep 2011 12:11:28 +0100
Message-ID: <4E845260.1080809@epimorphics.com>
To: public-rdf-dawg@w3.org


SUBSTR_BEFORE (keyword for fn:substring-before)
SUBSTR_AFTER  (keyword for fn:substring-after)

but keep using the XSD F&O operator to back the SPARQL keywords (i.e. 
1-based strings).


It seems to be this, or redo all the string operations as 0-based, and 
have URI-calls to fn: string operations for the 1-based style.


What about adding fn:replace as well?

(I haven't checked the details of the replace language and rules to see 
if its sufficiently close to all know programming languages to be easy 
to implement via library calls - any one know?)

Received on Thursday, 29 September 2011 11:11:58 UTC

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