- From: Houghton,Andrew <houghtoa@oclc.org>
- Date: Tue, 16 Aug 2005 18:31:35 -0400
- To: <www-rdf-validator@w3.org>
report=I'm not sure this is an error, but section 2.6 of the RDF/XML Syntax Specification states: "When there is only one top-level node element inside rdf:RDF, the rdf:RDF can be omitted although any XML namespaces must still be declared." After Example 7 it states: "It is possible to omit rdf:RDF in Example 7 above since there is only one rdf:Description inside rdf:RDF but this is not shown here."
This implied to me that I could just drop the rdf:RDF tag and have valid RDF, but doing that with the sample RDF produced an error that it doesn't contain any RDF statements. Given that rdf:Description is a class, it also seemed to me that I could do something like:
<?xml...>
<my:Class rdf:parseType='Resource'...>
<my:property/>
</my:Class>
So what exactly do those statements mean in section 2.6?
RDF=<?xml version="1.0">
<?xml version="1.0"?>
<rdf:Description rdf:about="http://www.w3.org/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:title>World Wide Web Consortium</dc:title>
</rdf:Description>
Received on Tuesday, 16 August 2005 22:31:41 UTC