Re: pound sign vs. slash as final URI delimiter

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Janne Saarela wrote:
| <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|          xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
|          xml:base="http://www.schemas.org/music#">
|
| <rdfs:Class rdf:ID="Artist" />
...
| Is this supposed to produce triple:
| S:http://www.schemas.org/music#Artist
...
| or
| S:http://www.schemas.org/Artist
...
| I believe the former but RFC239 [3] suggests
| the relative URI (Artist) is resolved against the base
| URI by omitting characters after the last slash (/)
| resulting in http://www.schemas.org/Artist. Which one
| is now right?

rdf:ID does not directly contain a relative URI:

| The rdf:ID attribute on a node element (not property element, that has
| another meaning) can be used instead of rdf:about and gives a relative
| RDF URI reference equivalent to # concatenated with the rdf:ID attribute
| value. So for example if rdf:ID="name", that would be equivalent to
| rdf:about="#name". rdf:ID provides an additional check since the same
| name can only appear once in the scope of an xml:base value (or
| document, if none is given), so is useful for defining a set of
| distinct, related terms relative to the same RDF URI reference.

Source:
http://www.w3.org/TR/2004/REC-rdf-syntax-grammar-20040210/#section-Syntax-ID-xml-base

Thus, the first interpretation is not only the intended one, but also
the one of the specs.

- - Benja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAXDloUvR5J6wSKPMRAsurAJ9mzNZuZjanQ2IsYMsA9x82j2H4egCgvEmQ
wpzAdRNk3atK08b7FjCnZ+A=
=G+6I
-----END PGP SIGNATURE-----

Received on Saturday, 20 March 2004 07:31:16 UTC