![]() |
QName
s)
from the
XML Namespaces
Recommendation
to abbreviate URIs
rdf:type
might expand to
http://www.w3.org/1999/02/22-rdf-syntax-ns#type
xmlns
attributes, e.g.
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">
<rdfs:Class rdf:ID="Foo"/>
...
</rdf:RDF>
xmlns
without a prefix,
e.g. the following is equivalent to the example above
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/01/rdf-schema#">
<Class rdf:ID="Foo"/>
...
</rdf:RDF>
<!-- BAD: -->
<rdfs:subClassOf rdf:resource="rdfs:Resource">
<!-- GOOD: -->
<rdfs:subClassOf rdf:resource="http://www.w3.org/2000/01/rdf-schema#Resource">
<!-- GOOD: -->
<!DOCTYPE rdf:RDF [
<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
]>
...
<rdfs:subClassOf rdf:resource="&rfds;Resource">
22 of 130 |