https://microformats.org/wiki/api.php?action=feedcontributions&user=AndreaMartines&feedformat=atomMicroformats Wiki - User contributions [en]2024-03-29T02:13:55ZUser contributionsMediaWiki 1.38.4https://microformats.org/wiki/index.php?title=hatom&diff=17101hatom2007-06-01T13:07:47Z<p>AndreaMartines: /* 0.1 hAtom examples */</p>
<hr />
<div><h1> hAtom 0.1 </h1><br />
<br />
hAtom is a microformat for content that can be syndicated, primarily but not exclusively weblog postings. hAtom is based on a subset of the [http://www.atomenabled.org/ Atom] syndication format. hAtom is one of several [[microformats]] open standards.<br />
<br />
__TOC__<br />
== Draft Specification ==<br />
<br />
=== Editor/Author ===<br />
* [http://blogmatrix.blogmatrix.com/ David Janes], [http://www.blogmatrix.com BlogMatrix, Inc.]<br />
<br />
=== Contributors ===<br />
* [http://members.optusnet.com.au/benjamincarlyle/benjamin/blog/ Benjamin Carlyle]<br />
* [http://tantek.com/ Tantek Çelik], [http://technorati.com Technorati, Inc.]<br />
<br />
=== Copyright ===<br />
{{MicroFormatCopyrightStatement2005}}<br />
<br />
=== Patents ===<br />
{{MicroFormatPatentStatement}}<br />
<br />
== Introduction ==<br />
<br />
hAtom is a [[microformat]] for identifying semantic information in weblog posts and practically any other place [http://www.atomenabled.org/ Atom] may be used, such as news articles. hAtom content is easily added to most blogs by simple modifications to the blog's template definitions.<br />
<br />
== Semantic XHTML Design Principles ==<br />
{{semantic-xhtml-design-principles}}<br />
<br />
== Format ==<br />
=== In General ===<br />
The [http://atomenabled.org/developers/syndication/#person Atom Syndication Format] provides the conceptual basis for this microformat, with the following caveats:<br />
<br />
* Atom provides a lot more functionality than we need for a "blog post" microformat, so we've taken the minimal number of elements needed.<br />
* the "logical" model of hAtom is that of Atom. If there is a conflict, Atom should be taken as correct.<br />
* the "physical" model of hAtom -- the actual writing of elements -- is a lot more varied than Atom provides for, due to the variety of ways weblogs are actually produced in the wild. The hAtom microformat provides a number of rules for "bridging the gap"<br />
<br />
=== Schema ===<br />
Schema elements are based on the Atom nomenclature and follow the microformat pattern of prefixing a unique identifier (in this case, '<code>h</code>') on the outermost container elements -- the Feed or Entry. The parts of this microformat are based on analysis of many weblog, bulletin board and media posts and can be read [[blog-post-brainstorming#Discovered_Elements]].<br />
<br />
The hAtom schema consists of the following:<br />
<br />
* hfeed ('''<code>hfeed</code>'''). optional.<br />
* hentry ('''<code>hentry</code>'''). <br />
** '''<code>entry-title</code>'''. required. text.<br />
** '''<code>entry-content</code>'''. optional (see field description). text.<br />
** '''<code>entry-summary</code>'''. optional. text.<br />
** '''<code>updated</code>'''. required using [[datetime-design-pattern]].<br />
** '''<code>published</code>'''. optional using [[datetime-design-pattern]].<br />
** '''<code>author</code>'''. required using '''[[hcard|hCard]]'''.<br />
** '''<code>bookmark</code>''' (permalink). optional, using '''[[rel-bookmark]]'''.<br />
** tags. optional. keywords or phrases, using '''[[rel-tag]]'''.<br />
<br />
Some required elements have defaults if missing, see below.<br />
<br />
=== Field and Element Details ===<br />
<br />
===== Feed =====<br />
* a Feed element is identified by the class name <code>hfeed</code><br />
* a Feed element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.1.1 Atom feed]<br />
* the Feed element is optional and, if missing, is assumed to be the page<br />
* hAtom documents MAY have multiple Feed elements<br />
<br />
===== Feed Category =====<br />
* a Feed Category element is identified by [[rel-tag]]<br />
* a Feed MAY have a Feed Category<br />
* a Feed Category element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.2 Atom category] inside a [http://www.atomenabled.org/developers/syndication/#optionalFeedElements feed]<br />
* Feed Category elements MUST appear inside a Feed element but not inside an Entry element<br />
* the [[rel-tag]] <code>href</code> encodes the atom <code>category:term</code>; the link text defines the atom <code>category:label</code><br />
<br />
===== Entry =====<br />
* an Entry element is identified by class name <code>hentry</code><br />
* an Entry element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.1.2 Atom entry]<br />
* any microformat content inside a <code>&lt;blockquote></code> or <code>&lt;q></code> element within the Entry should not be considered part of the Entry.<br />
: ''This allows quoting other microformated data without worry of corrupting the model''<br />
<br />
===== Entry Category =====<br />
* an Entry Category element is identified by [[rel-tag]]<br />
* an Entry MAY have an Entry Category<br />
* an Entry Category element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.2 Atom category] inside an [http://www.atomenabled.org/developers/syndication/#optionalEntryElements entry]<br />
* the [[rel-tag]] <code>href</code> encodes the atom <code>category:term</code>; the link text defines the atom <code>category:label</code><br />
<br />
===== Entry Title =====<br />
* an Entry Title element is identified by the class name <code>entry-title</code><br />
* an Entry SHOULD have an Entry Title<br />
* an Entry Title element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.14 Atom entry title]<br />
* if the Entry Title is missing, use<br />
** the first <code>&lt;h#></code> element in the Entry, or<br />
** the <code>&lt;title></code> of the page, if there is no enclosing Feed element, or<br />
** assume it is the empty string<br />
<br />
===== Entry Content =====<br />
* an Entry Content element is identified by class name <code>entry-content</code><br />
* an Entry SHOULD have Entry Content<br />
* an Entry Content element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#atomContent Atom content]<br />
* an Entry MAY have 0 or more Entry Content elements. The "logical Entry Content" of an Entry is the concatenation, in order of appearance, of all the Entry Contents within the Entry<br />
: ''Many weblogs split content into multiple sections with a "Read More" link and javascript tricks. This is also needed in cases where Entry Titles are coded inline and are considered part of the content.''<br />
* if the Entry Content is missing, assume it is the empty string<br />
<br />
===== Entry Summary =====<br />
* an Entry Summary element is identified by class name <code>entry-summary</code><br />
* an Entry Summary element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.13 Atom summary]<br />
* an Entry MAY have 0 or more Entry Summary elements. The "logical Entry Summary" of an Entry is the concatenation, in order of appearance, of all the Entry Summarys within the Entry<br />
<br />
===== Entry Permalink =====<br />
* an Entry Permalink element is identified by [[rel-bookmark]]<br />
* an Entry SHOULD have an Entry Permalink<br />
* an Entry Permalink element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.7 Atom link in an entry]<br />
* if the Entry Permalink is missing, use the URI of the page; if the Entry has an "id" attribute, add that as a fragment to the page URI to distinguish individual entries<br />
<br />
===== Entry Updated =====<br />
* an Entry Updated element is identified by class name <code>updated</code><br />
* an Entry Updated element represents the concept of [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.15 Atom updated]<br />
* an Entry SHOULD have an Entry Updated element<br />
* use the [[datetime-design-pattern]] to encode the updated datetime<br />
* if there is no Entry Updated element,<br />
** use the Entry Published element, if present<br />
** otherwise the page is invalid hAtom<br />
<br />
===== Entry Published =====<br />
* an Entry Published element is identified by the class name <code>published</code><br />
* an Entry Published element represents the concept of [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.9 Atom published]<br />
* use the [[datetime-design-pattern]] to encode the published datetime<br />
<br />
===== Entry Author =====<br />
* an Entry Author element is represented by class name <code>author</code><br />
* an Entry Author element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#rfc.section.4.2.1 Atom author]<br />
* an Entry Author element MUST be encoded in an [[hcard|hCard]]<br />
* an Entry Author element SHOULD be encoded in an <code>&lt;address></code> element<br />
* an Entry SHOULD have at least one Entry Author element<br />
* an Entry MAY have more than one Entry Author elements<br />
* if the Entry Author is missing<br />
** find the [[algorithm-nearest-in-parent|Nearest In Parent]] <code>&lt;address></code> element(s) with class name <code>author</code> and that is/are a valid [[hcard|hCard]]<br />
** otherwise the entry is invalid hAtom<br />
<br />
=== XMDP Profile ===<br />
<pre><br />
<dl class="profile"><br />
<dt>class</dt><br />
<dd><p><br />
<a rel="help" href="http://www.w3.org/TR/html401/struct/global.html#adef-class"><br />
HTML4 definition of the 'class' attribute.</a><br />
This meta data profile defines some 'class' attribute values (class names) <br />
and their meanings as suggested by a <br />
<a href="http://www.w3.org/TR/WD-htmllink-970328#profile"><br />
draft of "Hypertext Links in HTML"</a>.<br />
<dl><br />
<dt>hfeed</dt><br />
<dd><br />
The concept of atom:feed from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>hentry</dt><br />
<dd><br />
The concept of atom:entry from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>entry-title</dt><br />
<dd><br />
The concept of atom:title inside of an atom:entry from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>entry-content</dt><br />
<dd><br />
The concept of atom:content from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>entry-summary</dt><br />
<dd><br />
The concept of atom:summary from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>bookmark</dt><br />
<dd><br />
The concept of atom:link (without any "rel") with an atom:entry from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>published</dt><br />
<dd><br />
The concept of atom:published from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>updated</dt><br />
<dd><br />
The concept of atom:updated from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
<dt>author</dt><br />
<dd><br />
The concept of atom:author from <br />
<a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, <br />
constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>.<br />
</dd><br />
</dl><br />
</dd><br />
</dl><br />
</pre><br />
<br />
== Examples ==<br />
<br />
See [[hatom-examples]].<br />
<br />
== Examples in the wild ==<br />
This section is '''informative'''.<br />
<br />
The following sites have implemented hAtom , and thus are a great place to start for anyone looking for examples "in the wild" to try parsing, indexing, organizing etc. If your site marked up with hAtom, feel free to add it to the top of this list. Once the list grows too big, we'll make a separate wiki page.<br />
<br />
=== 0.1 hAtom examples===<br />
* [http://guyleech.net guyleech.net] uses hAtom for blog posts, and uses hCard for contact information. There is also an [http://guyleech.net/2007/7 article] on how to minimise hAtom, to save time and code.<br />
* [http://kpumuk.info/ Dmytro Shteflyuk] uses hAtom for all blog posts.<br />
* [http://blog.no-panic.at Florian Beer] uses hAtom to mark up all the blog posts. There is also a [http://blog.no-panic.at/2006/11/16/hatom-and-wordpress/ tutorial] on how to convert Wordpress themes to include hAtom.<br />
* [http://ficlets.com/ Ficlets] uses hAtom on the [http://ficlets.com/stories main stories page] and on [http://ficlets.com/stories/12 individual story pages].<br />
* [http://www.international.unt.edu UNT International] uses hAtom combined with hCard on news/announcement pages (e.g., [http://www.international.unt.edu/quick/news the main news page]) in addition to providing traditional Atom feeds<br />
* [http://www.absalom.net.au Absalom Media] uses hAtom combined with hCard for articles.<br />
* [http://www.joomlamug.com Joomla! Melbourne User Group] uses hAtom combined with hCard for articles.<br />
* [http://www.volume.co.uk Volume] - Main news page is marked up as hAtom 0.1 <br />
* [http://yedda.com Yedda] - Yedda support hAtom on exploration of questions where there is also support for Atom and RSS feeds. ([http://yedda.com/questions/recent/ example])<br />
* The [http://www.westmidlandbirdclub.com/ West Midland Bird Club's] frequently-updated [http://www.westmidlandbirdclub.com/new.htm What's New] page, [http://www.westmidlandbirdclub.com/ladywalk/latest.htm news from its Ladywalk Reserve] and [http://www.westmidlandbirdclub.com/worcs/grimley/latest.htm news from Grimley Pits] &mdash; comments welcome on my talk page [[User:AndyMabbett|Andy Mabbett]]<br />
* [http://pixelsebi.com pixelsebi's repository] uses hAtom 0.1 for blog posts (and hCard, hCalendar, XFN, xFolk and many more) based on manual WordPress template modifications<br />
* [http://www.geekinthepark.co.uk Geek in the Park] uses hAtom for the comments. -- by [[User:Trovster|trovster]]<br />
* [http://www.csarven.ca Sarven Capadisli] uses hAtom for the articles and comments -- by [[User:Csarven|csarven]]<br />
* [http://www.fberriman.com fberriman.com] uses hAtom 0.1 for blog posts (WordPress loop) and hCard throughout -- by [[User:Phae|Frances Berriman]] (Also - [http://www.fberriman.com/?p=86 Implementing hAtom: The Entries Code])<br />
* [http://www.capital.edu Capital University] uses hAtom 0.1 to mark up the feed of latest posts by student bloggers on its home page.<br />
* [http://blog.davidjanes.com Ranting and Roaring] (David Janes)<br />
* [http://ChunkySoup.net/ ChunkySoup.net] has redesigned using hAtom 0.1 and hCards on the entire site -- by [[User:ChrisCasciano|Chris Casciano]]<br />
* [http://sedna.spip.org/sedna/ Sedna RSS] (a feed aggregator based on SPIP, by Fil, IZO and others; GPLd sources are available at [http://zone.spip.org/trac/spip-zone/browser/_squelettes_/sedna SPIP-Zone])<br />
* [http://members.optusnet.com.au/benjamincarlyle/benjamin/blog/ Sound Advice] (Benjamin Carlyle)<br />
* [http://quotedprintable.com/pages/scribbish Scribbish] is a Typo theme which uses hAtom.<br />
* [http://rbach.priv.at/hAtom2Atom/Changelog/ hAtom2Atom.xsl's Changelog] is published as hAtom and Atom.<br />
* [http://federali.st/ federali.st]'s webbed Federalist Papers are each marked up in hAtom.<br />
* [http://www.plaintxt.org/themes/sandbox/ Sandbox] is a theme for [http://wordpress.org/ WordPress] that uses hAtom. <br />
** The theme is also available to accounts on the [http://wordpress.com/ <username>.wordpress.com] hosting service. The [http://blog.coworking.info Coworking] and [http://barcamp.wordpress.com BarCamp] blogs are examples of custom Sandbox themes.<br />
* [http://www.whump.com/dropbox/Strangelove.zip Strangelove] is a modification of the default WordPress theme (Kubrick) with hAtom support. <br />
** It points to the hAtom2Atom proxy service as the link for syndication feeds.<br />
* All [http://www.plaintxt.org/themes/ plaintxt.org themes] for [http://wordpress.org/ WordPress] now use hAtom. The themes are also coded for hCard compliance. The themes, by name, are:<br />
** [http://www.plaintxt.org/themes/barthelme/ Barthelme] (two-column, fluid), [http://www.plaintxt.org/themes/blogtxt/ blog.txt] (two- or three-column, elastic), [http://www.plaintxt.org/themes/plaintxtblog/ plaintxtBlog] (three-column, fluid), [http://www.plaintxt.org/themes/simplr/ Simplr] (one column, elastic), [http://www.plaintxt.org/themes/veryplaintxt/ veryplaintxt] (two column, fluid)<br />
* [http://archgfx.net/blog/index.php/themes/disconnected/ Disconnected], a theme for WordPress, also incorporated hAtom with version 1.2<br />
* [http://www.pats.ua.ac.be/courses PATS Courses], the PATS Research Group uses hAtom to mark up the latest course documents for some of their courses<br />
* [http://mix.excite.co.uk Excite MIX], the Ajax Start Page from Excite Europe, uses hAtom 0.1 and hCard in the Feed Viewer to mark up feed entries and authors.<br />
<br />
===Examples with some problems===<br />
<br />
Entries may be moved here if there's a problem with the way hAtom is used on the page concerned. If the page is yours, and you want to improve it, see the [[hatom-faq|hAtom FAQ]], or raise any queries on [[hatom-issues|hAtom Issues]] or [[mailing-lists#microformats-discuss|the mailing list]], where people will be happy to help you. <br />
<br />
==== Pre 0.1 hAtom examples====<br />
These pages conform to an older draft standard and need to be updated.<br />
<br />
* [http://www.myelin.co.nz/post/ Second p0st] (Phil Pearson)<br />
<br />
== Implementations ==<br />
<br />
This section is '''informative'''.<br />
<br />
The following implementations have been developed which either generate or parse hAtom links. If you have an hAtom implementation, feel free to add it to the top of this list. Once the list grows too big, we'll make a separate wiki page.<br />
<br />
* [http://dichotomize.com/uf/hatom/creator.html hAtom Creator] modified from the other creators by BenWest.<br />
* the [http://tools.blogmatrix.com/extract/ Almost Universal Microformat Parser] can extract hAtom content from webpages ([http://tools.blogmatrix.com/extract/?uri=http%3A%2F%2Fblog.davidjanes.com&microformat=hatom&submit=Submit example])<br />
* the [http://www.trinityanne.com/tools/greasemonkey/microformat-action.user.js microformat-action] [[greasemonkey|Greasemonkey]] script detects hAtom content on webpages and will call the [http://tools.blogmatrix.com/extract/ Almost Universal Microformat Parser]<br />
* [http://rbach.priv.at/hAtom2Atom/ hAtom2Atom.xsl] transforms hAtom to Atom (as the name suggests.)<br />
* There is now an [http://www.lukearno.com/projects/hatom2atom/ hatom2atom proxy] that uses hAtom2Atom.xsl.<br />
* [http://placenamehere.com/article/185/SubscribingTohAtomFeedsWithNetNewsWire Subscribe To hAtom] is a script that provides [http://ranchero.com/netnewswire/ NetNewsWire 2.x] users with the ability to subscribe to hAtom documents as they would any other feed. by [[User:ChrisCasciano|Chris Casciano]].<br />
* [http://boxtheweb.mihopa.net/code/apis/#outlineclasses Outline Classes] - has GPL'ed PHP code for reading hAtom<br />
* [http://boxtheweb.4x2.net/ BoxtheWeb] - supports subscribing to hAtom as a feed format<br />
<br />
== References ==<br />
=== Normative References ===<br />
* [http://www.w3.org/TR/2002/REC-xhtml1-20020801/ XHTML 1.0 SE]<br />
* [http://www.ietf.org/rfc/rfc4287 RFC4287: The Atom Syndication Format]<br />
* [[hcard-parsing]]<br />
<br />
=== Informative References ===<br />
* [http://www.atomenabled.org/ atomenabled.org]<br />
<br />
== Work in progress ==<br />
This specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added. There is a separate document where we are keeping our brainstorms and other explorations relating to hAtom:<br />
<br />
* [[blog-post-brainstorming|blog-post Brainstorming]]<br />
<br />
=== Version 0.1 ===<br />
<br />
Version 0.1 was released 28 February 2006.<br />
<br />
== Discussions ==<br />
<br />
* See [http://www.technorati.com/cosmos/referer.html blogs discussing this page].<br />
<br />
=== Q&A ===<br />
* If you have any questions about hAtom, check the [[hatom-faq|hAtom FAQ]], and if you don't find answers, add your questions!<br />
<br />
=== Issues ===<br />
* Please add any issues with the specification to the separate [[hatom-issues|hAtom issues]] document.<br />
<br />
==See Also==<br />
{{hatom-related-pages}}<br />
* [[rel-enclosure]] - how to semantically reference enclosures (e.g. podcasts) in hAtom<br />
* [[blog-post-brainstorming]]<br />
* [[blog-post-formats]]<br />
* [[blog-post-examples]]<br />
* [[blog-description-format]] - how to describe a blog (as opposed to the individual entries, which is what we're doing here)</div>AndreaMartines