ZVON > Tutorials > RDF Tutorial
>> Example 1 << | Prev | Next | Contents

Description


rdf:Description is a container for informations about a resource identified by the about attribute. In this case each resource is a book, its identification (URI) is its name. Each book has an author and the specified number of pages.

Source


<rdf:RDF
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:lib="http://www.zvon.org/library">

     <rdf:Description about="Matilda">
          <lib:creator>Roald Dahl</lib:creator>
          <lib:pages>240</lib:pages>
     </rdf:Description>

     <rdf:Description about="The BFG">
          <lib:creator>Roald Dahl</lib:creator>
          <lib:pages>208</lib:pages>
     </rdf:Description>

     <rdf:Description about="Heart of Darkness">
          <lib:creator>Joseph Conrad</lib:creator>
          <lib:pages>110</lib:pages>
     </rdf:Description>          

     <rdf:Description about="Lord Jim">
          <lib:creator>Joseph Conrad</lib:creator>
          <lib:pages>314</lib:pages>
     </rdf:Description>          

     <rdf:Description about="The Secret Agent">
          <lib:creator>Joseph Conrad</lib:creator>
          <lib:pages>249</lib:pages>
     </rdf:Description>          
</rdf:RDF>

Output Top

Author Title Pages
Roald Dahl Matilda 240
Roald Dahl The BFG 208
Joseph Conrad Heart of Darkness 110
Joseph Conrad Lord Jim 314
Joseph Conrad The Secret Agent 249