• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • Whenever you search in PBworks, Dokkio Sidebar (from the makers of PBworks) will run the same search in your Drive, Dropbox, OneDrive, Gmail, and Slack. Now you can find what you're looking for wherever it lives. Try Dokkio Sidebar for free.

View
 

Autodiscovery

Page history last edited by Evan Prodromou 10 years, 9 months ago Saved with comment

ATOM feeds (RFC 4287) are an alternative representation of content flowing on a page — typically reverse-chronological posts of some sort — like blog posts. Autodiscovery of these feeds is made possible through a <link> tag in the head of the HTML document:

<link rel="alternate" type="application/atom+xml" href="/http://www.example.com/xml/index.atom" />

 

JSON feeds are discoverable in a similar mechanism:

 

<link rel="alternate" type="application/stream+json" href="/http://www.example.com/json/index.json" />

 

options

To aid in discovery of activity streams, options have been presented:

  1. <link rel="activitystream" type="application/atom+xml" href="/http://www.example.com/xml/index.atom" /> or <link rel="alternate activitystream" type="application/atom+xml" href="/http://www.example.com/xml/index.atom" />
  2. <link rel="alternate" type="application/atom+xml" href="/http://www.example.com/xml/index.atom" class="activitystream" />
  3. or just keep ATOM discovery as-is. Assume any ATOM feed may be an Activity Stream. why not?

 

Though it is possible to point to a stream for comments on a given blog post, let's say, there's no way to indicate that it's actually a comment feed (except in the human-friendly title): <link rel="alternate" type="application/atom+xml" href="/http://www.example.com/xml/comments.atom" title="Recent comments feed" />

 

On the contrary, if a post permalink page links to a feed with rel="alternate", per the definition of 'alternate', that feed can only represent what's on the *page* (e.g. a comment feed).

 

A link from a post permalink *page* to a feed for the whole *site* would have to be marked up with something like rel="home alternate". See proposal: http://microformats.org/wiki/rel-home#use_with_rel-alternate

 

It may not be necessary to call out the activitystream type of feed, but seems useful to make it easier to provide a hint to aggregators that a particular feed can be consumed as an activity stream.

This was also discussed on the mailing list. And also discussed recently in the #microformats IRC channel.

 

see also

Comments (1)

Rob Dolin said

at 7:08 pm on Aug 26, 2009

FWIW, it seems like #2 is most consistent so that it would be compatible with legacy web browsers and RSS crawlers.

You don't have permission to comment on this page.