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

Description


In RDF elements inside Description element and attributes of Description element with the same name as these elements are equivalent. This example is therefore equivalent in RDF terms with Example 1 and Example 2.

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:pages="240" />
     <rdf:Description about="The BFG"  lib:creator = "Roald Dahl"     lib:pages = "208"/>
     <rdf:Description about="Heart of Darkness"  lib:creator = "Joseph Conrad"      lib:pages = "110"/>
     <rdf:Description about="Lord Jim" lib:creator = "Joseph Conrad" lib:pages = "314"/>
     <rdf:Description about="The Secret Agent" lib:creator = "Joseph Conrad" lib:pages = "249"/>
</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