W3C home > Mailing lists > Public > public-rdf-wg@w3.org > April 2011

Re: [TTL] Differences between SPARQL and Turtle.

From: Andy Seaborne <andy.seaborne@epimorphics.com>
Date: Sun, 24 Apr 2011 20:08:11 +0100
Message-ID: <4DB4751B.6070507@epimorphics.com>
To: Eric Prud'hommeaux <eric@w3.org>
CC: RDF-WG <public-rdf-wg@w3.org>
> I agree with both uses, but I believe that users have come to expect
> numeric escapes to get around language lexing contraints and would
> find the fact that "ab\u0022 parses as a literal a bit of a shock.

There's no uniformity:

Legal Java:
    String x = "ab\u0022 ;
    System.out.println(x) ;


whereas C# allows \u in identifiers, character literals, and regular 
string literals.

Perl uses \x (\u means Titlecase next character)

Python allows \u like \"

C has \xhh

Some languages use \X for anything X to mean X if it's not \n, \t etc.

but that's not the real issue.  It's whether to widen the prefix name 
local name part, regardless of mechanism, and about aligning SPARQL and 

Getting characters into IRIs via prefix names is less of a concern to me 


getting bad characters in.

Received on Sunday, 24 April 2011 19:08:38 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:58 UTC