This work is licensed under a Creative Commons License.
RSS 1.1 is a content syndication format intended to update and replace the popular RSS 1.0. It is an application of the W3C's RDF and XML languages. It has better internationalization support, utilizes more up-to-date facilities of its constituent languages than RSS 1.0, and fixes a number of other issues with the RSS 1.0 specification. RSS 1.1 is as extensible as RSS 1.0 and can even make use of its extension modules.
This is an independent draft not supported or endorsed in any way by the RSS-Dev Working Group or any other organization. This work is licensed by its authors under a Creative Commons License, by-nd v2.0 or later; the format that it defines, on the other hand, is not under any license and may therefore be freely used by anyone. Please send any comments about this work, or corrections, directly to the authors. Public discussion of the issues surrounding RSS in general can be had on the rss-dev mailing list.
RSS 1.1 is an extensible content syndication format based on RDF and XML. It allows content distributors such as news portals, webloggers, and other providers of up-to-the-minute content to publish their information in a machine readable and repurposable format. For consumers of such information, it hence alleviates the problem of having to check a large collection of sundry websites while remembering simultaneously which items have been read. Providers can thereby increase the likelihood that their content will be read by consumers more frequently.
An example of a valid RSS 1.1 document is given in section 3. Further information about the format in general can be obtained from the Rough Guide to RSS 1.1.
In its other guises, e.g. RSS 0.92, RSS 2.0, and Atom, content syndication of this kind has been enormously successful, and requires no justification of its general potential. The addition of yet another version, however, to the current proliferation of RSS variants necessitates its rationale being documented.
Many sites understand the benefits of syndication, and have provided RSS feeds to achieve a variety of goals, from increased readership to providing instant updates on content. A number of formats have emerged, each of them offering aspects that others do not. RSS 1.0, due to its RDF based nature, offers a variety of benefits. Thus far, however, uptake for RSS 1.0 has been relatively limited, due to the difficulty in creating conforming documents in comparison to other syndication formats. Duplication of data, as well as a generally confusing specification, have left much to be desired from the developer perspective, leading to a less-than-impressive number of RDF-based RSS documents in the wild.
This specification is therefore made available by users of the RSS 1.0 format who wanted to update the specification to make use of the latest features of RDF in order to reduce the redundancy in the format, and the ambiguity in the specification, while at the same time implementing a series of bugfixes from the lessons learned in developing the other descendent of RSS 1.0, Atom.
RSS 1.1 is hence to be considered a bugfix and streamline release of RSS 1.0 for users of RSS 1.0 who do not want to migrate to Atom. A full list of changes from RSS 1.0 is given in Appendix B.
This section is normative. The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
A conformant RSS 1.1 document is one which meets all of the following conformance criteria:
application/rss+xml
", or MAY be served with a media
type of "application/rdf+xml
". Other values MUST NOT be
used.The following is an example of a conformant RSS 1.1 document:
<Channel xmlns="http://purl.org/net/rss1.1#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:about="http://www.xml.com/xml/news.rss"> <title>XML.com</title> <link>http://xml.com/pub</link> <description> XML.com features a rich mix of information and services for the XML community. </description> <image rdf:parseType="Resource"> <title>XML.com</title> <url>http://xml.com/universal/images/xml_tiny.gif</url> </image> <items rdf:parseType="Collection"> <item rdf:about="http://www.xml.com/pub/a/2005/01/05/restful.html"> <title>The Restful Web: Amazon's Simple Queue Service</title> <link>http://www.xml.com/pub/a/2005/01/05/restful.html</link> <description> In Joe Gregorio's latest Restful Web column, he explains that Amazon's Simple Queue Service, a web service offering a queue for reliable storage of transient messages, isn't as RESTful as it claims. </description> </item> <item rdf:about="http://www.xml.com/pub/a/2005/01/05/tr-xml.html"> <title>Transforming XML: Extending XSLT with EXSLT</title> <link>http://www.xml.com/pub/a/2005/01/05/tr-xml.html</link> <description> In this month's Transforming XML column, Bob DuCharme reports happily that the promise of XSLT extensibility via EXSLT has become a reality. </description> </item> </items> </Channel>
This example is also available as a standalone document: example.rss.
Usage note: Any RSS 1.0 extension module may be employed in an RSS 1.1 document as long as it is done in such a way as to comply with the conformance criteria in this section.
This section is not normative. It contains a series of usage notes derived from the conformance criteria for RSS 1.1 documents, and a prose definition of RSS 1.1 annotated with fragments of a RELAX NG Compact schema, the full normative version of which can be found in section 5.
Since US-ASCII is a subset of UTF-8, users MAY use US-ASCII as the encoding for RSS 1.1 documents. An explicit charset parameter MUST be used when serving an RSS 1.1 document as anything other than US-ASCII.
As a consequence of [CC5-RDF], RSS 1.1 documents are conformant RDF/XML documents per section 5.5 of the RDF/XML Specification, and have a semantic per both section 6 of the RDF/XML Specification and the RSS 1.1 RDFS/OWL Schema in section 6.0 of this specification.
As a consequence of [CC1-RNC], RSS 1.1 documents encoded as UTF-32 MUST begin with an XML prolog containing an encoding declaration, unless the encoding is determinable by a higher-level protocol (e.g. through use of a charset parameter in a MIME Content-Type header). For the example of a UTF-8 encoded document, the value of this may be:
<?xml version="1.0"?>
The uniqueness constraint on rdf:about attribute values, [CC6-RDFABOUT], is for backwards compatibility with RSS 1.0. Conceptually, the rdf:about attribute may be thought of as having the same constraint as XML IDs, only the range of allowed values is that of the XSD anyURI datatype. See the usage notes for the item element for more information.
default namespace rss = "http://purl.org/net/rss1.1#" namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
Syntax: The RSS 1.1 namespace and RDF namespaces must be
declared on the root element of each RSS 1.1 document. The RSS 1.1 namespace
is "http://purl.org/net/rss1.1#
" and the RDF namespace is
"http://www.w3.org/1999/02/22-rdf-syntax-ns#
".
start = Channel Channel = element Channel { AttrXMLLang?, AttrXMLBase?, AttrRDFAbout, (title & link & description & image? & Any* & items) } Any = element * - ( rss:* ) { attribute * - ( rss:* ) { text }*, mixed { Any* } } AttrXMLLang = attribute xml:lang { xsd:language } AttrXMLBase = attribute xml:base { xsd:anyURI } AttrRDFAbout = attribute rdf:about { xsd:anyURI }
Syntax: The Channel
element is the root
element of an RSS 1.1 document, upon which the namespaces given in section 4.1 must be declared. The Channel
element must have an rdf:about
attribute, the value of which must
be an instance of the XSD
anyURI datatype. Optionally, it may have an xml:lang
attribute,
the value of which must be an instance of the XSD language datatype, and an
xml:base
attribute, the value of which must be an instance of the
XSD anyURI datatype. The
content of the Channel
element must be a sequence of title element, link element, description element, optional image element, zero or more elements defined in the Any section, and items element, in
any order.
Usage notes: The rdf:about
attribute provides
the URI that identifies the channel. It must not be the same as any of the
URIs used for any of the other things in an RSS 1.1 document, e.g. Items and
Images. The URI identifying a channel is often that used for either the
homepage of the content provider, or for the feed itself.
Users should note that transclusion of XML fragments nested within the
Channel
, e.g. using XSLT's document() function, will not
be resolved against the value of the xml:base
attribute.
title = element title { AttrXMLLang?, text } AttrXMLLang = attribute xml:lang { xsd:language }
Syntax: The title
element may optionally have
an xml:lang
attribute, the value of which must be an instance of
the XSD language datatype.
The title
element's content must be text.
Semantics: This provides the human readable title for Channels, Images, and Items. It is synonymous with the Dublic Core title element, and XHTML's title element.
Usage notes: An aggregator may want to map, for example, a
Channel's title
element onto xhtml:title, an Image's title element
onto xhtml:img/@alt, and an Item's title
element onto
xhtml:h2.
link = element link { xsd:anyURI }
Syntax: The link
element must have as its
content text that is an an instance of the XSD anyURI datatype.
Usage notes: When used as a child of the Channel or image elements, the value
of link
is usually, but not always, the same as Channel's
rdf:about
attribute. Note that it is the url
element that provides a source for an image, not the link
element. When used as the child of an item element, the
value of link
is usually, but not always, the same as the item's
rdf:about
attribute, if it is present.
description = element description { AttrXMLLang?, text } AttrXMLLang = attribute xml:lang { xsd:language }
Syntax: The description
element may optionally
have an xml:lang
attribute, the value of which must be an instance
of the XSD language
datatype. The description
element's content must be text.
Usage notes: Users should be aware that conformant User-Agents are required, per section 7, to not interpret the content of this element as encoded HTML; viz. "<em>this is a description</em>" is not to be converted to "<em>this is a description</em>" by the client. Users should instead make use of the RSS 1.0 Content Module for this purpose.
image = element image { AttrXMLLang?, AttrRDFResource, (title & link? & url & Any*) } Any = element * - ( rss:* ) { attribute * - ( rss:* ) { text }*, mixed { Any* } } AttrXMLLang = attribute xml:lang { xsd:language } AttrRDFResource = attribute rdf:parseType { "Resource" }
Syntax: The image
element must have an
rdf:parseType
attribute with its value set to "Resource", and may
optionally have an xml:lang
attribute the value of which must be
an instance of the XSD
language datatype. The image
element's content must be a sequence
of title element, optional link
element, url element, and zero or more elements defined in
the Any section, in any order.
url = element url { xsd:anyURI }
Syntax: The url
element must have as its
content text that is an instance of the XSD anyURI datatype.
Semantics: The value of this element is the URI of the image itself. Note that this is distinct from the link element, which is to be the URI of the Channel, and not the image.
items = element items { AttrXMLLang?, AttrRDFCollection, item* } AttrXMLLang = attribute xml:lang { xsd:language } AttrRDFCollection = attribute rdf:parseType { "Collection" }
Syntax: The items
element must have an
rdf:parseType
attribute with a value of "Collection", and may
optionally have an xml:lang
attribute the value of which must be
an instance of the XSD
language datatype. The items
element must have as its content
zero or more instances of the item element.
Semantics: The items
element is the
relationship between a Channel instance and an ordered collection of item
instances, i.e. associating a list of items with a particular channel. Though
the order of the child elements is significant, user agents may instead want to
order items based on other attributes such as last modified dates provided by
an extensions module.
item = element item { AttrXMLLang?, AttrRDFAbout?, (title & link & description? & image? & Any*) } Any = element * - ( rss:* ) { attribute * - ( rss:* ) { text }*, mixed { Any* } } AttrXMLLang = attribute xml:lang { xsd:language } AttrRDFAbout = attribute rdf:about { xsd:anyURI }
Syntax: The item
element may optionally have
an rdf:about
attribute the value of which must be an instance of
the XSD anyURI, and
optionally an xml:lang
attribute the value of which must be an
instance of the XSD
language datatype. The content of the item
element must be a
sequence of title element, link
element, optionally a description element, and zero
or more elements defined in the Any section, in any
order.
Semantics: The value of the rdf:about
attribute, if present, must uniquely identify the item. An item is a discrete
content instance, the exact nature of which is up to the provider: examples
include weblog posts, recipies, sports events, news items, and specification
updates.
Usage notes: The value of each rdf:about
attribute must be unique to the document, per [CC6-RDFABOUT]. This is to ensure that there are no
duplicate items in the resulting RDF graph, and hence that items are not
merged together. Since the rdf:about
attribute is optional on the
item element, content producers that cannot ensure the production of unique
rdf:about
values should omit the attribute altogether.
Technically, the unique value will then be generated by an RDF parser in the
form of a blank node. This constraint also ensures that channels do not appear
within themselves, and that there is no conflation of channels and items.
Any = element * - ( rss:* ) { attribute * - ( rss:* ) { text }*, mixed { Any* } }
Syntax: Any number of elements from outside the RSS namespace, with any number of attributes from outside the RSS namespace, and with mixed content of the same (recursively). Per [CC5-RDF] the root of every Any section, viz. those which are not nested inside an Any section, must be a conforming instance of the propertyElt production of section 7.2.14 of the RDF/XML Syntax Specification.
Usage notes: The Any sections constitute the syntactic placeholder for RSS 1.1's extensibility. That is to say that any extra elements may be used here as long as the conformance requirements are met, including compatible RSS 1.0 modules. Note that Any sections may only occur as siblings in their parent element, so for example core RSS 1.1 elements must not be nested in between Any sections; see the list of changes for further details.
The following is the normative schema for RSS 1.1 using the RELAX NG Compact format:
# RELAX NG Compact Schema for RSS 1.1 # Sean B. Palmer, inamidst.com # Christopher Schmidt, crschmidt.net default namespace rss = "http://purl.org/net/rss1.1#" namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#" start = Channel ## http://purl.org/net/rss1.1#Channel Channel = element Channel { AttrXMLLang?, AttrXMLBase?, AttrRDFAbout, (title & link & description & image? & Any* & items) } ## http://purl.org/net/rss1.1#title title = element title { AttrXMLLang?, text } ## http://purl.org/net/rss1.1#link link = element link { xsd:anyURI } ## http://purl.org/net/rss1.1#description description = element description { AttrXMLLang?, text } ## http://purl.org/net/rss1.1#image image = element image { AttrXMLLang?, AttrRDFResource, (title & link? & url & Any*) } ## http://purl.org/net/rss1.1#url url = element url { xsd:anyURI } ## http://purl.org/net/rss1.1#items items = element items { AttrXMLLang?, AttrRDFCollection, item* } ## http://purl.org/net/rss1.1#item item = element item { AttrXMLLang?, AttrRDFAbout?, (title & link & description? & image? & Any*) } ## http://purl.org/net/rss1.1#Any Any = element * - ( rss:* ) { attribute * - ( rss:* ) { text }*, mixed { Any* } } AttrXMLLang = attribute xml:lang { xsd:language } AttrXMLBase = attribute xml:base { xsd:anyURI } AttrRDFAbout = attribute rdf:about { xsd:anyURI } AttrRDFResource = attribute rdf:parseType { "Resource" } AttrRDFCollection = attribute rdf:parseType { "Collection" }
This schema is also available as standalone documents in the following formats:
The following is the normative RDF Schema for RSS 1.1 in the Turtle serialization of RDF, including OWL information that makes the following an OWL Full ontology:
@prefix : <http://purl.org/net/rss1.1#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . <> rdf:type owl:Ontology . :Channel rdf:type owl:Class; rdfs:label "Channel"; rdfs:subClassOf [ rdf:type owl:Restriction; owl:cardinality "1"; owl:onProperty :title; owl:allValuesFrom rdfs:Literal ], [ rdf:type owl:Restriction; owl:cardinality "1"; owl:onProperty :link; owl:allValuesFrom :URI ], [ rdf:type owl:Restriction; owl:cardinality "1"; owl:onProperty :description; owl:allValuesFrom rdfs:Literal ], [ rdf:type owl:Restriction; owl:onProperty :image; owl:allValuesFrom :Image ], [ rdf:type owl:Restriction; owl:onProperty :items; owl:allValuesFrom :Items ] . :title rdf:type rdf:Property; rdfs:label "title" . :link rdf:type rdf:Property; rdfs:label "link" . :description rdf:type rdf:Property; rdfs:label "description" . :Image rdf:type owl:Class; rdfs:label "Image"; rdfs:comment "Never syntactically appears as an element."; rdfs:subClassOf [ rdf:type owl:Restriction; owl:cardinality "1"; owl:onProperty :title; owl:allValuesFrom rdfs:Literal ], [ rdf:type owl:Restriction; owl:cardinality "1"; owl:onProperty :link; owl:allValuesFrom :URI ], [ rdf:type owl:Restriction; owl:cardinality "1"; owl:onProperty :url; owl:allValuesFrom :URI ] . :url rdf:type rdf:Property; rdfs:label "url" . :items rdf:type rdf:Property; rdfs:label "items" . :Items rdf:type owl:Class; rdfs:label "Items"; rdfs:comment "Never syntactically appears as an element."; rdfs:subClassOf rdf:List, [ rdf:type owl:Restriction; owl:onProperty rdfs:member; owl:allValuesFrom :item ] . :item rdf:type owl:Class; rdfs:label "item" . :URI rdf:type rdfs:Class; rdfs:label "URI"; rdfs:subClassOf rdfs:Literal .
This schema is also available as standalone documents in the following formats:
This section is normative. A conformant User-Agent is one that adheres to all of the requirements in this section.
Usage notes: User agents MUST NOT interpret the content
of the description
element as encoded HTML; viz.
"<em>this is a description</em>" is not to be
converted to "<em>this is a description</em>" by the client.
The RSS 1.0 Content
Module SHOULD be supported as providing this functionality instead.
User-Agents SHOULD continue to process feeds that don't meet conformance requirement [CC3-MIME] (i.e. those that are served with an invalid MIME type), and MAY reject them. In both cases, a warning SHOULD be presented to the user.
@@ More.
Upon official release, the only changes made to this document shall be to correct mistakes and resolve ambiguities in the specification; no structural or semantic change, even to the smallest degree, shall be made. All corrections made to the document shall be recorded in this appendix, with a link to a diff of the change.
@@ Introduction.
Note: Acknowledgement of contribution does not imply endorsement of this work.
Thanks to Cody Woodard for early review comments, architectural suggestions, and the logo; to Joe Geldart for comments on the OWL species of the RSS 1.1 ontology; and to Ken MacLeod for a range of helpful review comments.
RSS would not have been possible without the early efforts of Netscape Communications Corporation, and UserLand Software, Inc. The RSS 1.1 specification is a furthering of that carried out by the RSS-Dev Working Group; the authors of the RSS 1.0 specification. They are as follows:
This work is licensed under a Creative Commons License.