W3C home > Mailing lists > Public > www-rdf-validator@w3.org > July 2003

Re: RDF Validator accepts unescaped chars in URIs

From: Martin Duerst <duerst@w3.org>
Date: Mon, 14 Jul 2003 13:42:24 -0400
Message-Id: <>
To: "Richard Cyganiak" <rcyg@gmx.de>, <Jeremy_Carroll@hp.com>, <www-rdf-validator@w3.org>

Hello Richard,

Thanks for your report. Please note that 'RDF URI references' are
indeed IRI references, i.e. they are allowed to contain a large
number of characters besides US-ASCII. At one point, the IRI spec
also allowed characters such as < and >, but based on a lot of
feedback, this has been changed. See
http://www.w3.org/International/iri-edit/#iadditional-00 for
details. My guess is that the RDF Validator will be updated
again once the final details of the new RDF specification
become finalized.

Regards,    Martin.

At 14:35 03/07/12 +0200, Richard Cyganiak wrote:

>Hi all,
>I noticed that the RDF Validator [1] accepts unescaped characters in URI
>The RDF Model and Syntax Spec states [2] that URI references should be
>interpreted per RFC2396. The RFC states that many characters must be escaped
>when used in URIs [3].
>A simple test case:
>    <?xml version="1.0"?>
>    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
>      <rdf:Description
>        rdf:about="http://www.example.org/&lt; &gt;"
>        rdf:type="http://www.example.org/#testType"/>
>    </rdf:RDF>
>The URI in rdf:about contains the chars "<", " " and ">", all of which are
>disallowed in URIs and must be URL-encoded.
>I think this should be considered a bug. Or am I missing something?
>[1] http://www.w3.org/RDF/Validator/
>[2] http://www.w3.org/TR/REC-rdf-syntax/#URI-reference
>[3] http://www.isi.edu/in-notes/rfc2396.txt
>     Sections 2 and 4.1
Received on Monday, 14 July 2003 15:21:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 20:16:58 UTC