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: Tue, 04 Oct 2011 15:11:02 +0100
Message-ID: <4E8B13F6.2000100@epimorphics.com>
To: SPARQL Working Group <public-rdf-dawg@w3.org>


On 04/10/11 14:44, Gregory Williams wrote:
> On Oct 3, 2011, at 5:39 PM, Andy Seaborne wrote:
>
>> I have prototyped:
>>
>> STRBEFORE
>> STRAFTER
>> REPLACE
>>
>> and didn't encountered anything unexpected.
>>
>> I propose adding these as resolution of JB-7 (part 1)
>
> I'm not very familiar with the relevant xsd functions here, but I'm very hesitant to support adding these if they introduce a lot of new complexity. For example, without digging into the XSD and Unicode spec documents, it's not obvious to me why:
>
> """
> fn:substring-before ( "abcdefghi", "--d-e-", "CollationA") returns "abc"
> """
> (from http://www.w3.org/TR/xpath-functions/#func-substring-before)
>
> If the SPARQL functions being discussed operated on simple strings (or regex, as in REPLACE), I'd be more comfortable supporting their addition.
>
> .greg

I am not proposing adding versions with collation sequences.  We do not 
have functions with collation sequences elated to other F&O fucntions. 
e.g. fn:starts-with

	Andy

>
Received on Tuesday, 4 October 2011 14:11:35 GMT

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