intra-document rdf:resource references?

I was frustrated by the choice between making a dc:description element
either flat text with no inline elements, to maintain proper striping, or
else pointer to an external file using rdf:resource, and then I realized
that rdf:resource doesn't have to point outside the document. When I point
it at an element that's outside of the rdf:RDF element but inside the same
document as demonstrated below, arp2 doesn't have any problem with it. Is
there any particular reason it might not be considered good practice? 
 
thanks,
 
Bob DuCharme
 
<!-- ~~~~~~~~ begin example ~~~~~~~~ -->
 
<doc>
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns
<http://www.w3.org/1999/02/22-rdf-syntax-ns> #"
           xmlns="http://purl.org/dc/elements/1.1/
<http://purl.org/dc/elements/1.1/> ">
 
    <rdf:Description
rdf:about="http://www.w3.org/TR/2004/REC-rdf-primer-20040210/
<http://www.w3.org/TR/2004/REC-rdf-primer-20040210/> ">
      <title>RDF Primer</title>
      <description rdf:resource="#i1"/>
    </rdf:Description>
 
    <rdf:Description
rdf:about="http://www.w3.org/TR/2004/WD-xbc-properties-20041005/
<http://www.w3.org/TR/2004/WD-xbc-properties-20041005/> ">
      <title>XML Binary Characterization Properties</title>
      <description rdf:resource="#i2"/>
    </rdf:Description>
 
  </rdf:RDF>
 
  <div id="i1">
    <p>This primer was created as part of the <a
href='http://www.w3.org/RDF/'>RDF</a>
    work at the W3C.</p>
  </div>
 
  <div id="i2">
    <p>Kendall Clark described some of the issues around binary XML in
    an <a href='http://www.xml.com/pub/a/2003/08/13/deviant.html'>XML.com
article</a>.</p>
  </div>
 
</doc>
 

Received on Tuesday, 12 October 2004 19:34:27 UTC