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

Re: xpath string index function

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 03 Oct 2011 22:39:27 +0100
Message-ID: <4E8A2B8F.5080008@epimorphics.com>
To: public-rdf-dawg@w3.org
I have prototyped:

STRBEFORE
STRAFTER
REPLACE

and didn't encountered anything unexpected.

I propose adding these as resolution of JB-7 (part 1)

	Andy

On 29/09/11 12:11, Andy Seaborne wrote:
> Proposal:
>
> Add
>
> 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?
> REPLACE
> http://www.w3.org/TR/xpath-functions/#func-replace
>
> (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?)
>
>
> Andy
>
Received on Monday, 3 October 2011 21:39:59 GMT

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