Continued from page 1
<Resource rdf:about="mysite"> <type>Main</type> <title>My Website</title> <url>http://www.my-web-site.com</url> <desc>My great site with a ROR file to describe it</desc> </Resource>
<Resource> <type>Contact</type> <name>John Doe</name> <phone>555 1212</phone> <fax>555 1213</fax> <mobile>555 1214</mobile> <resourceOf rdf:resource="mysite" /> </Resource>
<Resource rdf:about="products"> <type>Product</type> <title>My Products</title> <url>http://www.my-web-site.com/myproducts.htm</url> <currency>USD</currency> <resourceOf rdf:resource="mysite" /> </Resource>
<Resource> <type>Product</type> <title>Product 1</title> <url>http://www.my-web-site.com/product1.htm</url> <image>http://www.my-web-site.com/product1.gif</image> <price>19.95</price> <resourceOf rdf:resource="products" /> </Resource>
<Resource> <type>Product</type> <title>Product 2</title> <url>http://www.my-web-site.com/product2.htm</url> <image>http://www.my-web-site.com/product2.gif</image> <price>29.95</price> <resourceOf rdf:resource="products" /> </Resource>
<Resource rdf:about="myfeeds"> <type>Feed</type> <title>My Feeds</title> <resourceOf rdf:resource="mysite" /> </Resource>
<Resource> <type>Feed</type> <title>Daily News</title> <url>http://www.my-web-site.com/dailynews</url> <updatePeriod>day</updatePeriod> <resourceOf rdf:resource="myfeeds" /> </Resource>
<Resource> <type>Feed</type> <title>Weekly News</title> <url>http://www.my-web-site.com/weeklynews</url> <updatePeriod>week</updatePeriod> <resourceOf rdf:resource="myfeeds" /> </Resource>
</rdf:RDF>
*** Extending ROR To make it easier to use, ROR provides a set of pre-defined objects. These are objects that are commonly used on websites (Contact
, Address
, Webpage
, Product
, Feed
, etc). But ROR is designed with simplicity and flexibility in mind, it can be easily combined with other vocabularies. As a simple example, let's say you want to describe a list of people. To do this you can combine ROR with
Friends of a Friend (FOAF at http://www.foaf-project.org) vocabulary. Here is what you would get: http://www.rorweb.com/examples/members.xml . And of course you can also add terms from
Dublin Core vocabulary (http://www.dublincore.org).
*** ROR Tools The ROR website (http://www.rorweb.com) offers several tools to help you create a ROR file. The ROR File Editor makes it easy to create and update a simple ROR file without any coding. The File Reader allows you to create a ROR file from a tab-delimited text file with your products, articles, links, or contacts information. This tools can also read a Froogle product feed or a Yahoo Shopping feed. Finally,
ROR Explorer allows you to drill down into
information of a ROR file.
Happy RORing!
