XML technologies / RSS & Atom / RSS 1.0 and RSS 1.1 / RSS 1.0 modules

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

Dublin Core

The Dublin Core module belongs to the RSS 1.0 standard, although explicitly defined as a module with its own namespace. This avoids redefining things in RSS that already have an RDF version and an RDF/XML vocabulary.

Integrating Dublin Core also allows future extensions to remain usable. The module specification refers to the Dublin Core standard itself for its element definitions.

"Dublin Core" is a metadata set developed by a working group of internet librarians. It first met in 1995 in Dublin—not Ireland, but Dublin, Ohio—hence "Dublin Core Metadata Initiative". Development continues actively, with extensions for different applications. The RSS 1.0 module refers to version 1.1 of the Dublin Core Metadata Set of 1999.

Dublin Core Metadata Set is not an RDF application; RDF is only one way to express it. Its metadata can, for example, appear without RDF in an HTML document’s header meta elements. An RDF-independent XML vocabulary also exists. RDF’s advantage is again its clear semantics, allowing easy combination with other RDF data.

The Dublin Core namespace URI is "http://purl.org/dc/elements/1.1/". The usual prefix for this namespace is dc. As with all namespace prefixes, this is only a convention; only the URI identifies the namespace.

Dublin Core consists of 15 elements: title, creator, subject, description, publisher, contributor, date, type, format, identifier, source, language, relation, coverage and rights. I will use their usual prefix below, referring for example to dc:creator and dc:subject . All these elements may be descendants of channnel, item, image and textinput. In RDF, Dublin Core elements are verbs or properties. Their subject is identified by a URI: for RSS, the channel or feed URI, or that of the described item, image or input field. The property value is either a literal (string) or a separate node.

Dublin Core elements contain metadata in the strict sense. They have neither structural functions like RSS 1.0 elements nor specific publishing-process functions.

The module defines no attributes for these elements. Today, the value of the attribute scheme often specifies the rules governing the content, such as a particular controlled vocabulary.

The module specification defines all element content as (#PCDATA), prohibiting further XML elements inside Dublin Core elements. The data-model description explicitly anticipates richer semantics eventually replacing the 2,000 literals currently used most often.

Their example combines the RSS taxonomy module with simple literals inside the element rdf:value; software can then choose which data to use. Software without taxonomy support can use the strings in the element rdf:value. The specification gives this example:

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns="http://purl.org/rss/1.0/">
   ...
   <item rdf:about="http://c.moreover.com/click/here.pl?r123">
      <title>XML: A Disruptive Technology</title>
      <link>http://c.moreover.com/click/here.pl?r123</link>
      <dc:subject>
         <rdf:Description>
            <taxo:topic rdf:resource="http://dmoz.org/Computers/Data_Formats/Markup_Languages/XML/"/>
            <rdf:value>XML</rdf:value>
         </rdf:Description>
      </dc:subject>
      <dc:subject>
         <rdf:Description>
            <taxo:topic rdf:resource="http://www.oreillynet.com/meerkat/?c=cat23"/>
            <rdf:value>Data: XML</rdf:value>
         </rdf:Description>
      </dc:subject>
   </item>
... 

Dublin Core semantics are independent of the objects described: channels, items, images or input fields. Metadata referring to the element channel describes the channel or feed itself, while individual-item metadata describes its information objects. A useful summary is Using Dublin Core in RSS feeds by Horst Prillinger, focusing on weblog use.

The dc:title element

The element title contains the described subject’s title. It is redundant within the module because RSS 1.0, like other RSS formats, has an element named title serving exactly the same purpose. The RSS 2.0 element title has the same meaning.

The dc:creator element

creator refers, in the specification, to the "entity primarily responsible for making the content of the resource": its creator, such as an entry’s author or a feed’s responsible editor. For a quoted entry or link, name the original author.

Unlike the element author in RSS 2.0, this should name the creator, not merely give an email address.

The dc:subject element

The content of dc:subject consists of the subjects covered or represented, or topics. dc:subject is used, for example, in category-based weblog systems to name a category. Dublin Core recommends a controlled vocabulary or formal classification scheme, such as Library of Congress Online Catalogue, the German Library’s subject authority file or Dewey Decimal Classification System.

The dc:description element

The Dublin Core element description, like the familiar element description from other RSS formats, contains an object’s description. RSS 1.0 descriptions often use HTML content too, with escaped markup.

The dc:publisher element

"Publisher" means the entity responsible for making a resource available. The element dc:publisher can name a publisher or website operator.

The dc:contributor element

dc:contributor names other contributors: people or entities supporting the primary creators, rather than those creators themselves.

The dc:date element

dc:date contains the publication date, referring to the resource’s creation or availability according to Dublin Core. In RSS 2.0 it therefore corresponds to both pubDate and lastBuildDate. Use ISO 8601 dates as described in the W3C recommendations on date and time formats.

The dc:type element

In dc:type, you can describe the kind of object, such as a book, article or weblog entry. Dublin Core developed a vocabulary for this (DCMI Type Vocabulary). Horst Prillinger suggests "Text" for articles, "Sound" for audio blogs, "StillImage" for photo blogs and "MovingImage" for video blogs.

The dc:format element

The content of dc:format is a technical format description. For online documents, specify the MIME type. For an image, for example, this can specify JPEG, GIF or PNG.

The dc:identifier element

dc:identifier refers to an identifier of any kind, unique within its context. It corresponds to guid in RSS 2.0. In RSS 1.0, the identifier for item and channel already uses the URI.

The dc:source element

dc:source permits explicit source references, corresponding to the element source in RSS 2.0. There the source is named, whereas here a reference—an online document’s link—should be supplied.

The dc:language element

This specifies the entry or channel language according to RFC 3066, itself based on ISO 639.2 (Codes for the Representation of Names of Languages).

The dc:relation element

dc:relation specifies relationships to other objects. Prillinger suggests using it for trackback URLs, often previously placed in trackback:about.

The dc:coverage element

The content of dc:coverage consists of time-period or geographical-area information. Use a controlled vocabulary here too, such as the Getty Thesaurus of Geographic Names.

The dc:rights element

dc:rights contains rights-holder information, often copyright notices.

Syndication Module

The syndication module is RSS 1.0’s second standard module. It tells aggregators and similar programs how often a feed is updated, corresponding to skipHours and skipDays in RSS 2.0. It is based on Ian Davis’s Open Content Syndication Format OCS. Its namespace is identified by the URI "http://purl.org/rss/1.0/modules/syndication/", and its default prefix is sy. Its three elements are descendants of channel:

The sy:updatePeriod element

This element specifies the feed’s update period. Possible values are hourly, daily, weekly, monthly and yearly.

The sy:updateFrequency element

This element additionally specifies the number of updates per period, for example twice daily. Its value is a positive integer. If absent, one update per period is assumed.

The sy:updateBase element

This element uses W3C-recommended date formats (W3C - Date and Time Formats) to specify the base date for the other two elements.

Content Module

The content module can hold a website’s actual content, avoiding markup inside the elements rss:description. It also supports other content formats and thus serves purposes similar to the element enclosure in RSS 2.0. Its namespace URI is "http://purl.org/rss/1.0/modules/content/", and its default prefix is content.

The content:items element

This element is a child of either item or channel. It holds an unordered sequence of content:item elements containing the actual content. This again requires an RDF container, here of type rdf:Bag. rdf:Bag differs from the previously introduced element rdf:Seq only in leaving unspecified the order of the rdf:li elements it contains. Inside every element of type rdf:li is an element of type content:item.

The content:item element

This element holds the actual content. It is a descendant of an element rdf:li, itself a descendant of the element rdf:Bag following content:items. If the content is identifiable on the web, the element carries an attribute rdf:about with the corresponding URI. The element content:item must contain an element content:format. It must also contain an element of type rdf:value if the content cannot be retrieved through the URI in rdf:about. Finally, it may contain an element of type content:encoding.

The content:format element

The element content:format contains the required format information for content:item. It has an attribute rdf:resource whose value is the format’s URI. The recommendation is to use the list of URIs available on the website of the Resource Directory Description Language. RDDL is a language for describing information about web vocabularies. RDDL documents may be located at namespace URIs and point to documentation about the format.

The rdf:value element

rdf:value contains the content of the content:item unless it is simply referenced by URI. For unencoded XML content, use the attribute rdf:parseType="literal".

The content:encoding element

This element specifies the content’s encoding, meaning the method of enclosing it in the element; the specification gives well-formed XML as an example. The value of the attribute rdf:resource is again a URI. For well-formed XML, it is "http://www.w3.org/TR/REC-xml#dt-wellformed", the XML specification’s URI with an additional fragment identifier. If the element content:encoding is absent, assume Character Data (#PCDATA) content.

The content:encoded element

This element is only a proposal so far. It is intended to contain a version encoded using entity references or enclosed in a CDATA section of the content of an item element. This would greatly simplify matters compared with the other elements.

Proposed modules

Detailed information on the many proposed modules is provided by the RSS 1.0 module reference. Particularly important are mod_aggregation, supporting feed aggregation, and mod_dcterms, allowing qualified Dublin Core metadata to describe items.

   

 

 

 

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

back to top