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

simple modeling problem

From: Bob DuCharme <bobdc@snee.com>
Date: Sun, 20 Oct 2002 13:43:58 -0400
Message-Id: <5.0.0.25.0.20021020133846.024296b0@mail.snee.com>
To: www-rdf-interest@w3.org

In the document below, I have two attributes of the m:attachments element named number and zipFilename that I want to represent somewhere in that element along with the rdf:Bag element that is the m:attachments element's contents. All three of my attempts are not kosher RDF, according to ARP. The comment in the document shows three possible replacements for the <m:attachments rdf:ID="i1"> start-tag that I tried. Any suggestions? Or doe the rdf:Bag element have to be alone in there?

thanks,

Bob DuCharme          www.snee.com/bob           <bob@  
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii
(bobdc e-mail address used only for mailing lists)


<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:m="http://www.snee.com/ns/msgs">

  <m:msg rdf:ID="i0">
    <m:Subject>Dinner tonight</m:Subject>
    <m:Sender>Nanker Phelge</m:Sender>
    <m:attachments rdf:ID="i1">
<!--

I have a number and a zipFilename attribute to describe the 
attachments element. Where do I put them? 

Replacing the m:attachments start-tag above with any of the following
is no good, according to ARP:

    <m:attachments rdf:ID="i1" m:number="2" m:zipFilename="i0.zip">

    <m:attachments rdf:ID="i1">
      <m:number>2</m:number>
      <m:zipFilename>i0.zip</m:zipFilename>

    <m:attachments rdf:ID="i1">
      <rdf:Description>
        <m:number>2</m:number>
        <m:zipFilename>i0.zip</m:zipFilename>
      </rdf:Description> 

-->
      <rdf:Bag rdf:ID="i2">
        <m:attachment>data\sample1.txt</m:attachment>
        <m:attachment>data\sample2.txt</m:attachment>
      </rdf:Bag> 

    </m:attachments>
</m:msg>
</rdf:RDF>
Received on Sunday, 20 October 2002 13:43:53 GMT

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