XML technologies / RSS & Atom / RSS 2.0 / RSS 2.0 elements for rich metadata / Identifying and describing content

(Excerpt from "Newsfeeds with RSS and Atom" by Heinz Wittenbrink, published by Galileo Press, 2005)

The guid element

The element guid has a meaning related to link. Its primary purpose is to identify an item uniquely, and secondarily to create a link to this item. guid allows permanent identification of an entry. The content of guid may, but need not, differ from the content of link. link, unlike guid, may contain a temporary reference, such as a weblog homepage URI with a fragment identifier.

guid should contain a "globally unique identifier". The feed producer must ensure that it is actually unique. The best-known examples are permalinks, now provided by most weblog content management systems. A permalink is the URI where a weblog entry is permanently archived.

The RSS specification explicitly states that the content of guid need not be a URL, but processing software should assume that it is. To prevent this interpretation, the attribute isPermaLink with the value false must explicitly indicate a different construct.

The definition of the element guid was strongly criticized by Atom supporters for its imprecision. It does not specify how to form the content, nor provide a mandatory mechanism for ensuring or checking identifier uniqueness. More seriously, the data type is unspecified: it may be a URI or a string. Their identity conditions differ, since a URI parser may interpret two different strings as the same URI.

guid is optional and omitted by many RSS feeds. It does not occur in older versions. For guid see also the page The guid element in the RSS 2.0 reference.

The rating element

The introduction of rating primarily aimed to indicate whether a feed’s content is suitable for minors. It allows channel content to be rated according to the Platform for Internet Content Selection (PICS). For rating see also the page The rating element in the RSS 2.0 reference.

Categorization with category

The element category assigns an entry to a category whose name forms the content. This has limited meaning unless the category belongs to an established system of categories and names, a taxonomy. An RSS document can reference such a system through the optional attribute domain of the element category. The value of domain is a string uniquely identifying the selected category system; it may be a URI.

The content of category is a slash-separated list indicating the hierarchical position in the chosen taxonomy. An element of type item can contain any number of child elements of type category. An item can thus belong to several categories within one or different taxonomies. For category see also the page The category element in the RSS 2.0 reference.

Source attribution with source

The element source identifies the source of an item taken from another RSS feed. It contains the name of the original channel from which the item was taken.

This element is best understood through the common weblog practice of quoting other blogs, the classic case of content syndication. In this case, an item uses source to indicate its origin. The text content of source should match the content of the title of the quoted channel, not the title of one of its item elements.

When using source the attribute url is required. In one of the RSS 2.0 specification’s most puzzling formulations, its value is the source’s "XML-ization", presumably its RSS feed. The specification’s example (<source url="http://static.userland.com/tomalak/links2.xml">Tomalak's Realm</source>) shows that the URI refers to the entire channel, not a permalink to the individual item.

source originated in RSS 0.92 for software combining weblog authoring and aggregation, allowing users to read entries and post their own based on them. The content of source then generates source attribution. Only later was the element guid introduced. It was then proposed to use the content of guid as the value of source when it is a permalink. However, source is clearly defined to contain the source title, with the value of the attribute link being the URI of the whole feed, not a single entry. For source see also the page The source element in the RSS 2.0 reference.)

   

 

 

 

Creative Commons license
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

back to top