RE: INSEE releases OWL ontology and RDF data for geographical entities

Eric,

You quoted:
"It is recommended that implementors of RDF serializers, in order to break a
URI into a namespace name and a local name, split it after the last XML
non-NCName character, ensuring that the first character of the name is a
Letter or '_'. If the URI ends in a non-NCName character then throw a "this
graph cannot be serialized in RDF/XML" exception or error."

Please help me understand: 

What is weird on those URIs?

If we have http://foo.com#b or http://foo.com/b then, to above rule, it must
be split after the last non-NCName character, i.e. after # or / .
In both cases we get a namespace name http://foo.com and a local name "b".
The # or / is deleted. 

>From your last sentence I understand that this deletion will not take place,
but that would mean that you always end up with a namespace name that ends
in a non-NCName character and has to be thrown. That seems weird.

That prefixing of "b" to "the"(which ones?) local names, as you wrote,
escapes me totally.

I apologize for these basic questions, I seem to be at that level of
understanding.

Regards,
Hans

-----Original Message-----
From: Eric van der Vlist [mailto:vdv@dyomedea.com] 
Sent: Sunday, August 06, 2006 16:00
To: Hans Teijgeler
Cc: 'Xiaoshu Wang'; 'Dan Connolly'; semantic-web@w3.org;
public-xg-geo@w3.org
Subject: RE: INSEE releases OWL ontology and RDF data for geographical
entities

Hans,

Le dimanche 06 août 2006 à 15:45 +0200, Hans Teijgeler a écrit : 
> Eric,
> 
> I thought I understood you, until the last five words: 'you won't have 
> roundtrip'.
> Please elaborate on what you exactly mean with that roundtrip.

If I understand the spec correctly, if you load a XML/RDF document with
weird namespaces names such as http://foo.com/b or http://foo.com#b in a RDF
parser and serialise the model back into XML/RDF, in addition to the common
"roundtrip" issues, the result could use different namespace and local names
than the original document! (the namespace name would be http://foo.com/ or
http://foo.com# and a "b" would have been prefixed to the local names!).

Eric 

--
GPG-PGP: 2A528005
Le premier annuaire des apiculteurs 100% XML!
                                                http://apiculteurs.info/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------

--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.0.394 / Virus Database: 268.10.7/409 - Release Date: 04-Aug-06
 
  

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.0.394 / Virus Database: 268.10.7/409 - Release Date: 04-Aug-06
 

Received on Sunday, 6 August 2006 14:33:14 UTC