|
|
An Introduction to ROR (Resources of a Resource)What is ROR? For example if your website is selling products, ROR enables you to document your product names, descriptions, prices, images, availability, affiliate programs, etc. Or if your site or blog provides information on a given topic, it allows you to describe how this information is organized (sitemap, topics, categories, new information, archive, blogroll, etc). ROR also provides terms for documenting objects such as contacts, articles, newsletters, feeds, images, audio, links, reviews, privacy policy, copyrights, and more. ROR File With ROR, all objects are represented by a <Resource> tag, and can optionally have a <type> property to determine the type (or class) of the object (e.g. Product, Article, etc). The other properties are determined by the type you choose. Here is a simple example of a Product object described by ROR: <Resource> Pretty simple, isn't it? And if you want to describe other objects, ROR provides other types like Contact, Article, Feed, Event, etc. You can find the current list of object and their properties in the ROR Specification at http://www.rorweb.com/spec.htm. Now let's see how to assemble several objects together in a ROR file. In a ROR file the meaning of information is determined by both the objects and the relationship between them. Depending how an object is linked to another object, it will provide a different meaning. To link two objects together the property resourceOf is used. Here is an example: <Resource rdf:about="object-1"> <Resource> <Resource> The first object uses the rdf:about attribute to identify itself so it can be referenced elsewhere. The resourceOf property is then used to attach the second and third objects to the first. Attaching the two objects to the first one is a way to say that they contain information that relates to or further describes that object. That's pretty much it! Now that you know the essential about ROR, let's create a simple ROR file. Again we won't go into the details of RDF, but let's just say this; since ROR is built on top of RDF, it is enclosed in the <rdf:RDF> tag. Notice that the main object of the file has a type property set to Main. This is common in a ROR file, it provides an entry point into the data structure of the ROR file. <rdf:RDF <Resource rdf:about="mysite"> <Resource rdf:about="products"> <Resource> <Resource> </rdf:RDF> Extending ROR ROR Tools Happy RORing! Article Tags: Rodu T</ty Gt;&nb, Rodu T</ty, T</ty Gt;&nb, Lt;url>htt //wwwmy-w Source: Free Articles from ArticlesFactory.com
ABOUT THE AUTHORThe Add Me Team
Search Engine Submission and Optimization http://www.addme.com. You may reprint this article on your website, blog, newsletter, or magazine. |
||||||||||||||||||||||||||||||||||||||||||
Partners
|