Describing Multiple Properties

The example RDF document we've seen so far has defined only one property for the http://www.starpowder.com/planets.html resource the <Creator> property. In fact, you can assign multiple properties to resources. Now that we've seen all the available Dublin Core elements, I'll put more of them to work. For example, here's how I describe that resource's creator, title, and type:

Listing ch18_05.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/planets.html">  <dc:Creator>Nicolas Copernicus</dc:Creator>   <dc:Title>Mercury</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