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

RE: modeling nested containers with items

From: DuCharme, Bob (LNG-CHO) <bob.ducharme@lexisnexis.com>
Date: Wed, 8 Oct 2003 15:49:30 -0400
Message-ID: <FEF4858E8AB32D4EAC2CF2A7D85386EBE52CF7@lnxdayexch06.lexis-nexis.com>
To: "'Mark Baker'" <distobj@acm.org>, www-rdf-interest@w3.org

>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#"
    <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">
             <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"/>

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

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