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

rq25 updates (STRBEFORE, STRAFTER, REPLACE and more)

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Mon, 31 Oct 2011 13:41:43 +0000
Message-ID: <4EAEA597.1040800@epimorphics.com>
To: SPARQL Working Group <public-rdf-dawg@w3.org>
I've put in text for STRBEFORE, STRAFTER and REPLACE, removed SHA224, 
and done some tidying up in the area.

and onwards.

One issue arises:

REGEX currently takes a simple literal only for the first argument.

For RDF 1.1 preparation, this should change to xsd:string or simple literal.

REPLACE is like REGEX except it makes replacements.

What should the first argument to REPLACE be?

I'm assuming the pattern replacement and flags are still simple literals 
(or + xsd:strings for RDF 1.1).

Like REGEX only working on plain strings.
Or also process language tagged literals?

I'd like REGEX and REPLACE to align.

Proposal 1:
REGEX and REPLACE work on strings (simple literal or xsd:string) only.

Proposal 2:
REGEX and REPLACE work on all string-like forms as first argument 
(includes literals with language tag).  This adds first argument literal 
with language tag to REGEX.

My preference is 2 but 1 is fine.

NB: 2 is a change from SPARQL 1.0 making things that were errors into 
legal outputs.

Received on Monday, 31 October 2011 13:42:16 UTC

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