Examples from Chapter 21 of The XML Bible, 2nd Edition: The Resource Description Framework
Listing 21-1: The statement translated into RDF
Listing 21-2: Elements from the Dublin Core vocabulary are in the http://purl.org/dc/elements/1.1/ namespace
Listing 21-3: A statement with multiple properties in RDF serialization form
Listing 21-4: Two separate statements encoded in RDF
Listing 21-5: A statement encoded in RDF with nested Description elements
Listing 21-6: Descriptions by reference using the resource attribute
Listing 21-7: A statement with the same property attached to multiple resources
Listing 21-8: A literal property value that uses XML markup
Listing 21-9: A bag with four members
Listing 21-10: A simple site map for Cafe con Leche in a Bag
Listing 21-11: Mirror sites of Cafe au Lait in an Alt
Listing 21-12: A description of a container encoded in RDF
Listing 21-13: A description of each element in a Bag container
Copyright 1999, 2001
Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified at February 9, 2001