TOC |
|
This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress.”
The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.
The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.
This Internet-Draft will expire on November 21, 2009.
Copyright (c) 2009 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date of publication of this document (http://trustee.ietf.org/license-info). Please review these documents carefully, as they describe your rights and restrictions with respect to this document.
This document recommends best practices for discovering AtomPub Collection resources as applicable to various content representation formats.
To provide feedback on this Internet-Draft, join the atom-protocol mailing list (http://www.imc.org/atom-protocol/).
1.
Introduction
1.1.
Notational Conventions
1.2.
Namespace
2.
Discovering Collections from a Feed Document
3.
Discovering Service from an HTML Document
4.
Security Considerations
5.
IANA Considerations
6.
Normative References
Appendix A.
Revision History
§
Authors' Addresses
TOC |
Atom Publishing Protocol [RFC5023] (Gregorio, J. and B. de hOra, “The Atom Publishing Protocol,” October 2007.) is used for several applications that consume and produce an unbounded number of Collection resources. This document introduces guidelines over existing syntactic techniques for identifying Collection resources in use from various Internet content representation formats, including feeds and HTML type resources.
Previously, AtomPub [RFC5023] (Gregorio, J. and B. de hOra, “The Atom Publishing Protocol,” October 2007.) has introduced two mechanisms for collection discovery. However, in the absence of suitable guidelines, there is no clarity about which mechanism is suited for a particular purpose. In general, where other Atom or AtomPub syntax is in use, this document recommends the use of the app:collection element. Where only a link element may be used, this document recommends the use of the service link relation.
TOC |
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.).
TOC |
This specification uses the prefix "atom:" for "http://www.w3.org/2005/Atom", the namespace name of the Atom Syndication Format [RFC4287] (Nottingham, M., Ed. and R. Sayre, Ed., “The Atom Syndication Format,” December 2005.). The prefix "app:" is used for "http://www.w3.org/2007/app", the namespace name of the Atom Publishing Protocol [RFC5023] (Gregorio, J. and B. de hOra, “The Atom Publishing Protocol,” October 2007.). These namespace prefixes are not semantically significant.
TOC |
When an Atom Processor encounters an Atom Feed Document, and the processor is capable of performing AtomPub operations, then it is valuable to determine whether that feed is modifiable. Some processors incorrectly assume that a feed may be modified at the exact same URI from which it is obtained.
AtomPub Processors need a way to determine whether and where new entries can be added to a Feed. If a syndicated feed document is modifiable using AtomPub, then the processor can indeed manipulate the feed. For this purpose, processors can benefit from Collection metadata that is present in the feed document.
The alternative is obtaining the feed's service document by following a link with the relation "service", followed by identifying the Collection resources in the AtomPub Service Document, followed by correlating these Collection resources to the feed at hand. Naturally, this alternative is more complex, resource consuming, and less likely to succeed in finding the exact Collection resource to be manipulated.
Moreover, not every feed can be modified, and servers can indicate this by omitting Collection metadata in such feeds.
Section 8.3.5 of [RFC5023] (Gregorio, J. and B. de hOra, “The Atom Publishing Protocol,” October 2007.) specifies the Collection metadata that may occur in syndicated Atom feeds. The presence of an app:collection element as a child of an atom:feed element signals server's preparedness to modify a feed. This document therefore recommnds that if a Feed is backed by a Collection, then the server SHOULD identify the backing Collection using the app:collection element as a child of the atom:feed element.
If the href attribute of this app:collection element is identical to that of the parent atom:feed element's self link relation, then the processor SHOULD treat the feed to be the Collection feed as defined in Section 4.2 of [RFC5023] (Gregorio, J. and B. de hOra, “The Atom Publishing Protocol,” October 2007.).
Example: Writable Collection backing a Feed
<atom:feed> <atom:link rel="self" href="http://example.org/feed"/> <app:collection href="http://example.org/collection"> <atom:title type="text">Writable Feed</atom:title> <app:accept>application/atom+xml;type=entry</app:accept> </app:collection> ... </atom:feed>
Example: Read-only Collection backing a Feed
<atom:feed> <atom:link rel="self" href="http://example.org/feed"/> <app:collection href="http://example.org/collection"> <atom:title type="text">Read-only Feed</atom:title> <app:accept/> </app:collection> ... </atom:feed>
Example: Writable Collection Feed
<atom:feed> <atom:link rel="self" href="http://example.org/collection"/> <app:collection href="http://example.org/collection"> <atom:title type="text">Collection Feed</atom:title> </app:collection> ... </atom:feed>
TOC |
When an Atom processor encounters an HTML or XHTML document, and the processor is capable of performing AtomPub operations, then it is useful to determine the available AtomPub resources with which it can interact.
The host format, though, limits the ability to specify metadata embedded in the content being processed. Therefore, the best approach for a server is to specify a link with relation "service" to provide a URI to the AtomPub Service Document that includes all the metadata corresponding to one or more Collections. The server can also specify a link with relation "feed" to provide a URI to an Atom feed with relevant content, which can in turn provide additional metadata for manipulating AtomPub resources present on that server as explained in the previous section.
TOC |
None
TOC |
None
TOC |
[RFC2119] | Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” BCP 14, RFC 2119, March 1997 (TXT, HTML, XML). |
[RFC3986] | Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” STD 66, RFC 3986, January 2005 (TXT, HTML, XML). |
[RFC4287] | Nottingham, M., Ed. and R. Sayre, Ed., “The Atom Syndication Format,” RFC 4287, December 2005 (TXT, HTML, XML). |
[RFC5023] | Gregorio, J. and B. de hOra, “The Atom Publishing Protocol,” RFC 5023, October 2007 (TXT). |
TOC |
00 - Initial Revision, created from draft-divilly-atompub-hierarchy-00.
TOC |
Colm Divilly | |
Oracle Corp. | |
Email: | colm.divilly@oracle.com |
URI: | http://cdivilly.wordpress.com |
Nikunj Mehta | |
Oracle Corp. | |
Email: | nikunj.mehta@oracle.com |
URI: | http://o-micron.blogspot.com/ |