Selecting Container Items by Prefix

In fact, you can make statements about groups of resources that have the same prefixes (which may or may not be members of one container). For example, say I want to connect a date with all resources that start with "http://www.starpowder.com/" . I can do that with the aboutEachPrefix attribute of <rdf:Description> like this:

Listing ch18_16.rdf
 <?xml version="1.0" ?> <rdf:RDF     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"     xmlns:dc="http://www.purl.org/DC#">     <rdf:Description about="http://www.starpowder.com/planets.html">         <dc:Title>Mercury</dc:Title>         <dc:Creator>Nicolas Copernicus</dc:Creator>         <dc:Subject>             <rdf:Bag>                 <rdf:li                     resource="http://www.starpowder.com/mercury.html"/>                 <rdf:li             resource="http://www.starpowder.com/venus.html"/>                 <rdf:li                     resource="http://www.starpowder.com/earth.html"/>                 <rdf:li                 resource="http://www.starpowder.com/mars.html"/>             </rdf:Bag>         </dc:Subject>     </rdf:Description>  <rdf:Description aboutEachPrefix="#http://www.starpowder.com/">   <dc:Date>   1501-10-15   </dc:Date>   </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