Corrections to Chapter 19 of The XML Bible, The Resource Description Framework

p. 637: The closing quote is missing from the xmlns:dc attribute value in Listing 19-3 and from the about attribute in the rdf:Description element in the same listing. It should be:

<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://purl.org/DC/">

  <rdf:Description about="http://metalab.unc.edu/xml/">
    <dc:CREATOR>Elliotte Rusty Harold</dc:CREATOR>
    <dc:TITLE>Cafe con Leche</dc:TITLE>
  </rdf:Description>

</rdf:RDF>
p. 639: There's an extra closing quote on the xmlns attribute in Listing 19-5. It should be:

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:dc="http://www.purl.org/DC/">

p. 639: In Listing 19-5, <dc:CREATOR/> should be <dc:CREATOR>.

p. 639: An opening quote is missing from the xmlns:rdf attribute value and the closing quote is missing from the xmlns:dc attribute value in Listing 19-6. There's also an improper double starting quote on the about attribute of the second rdf:Description element. It should be:

<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://www.purl.org/DC/">

  <rdf:Description about="http://metalab.unc.edu/xml/">
    <dc:TITLE>Cafe con Leche</dc:TITLE>
    <dc:CREATOR rdf:resource="mailto:elharo@metalab.unc.edu"/> 
  </rdf:Description>

  <rdf:Description about="mailto:elharo@metalab.unc.edu">
    <dc:TITLE>Elliotte Rusty Harold</dc:TITLE>
  </rdf:Description>

</rdf:RDF>
p. 641: The closing quote is missing from the xmlns:dc and xmlns:rdf attribute values in Listing 19-8. It should be:

 <rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://www.purl.org/DC/"
  xmlns:nm="http://www.metalab.unc.edu/xml/names/">
p. 645: There's a missing closing quote in the second rdf:li element in the first rdf:Description element in Listing 19-10. It should be:

  <rdf:Description about="http://metalab.unc.edu/xml/">
    <dc:TITLE>Cafe con Leche</dc:TITLE>
    <dc:CREATOR>Elliotte Rusty Harold</dc:CREATOR>
    <dc:SUBJECT>
      <rdf:Bag>
        <rdf:li 
          resource="http://metalab.unc.edu/xml/news1999.html"/>
        <rdf:li 
      resource="http://metalab.unc.edu/xml/mailinglists.html"/>
        <rdf:li 
          resource="http://metalab.unc.edu/xml/news1999.html"/>
        <rdf:li 
        resource="http://metalab.unc.edu/xml/tradeshows.html"/>
      </rdf:Bag>
    </dc:SUBJECT>
  </rdf:Description>

p. 646: The caption for Listing 19-11 should read, "Mirror sites of Cafe au Lait in an Alt"

p. 648: In Listing 19-12, the first rdf:Description element some of the attribute values are missing closing quotes. It should be

  <rdf:Description 
    about="http://metalab.unc.edu/xml/links.html">
    <dc:TITLE>XML Links</dc:TITLE>
    <dc:CREATOR>Elliotte Rusty Harold</dc:CREATOR>
    <dc:SUBJECT>
      <rdf:Bag ID="links">
        <rdf:li resource="http://www.w3.org/XML/"/>
        <rdf:li resource="http://www.xml.com/"/>
        <rdf:li resource="http://www.xmlinfo.com/"/> 
        <rdf:li resource="http://www.microsoft.com/xml/"/>
        <rdf:li 
          resource="http://www.oasis-open.org/cover/xml.html"/>
        <rdf:li resource="http://www.xmlx.com/"/>
      </rdf:Bag>
    </dc:SUBJECT>
  </rdf:Description>
p. 650: The description of the aboutEach attribute is incorrect. It should read:

You can include an aboutEach attribute in the rdf:Description element that describes a Bag, Seq, or Alt. This indicates that the description applies to all members of the container.

p.651: In Listing 19-13, the closing quote is missing from the declaration of the rdf namespace. It should look like this:

<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dc="http://www.purl.org/DC#">
Also in this example, the aboutEach attribute on the rdf:Bag element should be an ID attribute. That is,

      <rdf:Bag ID="pages">
        <rdf:li 
          resource="http://metalab.unc.edu/xml/news1999.html"/>
        <rdf:li 
      resource="http://metalab.unc.edu/xml/mailinglists.html"/>
        <rdf:li 
          resource="http://metalab.unc.edu/xml/news1999.html"/>
        <rdf:li 
        resource="http://metalab.unc.edu/xml/tradeshows.html"/>
      </rdf:Bag>
Finally, in the third rdf:Description element the about attribute is missing a closing quote. It should be:

  <rdf:Description 
    about="http://metalab.unc.edu/xml/news1999.html">
    <dc:TITLE>XML News from 1999</dc:TITLE>
  </rdf:Description>

[ Cafe con Leche | Order from amazon.com | The XML Bible Home Page | Table of Contents | Updated Chapters | Examples | Errata from other Chapters ]

Copyright 1999, 2000 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified October 7, 2000