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

modeling nested containers with items

From: DuCharme, Bob (LNG-CHO) <bob.ducharme@lexisnexis.com>
Date: Wed, 8 Oct 2003 10:27:40 -0400
Message-ID: <FEF4858E8AB32D4EAC2CF2A7D85386EBE52CEE@lnxdayexch06.lexis-nexis.com>
To: "'www-rdf-interest@w3.org'" <www-rdf-interest@w3.org>

I'm having a hard time figuring out an RDF way to model containers that can
each contain items and/or other containers. A filesystem directory/file
structure and a bookmark folder/bookmark structure are good examples.
Assuming that each container and each item can have properties (e.g.
"created" in the example below), how could I represent the following in RDF?
My attempts at using RDF containers have been bumping into those striping
issues. Or is even attempting to use RDF here a case of barking up the wrong
tree? 


   <container id="i1" created="20031001">
      <item id="i2" created="20031001"/>         
      <item id="i3" created="20031003"/>         
      <container id="i4" created="20031002">
         <item id="i5" created="20031002"/>          
         <item id="i6" created="20031003"/>          
         <item id="i7" created="20031001"/>          
         <container id="i8" created="20031003">
            <item id="i9" created="20031004"/>
         </container>
         <container id="i10" 20031004"/>
      </container>
   </container>

thanks,

Bob
Received on Wednesday, 8 October 2003 10:30:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:02 GMT