W3C home > Mailing lists > Public > www-rdf-interest@w3.org > October 2002

Query relating to Formal Grammar for RDF

From: Oliver Lyttleton <olyttlet@computing.dcu.ie>
Date: Tue, 22 Oct 2002 14:20:12 +0100
Message-ID: <000a01c279cd$c0fe8f00$af13ce88@DHVQMD0J>
To: <www-rdf-interest@w3.org>
The formal grammar for RDF (see www.w3.org/TR/REC-rdf-syntax) indicates 
that a container cannot be a child element of a property element. 
Therefore, RDF statements like this are illegal, no?:


<books> 
       <rdf:Bag> 
             <rdf:_1 resource="Matilda"/> 
             <rdf:_2 resource="The BFG"/> 
       </rdf:Bag> 
</books>


Obviously, they're not, but according to the formal grammar, they are!

Here's a rough diagram which shows how containers and property elements
are seperated in the grammar, and therefore containers can't be children
of property elements.


[<rdf:RDF>] obj* [</rdf:RDF>]
                 |
                 |
|----------------------------------------------------------------------------------------------------------|
|                                                                                                          |
|                                                                                                          | 
Description                                                                                          Container
|                                                                                                          |
|                                                                                                          |               
<rdf:Desc> iAA? bIA? pAttr* > propertyElement* </rdf:Desc>           seq|bag|alt

I must be missing something here, I'd really appreciate it if someone
could help me!
Received on Tuesday, 22 October 2002 09:24:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:44:38 UTC