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

[Fwd: SPARQL: Backslashes in string literals]

From: Seaborne, Andy <andy.seaborne@hp.com>
Date: Thu, 04 Aug 2005 13:52:18 +0100
Message-ID: <42F20F82.2000008@hp.com>
To: RDF Data Access Working Group <public-rdf-dawg@w3.org>

ACTION AndyS: take the "Backslashes in string literals" comment

I have added text for string escapes in
The escapes are:
\t \b \n \r \f \' \" \uXXXX \UXXXXXXXX
The choice of escapes was based on what programming languages seem to typically 

(which has the strange effect that writing the string in your fav language means 
the processing is done there, not in SPARQL, if you use one backslash which 
works for everything except \n and \r because the are not allows as raw 
charcater in single line strings).

At Dave's suggestion,  I also put in text to allow \u and \U in IRIs and qnames 
in support of writing queries where the input system isn't capable of the full 
range of UTF characters

When reviewed and approved, I'll reply on the comments list.

-------- Original Message --------
Subject: SPARQL: Backslashes in string literals
Resent-Date: Mon, 01 Aug 2005 18:32:56 +0000
Resent-From: public-rdf-dawg-comments@w3.org
Date: Mon, 01 Aug 2005 20:32:47 +0200
From: Bjoern Hoehrmann <derhoermi@gmx.net>
To: public-rdf-dawg-comments@w3.org

Dear RDF Data Access Working Group,

   http://www.w3.org/TR/2005/WD-rdf-sparql-query-20050721/ does not seem
to define what it means if a string literal includes a backslash though
that is allowed by the EBNF. Please add normative prose and an example
defining and demonstrating proper use of backslashes in string literals.
See also <http://www.w3.org/TR/charmod/#sec-Escaping>.

Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
Received on Thursday, 4 August 2005 12:52:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:00:48 UTC