W3C home > Mailing lists > Public > semantic-web@w3.org > October 2010

A question on Test 29 of Turtle Tests

From: Andrew Newman <andrewfnewman@gmail.com>
Date: Mon, 4 Oct 2010 07:53:32 +1000
Message-ID: <AANLkTikZM_2gKPHh-N7AkEyAaJWV9Vrm+Shyag3n8S7N@mail.gmail.com>
To: SWIG <semantic-web@w3.org>
Hi,

I'm trying to understand how the following file is a valid NTriple
file (which is found in the Turtle compliance tests):
http://www.w3.org/TeamSubmission/turtle/tests/test-29.out

The question is about the object in the triple starting with:
"<scheme:\u0001" which, following NTriple escaping, a URI Reference
"scheme:" followed by unicode character 0001.  It seems like this is
an invalid URI.

It confused me because the manifest actually says "Escaping U+0001
toU+007F in a URI".  It would seem that this example would be simpler
to a be literal rather than a URI.

The way to parse these files seems to be to perform NTriple escaping
and then parse the string as a (absolute) URI.  That's how I get an
invalid URI so I must be doing something simple wrong.

Maybe a solution is to have a special NTriple escaping for URIs
(\u0001 -> %01)?  Except of course, those that are "ALPHA
(%41-%5A and %61-%7A), DIGIT (%30-%39), hyphen (%2D), period (%2E),
underscore (%5F), or tilde (%7E)" (from the RFC on URIs).

-Andrew
Received on Sunday, 3 October 2010 23:46:36 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:41:23 UTC