Sign In/My Account | View Cart  
advertisement

Article:
 Make Your XML RDF-Friendly
Subject: Possible typos?
Date: 2002-11-01 14:04:49
From: Robert Barta

Please correct me if I am wrong, but
should not i1 be i2 here?


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


And - in the text above - sample1 appears twice.


\rho


PS: Did not know that there are still people
who use \ in file paths. ;-)


Previous Message Previous Message   Next Message Next Message


Titles Only Titles Only Newest First
  • Possible typos?
    2002-11-03 20:39:06 Bob DuCharme [Reply]

    >Please correct me if I am wrong, but
    >should not i1 be i2 here?


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


    No, the attachments element and the rdf:Bag element each get their own unique ID value. They're not absolutely necessary, but are somewhat proactive to take control over the names assigned to the resources in the RDF triples, which would otherwise make up names.


    >And - in the text above - sample1 appears twice.


    I only see it there once...


    Bob DuCharme

    • Possible typos?
      2002-11-07 12:05:15 Shane Crawford [Reply]

      The i2 resource has one attachment with a value of "data\sample1.txt" and another with a value of "data\sample1.txt".


Sponsored By: