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

Re: Error in STRAFTER() example?

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 05 Nov 2012 21:04:08 +0000
Message-ID: <509829C8.3080307@epimorphics.com>
To: public-rdf-dawg@w3.org


On 05/11/12 12:34, Steve Harris wrote:
> Spotted by the engineering team here.
>
> http://www.w3.org/TR/2012/WD-sparql11-query-20120724/#func-strafter
>
> This example seems to be wrong:
> strafter("abc"^^xsd:string,"")	""^^xsd:string
> I believe it should be
> strafter("abc"^^xsd:string,"")	"abc"^^xsd:string
>
> The fn:substring-after says "If the value of $arg2 is the zero-length string, then the function returns the value of $arg1."
>
> - Steve
>

Agree (and the last example in that block is right)

Correction made.

	Andy
Received on Monday, 5 November 2012 21:04:37 GMT

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