Namespace的URL中带#的有什么不同?
hax 2002-06-13 01:18:35 http://www.w3.org/TR/rdf-primer/
1. <?xml version="1.0"?>
2. <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3. xmlns:ex="http://www.example.org/terms/">
4. <rdf:Description rdf:about="http://www.example.org/index.html">
5. <ex:creation-date>August 16, 1999</ex:creation-date>
6. </rdf:Description>
7. </rdf:RDF>
注释中有这样的话:
@@Not a URI with #; need to deal with this URI reference business@@
谁能帮我解释一下?
有人对我说:“我的理解就是以#结尾的东东不是URI(但#可以在URI中间出现的哦),所以也不是Namespace,所以用缺省的namespace来作为当前的namespace,缺省的namespace是由http://www.w3.org/1999/02/22-rdf-syntax-ns#定义的。……看了RFC2396,说URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
...As such, it(Fragment Identifier) is not part of a URI, but is often used in conjunction with a URI. ...However, "the URI" that results from such a reference includes only the absolute URI after the fragment identifier (if any) is removed and after any relative URI is resolved to its absolute form. 总结:#后面的东东是注释性质的,不算做URI的一部分的。”
但是我还是不太明白,谁能解释?
我给乐于助人的大虾们准备了180分!如果回答得很有启发,我还可以再送100分。