W3C home > Mailing lists > Public > www-rdf-validator@w3.org > August 2005

Validator error? Omitting rdf:RDF

From: Richard Cyganiak <richard@cyganiak.de>
Date: Tue, 30 Aug 2005 23:18:57 +0200
Message-Id: <1A44A7AB-D938-4C26-98EA-740C67E3DB48@cyganiak.de>
To: www-rdf-validator@w3.org


This is probably just me being dense, but I can't figure out why the  
validator rejects this:

<rdf:Description xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax- 
   <rdf:type rdf:resource="http://example.org/Foo"/>

I expect it to produce this triple:

    [] rdf:type <http://example.org/Foo> .

But the validator complains:

    Error: Your document does not contain any RDF statement.

According to [1], the top-level rdf:RDF can be omitted if there's  
only one element inside. So what's wrong about the document above?

Thanks and best regards,

[1] http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-complete- 
Received on Tuesday, 30 August 2005 21:19:13 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 January 2023 20:16:59 UTC