Describing Multiple Resources

An RDF document can also describe multiple resources. All you have to do is to use multiple <rdf:Description> elements. For example, here's an RDF document that describes three resources: mercury .html, venus.html, and earth.html:

Listing ch18_06.rdf
 <?xml version="1.0" ?> <rdf:RDF     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"     xmlns:dc="http://purl.org/DC/">  <rdf:Description about="http://www.starpowder.com/mercury.html">   <dc:Creator>Nicolas Copernicus</dc:Creator>   <dc:Title>Mercury</dc:Title>   <dc:Type>text</dc:Type>   </rdf:Description>   <rdf:Description about="http://www.starpowder.com/venus.html">   <dc:Creator>Nicolas Copernicus</dc:Creator>   <dc:Title>Venus</dc:Title>   <dc:Type>text</dc:Type>   </rdf:Description>   <rdf:Description about="http://www.starpowder.com/earth.html">   <dc:Creator>Nicolas Copernicus</dc:Creator>   <dc:Title>Earth</dc:Title>   <dc:Type>text</dc:Type>   </rdf:Description>  </rdf:RDF> 


Real World XML
Real World XML (2nd Edition)
ISBN: 0735712867
EAN: 2147483647
Year: 2005
Pages: 440
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net