W3C home > Mailing lists > Public > public-rdf-dawg@w3.org > July to September 2005

Re: [Fwd: SPARQL: Backslashes in string literals]

From: Steve Harris <S.W.Harris@ecs.soton.ac.uk>
Date: Fri, 5 Aug 2005 10:03:59 +0100
To: RDF Data Access Working Group <public-rdf-dawg@w3.org>
Message-ID: <20050805090359.GC19292@login.ecs.soton.ac.uk>

On Thu, Aug 04, 2005 at 04:56:17 +0100, Andy Seaborne wrote:
> >so charmod says this should work:
> >
> > SELECT ?foo\x0045bar WHERE { ?foo\x0045bar dc:title ?xyz }.
> 
> We can do one of:
> 1/ Extend \u and \U to apply to variables
> 2/ Make it so \u is on input processing (before tokenizing)
>    so it works everywhere including comments and is transparent to
>    parsing proper
> 
> 1/ is probable clearer 2/ is probably easier to implement
> 
> A test is "SELEC\u0054"
> 
> Another is the comment
> 
>     # \u escapes need thinking about.
> 
> which is illegal by 2 but legal by 1.

Unless comment processing is also done on input (ala the C pre-processor)
I dont know if I like the idea of
	/* comment \u002A/
being a valid comment

- Steve
Received on Friday, 5 August 2005 09:05:18 GMT

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