RE: modeling nested containers with items

>Freaky, I was just going to ask exactly the same thing.  It seems like
>it should be defined in the RDF namespace since Bag, Seq, and Alt are
>all containers.

I guess that rdf:li plays that role
(http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-list-elements). The
RDF below parses, and does what I want. 

I'm assuming that logic along the lines of "if people recognize it from
HTML, they'll be more comfortable with it" went into naming it, but it can
clearly be used to identify more than a List Item, so it's an unfortunate
choice of name. Whether we're talking about directories and files or
bookmarks folders and bookmarks, the semantics of "contains" as a predicate
seems much more intuitive to me than the semantics of "list item." 

to say "directory x has a list item property with value http://x


 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:ex="http://example.org/">
    <ex:Container rdf:ID="i1" ex:created="20031001">
       <rdf:li rdf:parseType="Resource">
          <ex:Item rdf:ID="i2" ex:created="20031001"/>
          <ex:Item rdf:ID="i3" ex:created="20031003"/>
          <ex:Container rdf:ID="i4" rdf:parseType="Resource">
             <ex:created>20031002</ex:created>
             <rdf:li rdf:parseType="Resource">
                <ex:Item rdf:ID="i5" ex:created="20031002"/>
                <ex:Item rdf:ID="i6" ex:created="20031003"/>
                <ex:Item rdf:ID="i7" ex:created="20031001"/>
             </rdf:li>
          </ex:Container>
       </rdf:li>
     </ex:Container>
 </rdf:RDF>

Bob

Received on Wednesday, 8 October 2003 15:49:34 UTC