rq25 updates (STRBEFORE, STRAFTER, REPLACE and more)

I've put in text for STRBEFORE, STRAFTER and REPLACE, removed SHA224, 
and done some tidying up in the area.

See
http://www.w3.org/2009/sparql/docs/query-1.1/rq25.xml#func-strings
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?
   (c.f. STRBEFORE and STRAFTER)

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.

 Andy

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