Re: query regarding validity of RDF file

At 12:39 12/02/2003 +0000, Oliver Lyttleton wrote:
>Is a tag like this permissible in RDF?
>
><rdf:RDF
>     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
>     xmlns:lib="http://www.zvon.org/library">

Yes

>The formal grammar for RDF would seem to say no:
>
>RDF     ::= ['<rdf:RDF>'] 
><http://www.w3.org/TR/1999/REC-rdf-syntax-19990222/#obj>obj* ['</rdf:RDF>']
>
>ie you can't declare namespaces as attributes of the root element of an 
>RDF document.

I think you are referring to grammar in Model & Syntax

   http://www.w3.org/TR/1999/REC-rdf-syntax-19990222/

Whilst this is the current specification, the RDFCore WG have been revising 
and clarifying the specs.  I suggest you take a look at the last call 
working draft of the updated spec:

   http://www.w3.org/TR/rdf-syntax-grammar/

Brian

Received on Wednesday, 12 February 2003 08:06:18 UTC