活到老学到老,ATOM和RSS的区别

Fenng对他的MT RSS做了一些修改,使得输出的时候除了显示全文,还可以显示评论。这个方法似乎在我订阅的Blogger中间很少有人采用,所以觉得很新鲜。不过这个做法有一个不完美的地方是如果我阅读完一篇文章之后,在我的Google Reader上是不再显示了的。那么有新的评论似乎我也看不到了?

在看评论的时候看到POPOEVER说:

@Nasone: 在RSS里做全文输出?那还要ATOM干嘛?每种协议或规范完成自己的任务就可以了。

我所期待的是能解决相对路径的问题。

这个说法很新鲜,我原先光知道ATOM和RSS都是FEED的输出形式,似乎Google采用的是ATOM形式,其他的采用RSS的多些。至于他们两者具体的区别我就不清楚了。他们真的是区别在ATOM输出全文,RSS输出摘要么。

我上网查了一下,找到了这篇文章:Rss20AndAtom10Compared中文版的在这里。这篇文章比较的非常全面,通过对实施状况和性质等18个方面对RSS和ATOM进行了比较。

在完整的与部分的内容的比较上,文章是这么说的:

RSS 2.0 has a <description> element which is commonly used to contain either the full text of an entry or just a synopsis (sometimes in the same feed), and which sometimes is absent. There is no built-in way to signal whether the contents are complete.

Atom has separate <summary> and <content> elements. The summary is encouraged for accessibility reasons if the content is non-textual (e.g. audio) or non-local (i.e. identified by pointer).

RSS 2.0的元素常被用来存放entry的全部文字内容或大纲(有时是在同一个feed中),有时没有该元素出现。没有内建的方法鉴别其内容是否完整。

Atom有独立的和元素。为了可用性的原因,鼓励在内容为非文本(比如:音频)或非本地(比如:以pointer标示)的情况下使用summary。

按照这段解释来看RSS2.0协议是可以输出全文的,因为它被用来存放entry的全部文字内容或大纲, 但是它没有一种内建的方法来判定是否输出了完整的全文内容。而ATOM则不同,因为有<summary>和<content>两个不同的元素,摘要在<summary>中输出,正文内容就在<content>中输出。

所以就这么看来RSS和ATOM的区别不在于是否能输出全文,而在于能否受控制地输出全文或摘要…

而且,再进一步说:

The RSS 2.0 specification is copyrighted by Harvard University and is frozen. No significant changes can be made (although the specification is under a Creative Commons licence) and it is intended that future work be done under a different name; Atom is one example of such work.

Atom 1.0 is specified inRFC 4287 (HTML Version); it represents the consensus of the Atompub Working Group within the IETF, as reviewed and approved by the IETF community and the Internet Engineering Steering Group. The specification is structured in such a way that the IETF could conceivably issue further versions or revisions of this specification without breaking existing deployments, although there is no commitment, nor currently expressed interest, in doing so.

RSS 2.0规范已经冻结,Harvard University拥有其版权。不能做大的修改(虽然该规范处于Creative Commons 协议) 且计划未来的工作在一个不同的名称下进行;Atom是这类工作的一个例子。

Atom 1.0的规范 RFC 4287 ( HTML Version ); 体现了 IETF 内的 Atompub Working Group 大多数人的意见,并由IETF和 Internet Engineering Steering Group 讨论并通过。该规范在架构设计上使得IETF能有预期的发布新的版本或修正版本而不会破坏当前的实施。虽然这样做并没有约定,当前也没有明确的需要。

所以ATOM和RSS2.0其实在本质上是一个东西? ATOM是对RSS2.0的进一步改进,他们或许不是那么完全截然不同的两个规范。

好了,翻字典的事情就不做了,如果需要了解进一步信息的。可以去看我给出的两个链接或许更多知识。

Technorati Tags: , , , ,

2 条评论

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据