W3C home > Mailing lists > Public > www-rdf-comments@w3.org > April to June 2003

Re: strange treatment of namespaces in RDF/XML

From: Peter F. Patel-Schneider <pfps@research.bell-labs.com>
Date: Wed, 04 Jun 2003 18:59:56 -0400 (EDT)
Message-Id: <20030604.185956.68545617.pfps@research.bell-labs.com>
To: b.fallenstein@gmx.de
Cc: www-rdf-comments@w3.org

From: Benja Fallenstein <b.fallenstein@gmx.de>
Subject: Re: strange treatment of namespaces in RDF/XML
Date: Wed, 04 Jun 2003 23:18:47 +0200

> 
> Hi Peter,
> 
> Peter F. Patel-Schneider wrote:
> > So
> > 	... xmlns:xm = "http://www.w3.org/XML/1998/namesp"
> > 	... rdf:about="ace#hi" ...
> > is legal, as is
> > 	... xmlns:xmx = "http://www.w3.org/XML/1998/namespace"
> > 	... rdf:about="#hi" ...
> > but 
> > 	... xmlns:xmxx = "http://www.w3.org/XML/1998/namespace#h"
> > 	... rdf:about="i" ...
> > is not. 
> 
> But the rdf:about is resolved relatively to the base URI, right? So the 
> namespace declaration should not have any influence on the 
> interpretation of the rdf:about at all, or am I missing something?
> 
> - Benja

Argh, argh, argh.  Mea culpa.

When trying to put together an example, I went from QNames to rdf:about, to
get around the problem with # in the local name, forgetting that rdf:about
doesn't use QNames.  Stupid me.

The example should be

So
	... xmlns:xm = "http://www.w3.org/XML/1998/namesp"
	.. <xm:acehi ... /> ...
is legal, as is
	... xmlns:xmx = "http://www.w3.org/XML/1998/namespace"
	.. <xmx:hi ... /> ...
but 
	... xmlns:xmxx = "http://www.w3.org/XML/1998/namespaceh"
	.. <xmxx:i ... /> ...
is not. 


peter
Received on Wednesday, 4 June 2003 19:00:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:32 GMT