Re: Doubt about name space declaration block

At 02:38 10/06/05 +0200, Andrea Splendiani wrote:

>Citing 
>from:   <http://www.w3.org/TR/owl-guide/>http://www.w3.org/TR/owl-guide/
>
>
>I get the following namespace declaration:
>
><rdf:RDF
>     xmlns 
> ="<http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#>http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#" 
>
>     xmlns:vin 
> ="<http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#>http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#" 
>
>     xml:base 
> ="<http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#>http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#" 
>
> 
>xmlns:food="<http://www.w3.org/TR/2004/REC-owl-guide-20040210/food#>http://www.w3.org/TR/2004/REC-owl-guide-20040210/food#" 
>
>     xmlns:owl 
> ="<http://www.w3.org/2002/07/owl#>http://www.w3.org/2002/07/owl#"
>     xmlns:rdf 
> ="<http://www.w3.org/1999/02/22-rdf-syntax-ns#>http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
>
> 
>xmlns:rdfs="<http://www.w3.org/2000/01/rdf-schema#>http://www.w3.org/2000/01/rdf-schema#" 
>
>     xmlns:xsd 
> ="<http://www.w3.org/2001/XMLSchema#>http://www.w3.org/2001/XMLSchema#">
>
>Later in the document internal references are like this:
>
><owl:Class rdf:ID="Pasta">
>   <rdfs:subClassOf rdf:resource="#EdibleThing" />
>   ...
></owl:Class>
>
>xml:base 
>="<http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#>http://www.w3.org/TR/2004/REC-owl-guide-20040210/wine#" 
>
>Why do we have the "#" character ath the end of basename ? Isn't it a 
>duplicate ?

The 'rdf:resource="#EdibleThing"' and base URI are combines using the URI 
relative URI resolution algorithm (see [1]), so this works just fine.  It 
would also work if the base URI did not have a trailing '#', but there 
are/may be other reasons why the '#' has been included.

#g
--

[1] ftp://ftp.rfc-editor.org/in-notes/rfc3986.txt



------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact

Received on Friday, 10 June 2005 09:52:44 UTC