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

intra-document rdf:resource references?

From: DuCharme, Bob (LNG-CHO) <bob.ducharme@lexisnexis.com>
Date: Tue, 12 Oct 2004 15:33:50 -0400
Message-ID: <FEF4858E8AB32D4EAC2CF2A7D85386EB0B254232@lnxdayexch06b.lexis-nexis.com>
To: RDF interest group <www-rdf-interest@w3.org>
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? 
Bob DuCharme
<!-- ~~~~~~~~ begin example ~~~~~~~~ -->
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns
<http://www.w3.org/1999/02/22-rdf-syntax-ns> #"
<http://purl.org/dc/elements/1.1/> ">
<http://www.w3.org/TR/2004/REC-rdf-primer-20040210/> ">
      <title>RDF Primer</title>
      <description rdf:resource="#i1"/>
<http://www.w3.org/TR/2004/WD-xbc-properties-20041005/> ">
      <title>XML Binary Characterization Properties</title>
      <description rdf:resource="#i2"/>
  <div id="i1">
    <p>This primer was created as part of the <a
    work at the W3C.</p>
  <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
Received on Tuesday, 12 October 2004 19:34:27 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:07:53 UTC