(added PATS Courses reference)
(s/<source>/<syntaxhighlight>/)
(84 intermediate revisions by 37 users not shown)
Line 1:
Line 1:
(削除) <h1> (削除ここまで)hAtom 0.1 (削除) </h1> (削除ここまで)
(追記) {{DISPLAYTITLE: (追記ここまで)hAtom 0.1(追記) }} (追記ここまで)
(追記) {{latest|h-entry}} (追記ここまで)
(削除) 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. (削除ここまで)
(追記) {{Template (追記ここまで):(追記) DraftSpecification}} (追記ここまで)
(追記) 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 will be one of several [[microformats]] open standards. (追記ここまで)
== Draft Specification ==
== Draft Specification ==
==(削除) = (削除ここまで)Editor/Author =(削除) == (削除ここまで)
(追記) <div class (追記ここまで)=(追記) "vcard"> (追記ここまで)
(削除) * (削除ここまで)[http://blogmatrix.blogmatrix.com/ David Janes](削除) , (削除ここまで)[http://www.blogmatrix.com BlogMatrix, Inc.]
(追記) ;<span class (追記ここまで)=(追記) "role"> (追記ここまで)Editor/Author(追記) </span> (追記ここまで)
(追記) :<span class (追記ここまで)=(追記) "fn"> (追記ここまで)[http://blogmatrix.blogmatrix.com/ David Janes](追記) </span> <span class="org">( (追記ここまで)[http://www.blogmatrix.com BlogMatrix, Inc.](追記) )</span> (追記ここまで)
(追記) ;Contributors (追記ここまで)
(追記) :<span class="vcard"><span class="fn">[http://members.optusnet.com.au/benjamincarlyle/benjamin/blog/ Benjamin Carlyle]</span></span> (追記ここまで)
(追記) :<span class="vcard"><span class="fn">[[User:Tantek|Tantek Çelik]]</span> (<span class="url">http://tantek.com/</span> and before at [http://technorati.com Technorati, Inc.])</span> (追記ここまで)
(追記) [[hatom#Copyright|copyright]] and [[hatom#Patents|patents]] statements apply. (追記ここまで)
(追記) == Status == (追記ここまで)
(追記) hAtom 0.1 is a microformats.org draft specification. Public discussion on hAtom takes place on [[hatom-feedback]], the #microformats [[irc]] channel on irc.freenode.net, and [http://microformats.org/discuss/mail/microformats-discuss/ microformats-discuss mailing list]. (追記ここまで)
=== (削除) Contributors (削除ここまで)===
=== (追記) Available languages (追記ここまで)===
(削除) * (削除ここまで)[(削除) http://members.optusnet.com.au/benjamincarlyle/benjamin/blog/ Benjamin Carlyle (削除ここまで)]
(追記) The English version of this specification is the only normative version. For translations of this document see the (追記ここまで)[(追記) [#translations (追記ここまで)]] (追記) section (追記ここまで).
(削除) * [http://tantek.com/ Tantek Çelik (削除ここまで)](削除) , [http://technorati (削除ここまで).(削除) com Technorati, Inc.] (削除ここまで)
=== (削除) Copyright (削除ここまで)===
=== (追記) Errata and Updates (追記ここまで)===
(削除) {{MicroFormatCopyrightStatement2005}} (削除ここまで)
(追記) Known errors and issues in this specification are corrected in [[hatom-issues-resolved|resolved]] and [[hatom-issues-closed|closed]] issues. Please check there before reporting [[hatom-issues|issues]]. (追記ここまで)
(削除) === Patents === (削除ここまで)
(追記) The hAtom 0.2 update is currently under development and incorporates known errata corrections as well as the [[value-class-pattern]]. (追記ここまで)
(削除) {{MicroFormatPatentStatement}} (削除ここまで)
== Introduction ==
== Introduction ==
(追記) 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. (追記ここまで)
(削除) 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 (削除ここまで).
(追記) {{rfc-2119-intro}} (追記ここまで)
(追記) == Example == (追記ここまで)
(追記) Here (追記ここまで)is a (追記) simple blog post example: (追記ここまで)
(追記) <syntaxhighlight lang="html"> (追記ここまで)
(追記) <article class="hentry"> (追記ここまで)
(追記) <h1 class="entry-title">Microformats are amazing</h1> (追記ここまで)
(追記) <p>Published by <span class="author vcard"><span class="fn">W. Developer</span></span> (追記ここまで)
(追記) on <time class="published" datetime="2013年06月13日 12:00 (追記ここまで):(追記) 00">13<sup>th< (追記ここまで)/(追記) sup> June 2013< (追記ここまで)/(追記) time></p> (追記ここまで)
(追記) <p class="entry-summary">In which I extoll the virtues of using microformats (追記ここまで).(追記) < (追記ここまで)/(追記) p> (追記ここまで)
(追記) <div class="entry- (追記ここまで)content(追記) "> (追記ここまで)
(追記) <p>Blah blah blah</p> (追記ここまで)
(追記) </syntaxhighlight> (追記ここまで)
(追記) === Get started === (追記ここまで)
(追記) The class '''<code>hentry</code>''' (追記ここまで)is (追記) a ''root class name'' that indicates (追記ここまで)the (追記) presence of an hAtom entry (追記ここまで).
(削除) == Semantic XHTML Design Principles == (削除ここまで)
(追記) '''<code>entry (追記ここまで)-(追記) title</code>''', '''<code>author</code>''', '''<code>published</code>''', '''<code>entry (追記ここまで)-(追記) summary</code>''', '''<code>entry (追記ここまで)-(追記) content</code>''' and the other hAtom property classnames listed below define properties of the entry. (追記ここまで)
(削除) {{semantic (削除ここまで)-(削除) xhtml (削除ここまで)-(削除) design (削除ここまで)-(削除) principles}} (削除ここまで)
== Format ==
== Format ==
Line 40:
Line 70:
* hfeed ('''<code>hfeed</code>'''). optional.
* hfeed ('''<code>hfeed</code>'''). optional.
* hentry ('''<code>hentry</code>''').
*(追記) * '''<code>feed category</code>'''. optional. keywords or phrases, using '''[[rel-tag]]'''. (追記ここまで)
** '''<code>entry-title</code>'''. required. text.
(追記) ** [[ (追記ここまで)hentry(追記) ]] (追記ここまで)('''<code>hentry</code>''').
** '''<code>entry-content</code>'''. optional (see field description). text.
(追記) * (追記ここまで)** '''<code>entry-title</code>'''. required. text.
** '''<code>entry-summary</code>'''. optional. text.
(追記) * (追記ここまで)** '''<code>entry-content</code>'''. optional (see field description). text. (追記) [*] (追記ここまで)
** '''<code>updated</code>'''. required using [[(削除) datetime (削除ここまで)-(削除) design (削除ここまで)-pattern]].
(追記) * (追記ここまで)** '''<code>entry-summary</code>'''. optional. text.
** '''<code>published</code>'''. optional using [[(削除) datetime (削除ここまで)-(削除) design (削除ここまで)-pattern]].
(追記) * (追記ここまで)** '''<code>updated</code>'''. required using [[(追記) value (追記ここまで)-(追記) class (追記ここまで)-pattern(追記) #Date_and_time_parsing|value class pattern date and time (追記ここまで)]]. (追記) [*] (追記ここまで)
** '''<code>author</code>'''. required using '''[[hcard|hCard]]'''.
(追記) * (追記ここまで)** '''<code>published</code>'''. optional using [[(追記) value (追記ここまで)-(追記) class (追記ここまで)-pattern(追記) #Date_and_time_parsing|value class pattern date and time (追記ここまで)]].
** '''<code>bookmark</code>''' (permalink). optional, using '''[[rel-bookmark]]'''.
(追記) * (追記ここまで)** '''<code>author</code>'''. required using '''[[hcard|hCard]]'''. (追記) [*] (追記ここまで)
** tags. optional. keywords or phrases, using '''[[rel-tag]]'''.
(追記) * (追記ここまで)** '''<code>bookmark</code>''' (permalink). optional, using '''[[rel-bookmark]]'''.
(追記) * (追記ここまで)** tags. optional. keywords or phrases, using '''[[rel-tag]]'''.
Some required elements have defaults if missing, see below.
(追記) [*] (追記ここまで)Some required elements have defaults if missing, see below.
=== Field and Element Details ===
=== Field and Element Details ===
Line 58:
Line 89:
* 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]
* 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]
* the Feed element is optional and, if missing, is assumed to be the page
* the Feed element is optional and, if missing, is assumed to be the page
* hAtom documents (削除) MAY (削除ここまで)have multiple Feed elements
* hAtom documents (追記) {{may}} (追記ここまで)have multiple Feed elements
===== Feed Category =====
===== Feed Category =====
* a Feed Category element is identified by [[rel-tag]]
* a Feed Category element is identified by [[rel-tag]]
* a Feed (削除) MAY (削除ここまで)have a Feed Category
* a Feed (追記) {{may}} (追記ここまで)have a Feed Category
* 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]
* 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]
* Feed Category elements (削除) MUST (削除ここまで)appear inside a Feed element but not inside an Entry element
* Feed Category elements (追記) {{must}} (追記ここまで)appear inside a Feed element but not inside an Entry element
* the [[rel-tag]] <code>href</code> encodes the atom <code>category:term</code>; the link text defines the atom <code>category:label</code>
* the [[rel-tag]] <code>href</code> encodes the atom <code>category:term</code>; the link text defines the atom <code>category:label</code>
Line 75:
Line 106:
===== Entry Category =====
===== Entry Category =====
* an Entry Category element is identified by [[rel-tag]]
* an Entry Category element is identified by [[rel-tag]]
* an Entry (削除) MAY (削除ここまで)have an Entry Category
* an Entry (追記) {{may}} (追記ここまで)have an Entry Category
* 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]
* 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]
* the [[rel-tag]] <code>href</code> encodes the atom <code>category:term</code>; the link text defines the atom <code>category:label</code>
* the [[rel-tag]] <code>href</code> encodes the atom <code>category:term</code>; the link text defines the atom <code>category:label</code>
Line 81:
Line 112:
===== Entry Title =====
===== Entry Title =====
* an Entry Title element is identified by the class name <code>entry-title</code>
* an Entry Title element is identified by the class name <code>entry-title</code>
* an Entry (削除) SHOULD (削除ここまで)have an Entry Title
* an Entry (追記) {{should}} (追記ここまで)have an Entry Title
* 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]
* 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]
* if the Entry Title is missing, use
* if the Entry Title is missing, use
Line 90:
Line 121:
===== Entry Content =====
===== Entry Content =====
* an Entry Content element is identified by class name <code>entry-content</code>
* an Entry Content element is identified by class name <code>entry-content</code>
* an Entry (削除) SHOULD (削除ここまで)have Entry Content
* an Entry (追記) {{should}} (追記ここまで)have Entry Content
* an Entry Content element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#atomContent Atom content]
* an Entry Content element represents the concept of an [http://www.atomenabled.org/developers/syndication/atom-format-spec.php#atomContent Atom content]
* 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
* 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
: ''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.''
: ''Many (追記) web logs (追記ここまで)split content into multiple sections with a "Read More" link and (追記) JavaScript (追記ここまで)tricks. This is also needed in cases where Entry Titles are coded (追記) in-line (追記ここまで)and are considered part of the content.''
* if the Entry Content is missing, assume it is the empty string
* if the Entry Content is missing, assume it is the empty string
Line 99:
Line 130:
* an Entry Summary element is identified by class name <code>entry-summary</code>
* an Entry Summary element is identified by class name <code>entry-summary</code>
* 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]
* 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]
* 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
* 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
===== Entry Permalink =====
===== Entry Permalink =====
* an Entry Permalink element is identified by [[rel-bookmark]]
* an Entry Permalink element is identified by [[rel-bookmark]]
* an Entry (削除) SHOULD (削除ここまで)have an Entry Permalink
* an Entry (追記) {{should}} (追記ここまで)have an Entry Permalink
* 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]
* 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]
* 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
* 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
Line 110:
Line 141:
* an Entry Updated element is identified by class name <code>updated</code>
* an Entry Updated element is identified by class name <code>updated</code>
* 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]
* 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]
* an Entry (削除) SHOULD (削除ここまで)have an Entry Updated element
* an Entry (追記) {{should}} (追記ここまで)have an Entry Updated element
* use the [[(削除) datetime (削除ここまで)-(削除) design (削除ここまで)-pattern]] to encode the updated datetime
* use the [[(追記) value (追記ここまで)-(追記) class (追記ここまで)-pattern(追記) #Date_and_time_parsing|value class pattern date and time (追記ここまで)]] to encode the updated datetime
* if there is no Entry Updated element,
* if there is no Entry Updated element,
** use the Entry Published element, if present
** use the Entry Published element, if present
Line 119:
Line 150:
* an Entry Published element is identified by the class name <code>published</code>
* an Entry Published element is identified by the class name <code>published</code>
* 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]
* 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]
* use the [[(削除) datetime (削除ここまで)-(削除) design (削除ここまで)-pattern]] to encode the published datetime
* use the [[(追記) value (追記ここまで)-(追記) class (追記ここまで)-pattern(追記) #Date_and_time_parsing|value class pattern date and time (追記ここまで)]] to encode the published datetime
===== Entry Author =====
===== Entry Author =====
* an Entry Author element is represented by class name <code>author</code>
* an Entry Author element is represented by class name <code>author</code>
* 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]
* 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]
* an Entry Author element (削除) MUST (削除ここまで)be encoded in an [[hcard|hCard]]
* an Entry Author element (追記) {{must}} (追記ここまで)be encoded in an [[hcard|hCard]]
* an Entry Author element (削除) SHOULD (削除ここまで)be encoded in an <code><address></code> element
* an Entry Author element (追記) {{should}} (追記ここまで)be encoded in an <code><address></code> element
* an Entry (削除) SHOULD (削除ここまで)have at least one Entry Author element
* an Entry (追記) {{should}} (追記ここまで)have at least one Entry Author element
* an Entry (削除) MAY (削除ここまで)have more than one Entry Author elements
* an Entry (追記) {{may}} (追記ここまで)have more than one Entry Author elements
* if the Entry Author is missing
* if the Entry Author is missing
** find the [[algorithm-nearest-in-parent|Nearest In Parent]] <code><address></code> element(s) with class name <code>author</code> and that is/are a valid [[hcard|hCard]]
** find the [[algorithm-nearest-in-parent|Nearest In Parent]] <code><address></code> element(s) with class name <code>author</code> and that is/are a valid [[hcard|hCard]]
Line 133:
Line 164:
=== XMDP Profile ===
=== XMDP Profile ===
(削除) <pre> (削除ここまで)
(追記) See [[hatom (追記ここまで)-profile(追記) ]] (追記ここまで).
(削除) <dl class="profile"> (削除ここまで)
(削除) <dt>class</dt> (削除ここまで)
(削除) <a rel="help" href="http://www.w3.org/TR/html401/struct/global.html#adef-class"> (削除ここまで)
(削除) HTML4 definition of the 'class' attribute.</a> (削除ここまで)
(削除) This meta data profile defines some 'class' attribute values (class names) (削除ここまで)
(削除) and their meanings as suggested by a (削除ここまで)
(削除) <a href="http://www.w3.org/TR/WD-htmllink (削除ここまで)-(削除) 970328# (削除ここまで)profile(削除) "> (削除ここまで)
(削除) draft of "Hypertext Links in HTML"</a>. (削除ここまで)
(削除) <dt>hfeed</dt> (削除ここまで)
(削除) The concept of atom:feed from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>hentry</dt> (削除ここまで)
(削除) The concept of atom:entry from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>entry-title</dt> (削除ここまで)
(削除) The concept of atom:title inside of an atom:entry from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>entry-content</dt> (削除ここまで)
(削除) The concept of atom:content from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>entry-summary</dt> (削除ここまで)
(削除) The concept of atom:summary from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>bookmark</dt> (削除ここまで)
(削除) The concept of atom:link (without any "rel") with an atom:entry from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>published</dt> (削除ここまで)
(削除) The concept of atom:published from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>updated</dt> (削除ここまで)
(削除) The concept of atom:updated from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a>. (削除ここまで)
(削除) <dt>author</dt> (削除ここまで)
(削除) The concept of atom:author from (削除ここまで)
(削除) <a href="http://www.atomenabled.org/developers/syndication/atom-format-spec.php">The Atom Syndication Format</a>, (削除ここまで)
(削除) constrained and modified as per the <a href="http://microformats.org/wiki/hatom">hAtom microformat spec</a> (削除ここまで).
== Examples ==
== Examples ==
Line 207:
Line 170:
See [[hatom-examples]].
See [[hatom-examples]].
== Examples in the wild ==
(追記) = (追記ここまで)== Examples in the wild ==(追記) = (追記ここまで)
(削除) This section is '''informative'''. (削除ここまで)
(削除) 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 (削除ここまで).
(追記) See [[hatom- (追記ここまで)examples(追記) - (追記ここまで)in(追記) - (追記ここまで)wild(追記) ]] (追記ここまで).
=== (削除) 0.1 hAtom examples (削除ここまで)=(削除) == (削除ここまで)
== (追記) Implementations (追記ここまで)==
(削除) * [http://kpumuk.info/ Dmytro Shteflyuk] uses hAtom for all blog posts. (削除ここまで)
(削除) * [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. (削除ここまで)
(削除) * [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]. (削除ここまで)
(削除) * [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 (削除ここまで)
(削除) * [http://www.absalom.net.au Absalom Media] uses hAtom combined with hCard for articles. (削除ここまで)
(削除) * [http://www.joomlamug.com Joomla! Melbourne User Group] uses hAtom combined with hCard for articles. (削除ここまで)
(削除) * [http://www.volume.co.uk Volume] - Main news page is marked up as hAtom 0.1 (削除ここまで)
(削除) * [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]) (削除ここまで)
(削除) * 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] — comments welcome on my talk page [[User:AndyMabbett|Andy Mabbett]] (削除ここまで)
(削除) * [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 (削除ここまで)
(削除) * [http://www.geekinthepark.co.uk Geek in the Park] uses hAtom for the comments. -- by [[User:Trovster|trovster]] (削除ここまで)
(削除) * [http://www.csarven.ca Sarven Capadisli] uses hAtom for the articles and comments -- by [[User:Csarven|csarven]] (削除ここまで)
(削除) * [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]) (削除ここまで)
(削除) * [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. (削除ここまで)
(削除) * [http://blog.davidjanes.com Ranting and Roaring] (David Janes) (削除ここまで)
(削除) * [http://ChunkySoup.net/ ChunkySoup.net] has redesigned using hAtom 0.1 and hCards on the entire site -- by [[User:ChrisCasciano|Chris Casciano]] (削除ここまで)
(削除) * [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]) (削除ここまで)
(削除) * [http://members.optusnet.com.au/benjamincarlyle/benjamin/blog/ Sound Advice] (Benjamin Carlyle) (削除ここまで)
(削除) * [http://quotedprintable.com/pages/scribbish Scribbish] is a Typo theme which uses hAtom. (削除ここまで)
(削除) * [http://rbach.priv.at/hAtom2Atom/Changelog/ hAtom2Atom.xsl's Changelog] is published as hAtom and Atom. (削除ここまで)
(削除) * [http://federali.st/ federali.st]'s webbed Federalist Papers are each marked up in hAtom. (削除ここまで)
(削除) * [http://www.plaintxt.org/themes/sandbox/ Sandbox] is a theme for [http://wordpress.org/ WordPress] that uses hAtom. (削除ここまで)
(削除) ** 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. (削除ここまで)
(削除) * [http://www.whump.com/dropbox/Strangelove.zip Strangelove] is a modification of the default WordPress theme (Kubrick) with hAtom support. (削除ここまで)
(削除) ** It points to the hAtom2Atom proxy service as the link for syndication feeds. (削除ここまで)
(削除) * 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: (削除ここまで)
(削除) ** [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) (削除ここまで)
(削除) * [http://archgfx.net/blog/index.php/themes/disconnected/ Disconnected], a theme for WordPress, also incorporated hAtom with version 1.2 (削除ここまで)
(削除) * [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 (削除ここまで)
(削除) ===Examples with some problems=== (削除ここまで)
(追記) See [[hatom-implementations]]. (追記ここまで)
(削除) 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 (削除ここまで).
(追記) == Copyright == (追記ここまで)
(追記) {{MicroFormatCopyrightStatement2005}} (追記ここまで)
(追記) * [[User:Tantek|Tantek]]: I release all my contributions to this specification into (追記ここまで)the (追記) public domain and I encourage (追記ここまで)the (追記) other authors to do so as well (追記ここまで).
(追記) ** When all authors/editors have done so, we can remove (追記ここまで)the (追記) MicroFormatCopyrightStatement template reference (追記ここまで)and (追記) replace (追記ここまで)it (追記) with (追記ここまで)the (追記) MicroFormatPublicDomainContributionStatement (追記ここまで).
==== (削除) Pre 0.1 hAtom examples==== (削除ここまで)
== (追記) Patents (追記ここまで)==
(削除) These pages conform to an older draft standard and need to be updated. (削除ここまで)
(追記) {{MicroFormatPatentStatement}} (追記ここまで)
(削除) * [http://www.myelin.co.nz/post/ Second p0st] (Phil Pearson) (削除ここまで)
== (削除) Implementations (削除ここまで)==
== (追記) Semantic HTML Design Principles (追記ここまで)==
(追記) <div id (追記ここまで)=(追記) "Semantic_XHTML_Design_Principles">{{semantic (追記ここまで)-(追記) html (追記ここまで)-(追記) design (追記ここまで)-(追記) principles}}< (追記ここまで)/(追記) div> (追記ここまで)
(削除) This section is '''informative'''. (削除ここまで)
(削除) 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. (削除ここまで)
(削除) * [http://dichotomize.com/uf/hatom/creator.html hAtom Creator] modified from the other creators by BenWest. (削除ここまで)
(削除) * 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µformat=hatom&submit (削除ここまで)=(削除) Submit example]) (削除ここまで)
(削除) * 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] (削除ここまで)
(削除) * [http://rbach.priv.at/hAtom2Atom/ hAtom2Atom.xsl] transforms hAtom to Atom (as the name suggests.) (削除ここまで)
(削除) * There is now an [http://www.lukearno.com/projects/hatom2atom/ hatom2atom proxy] that uses hAtom2Atom.xsl. (削除ここまで)
(削除) * [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]]. (削除ここまで)
(削除) * [http://boxtheweb.mihopa.net/code/apis/#outlineclasses Outline Classes] (削除ここまで)- (削除) has GPL'ed PHP code for reading hAtom (削除ここまで)
(削除) * [http://boxtheweb.4x2.net (削除ここまで)/ (削除) BoxtheWeb] - supports subscribing to hAtom as a feed format (削除ここまで)
== References ==
== References ==
Line 272:
Line 194:
* [http://www.ietf.org/rfc/rfc4287 RFC4287: The Atom Syndication Format]
* [http://www.ietf.org/rfc/rfc4287 RFC4287: The Atom Syndication Format]
* [[hcard-parsing]]
* [[hcard-parsing]]
(追記) * [[rfc-2119|RFC 2119]] (追記ここまで)
(追記) * [[iso-8601|ISO8601]] (追記ここまで)
=== Informative References ===
=== Informative References ===
* [http://www.atomenabled.org/ atomenabled.org]
* [http://www.atomenabled.org/ atomenabled.org]
(追記) == Further Reading == (追記ここまで)
(追記) * [http://www.ablognotlimited.com/articles/getting-semantic-with-microformats-part-5-hatom/ Getting Semantic With Microformats, Part 5: hAtom] by [http://www.ablognotlimited.com/ Emily Lewis] (追記ここまで)
== Work in progress ==
== Work in progress ==
Line 301:
Line 228:
* [[blog-post-formats]]
* [[blog-post-formats]]
* [[blog-post-examples]]
* [[blog-post-examples]]
(追記) * [[blog-post-feed-equivalence]] (追記ここまで)
* [[blog-description-format]] - how to describe a blog (as opposed to the individual entries, which is what we're doing here)
* [[blog-description-format]] - how to describe a blog (as opposed to the individual entries, which is what we're doing here)
(追記) * [[xhtml-syndication]] (追記ここまで)
(追記) [[Category:Draft Specifications]] (追記ここまで)
(追記) [[Category:hAtom]] (追記ここまで)
(追記) == Translations == (追記ここまで)
(追記) Read the hAtom draft specification in additional <span id="languages">languages</span>: (追記ここまで)
(追記) * [[hatom-fr|français]] (追記ここまで)
Latest revision as of 23:32, 20 June 2024
This document represents a draft microformat specification. Although drafts are somewhat mature in the development process, the stability of this document cannot be guaranteed, and implementers should be prepared to keep abreast of future developments and changes. Watch this wiki page, or follow discussions on the #microformats IRC channel to stay up-to-date.
hAtom is a microformat for content that can be syndicated, primarily but not exclusively weblog postings. hAtom is based on a subset of the Atom syndication format. hAtom will be one of several microformats open standards.
Draft Specification
- Contributors
- Benjamin Carlyle
- Tantek Çelik (http://tantek.com/ and before at Technorati, Inc.)
copyright and patents statements apply.
Status
hAtom 0.1 is a microformats.org draft specification. Public discussion on hAtom takes place on hatom-feedback, the #microformats irc channel on irc.freenode.net, and microformats-discuss mailing list.
Available languages
The English version of this specification is the only normative version. For translations of this document see the #translations section.
Errata and Updates
Known errors and issues in this specification are corrected in resolved and closed issues. Please check there before reporting issues.
The hAtom 0.2 update is currently under development and incorporates known errata corrections as well as the value-class-pattern.
Introduction
hAtom is a microformat for identifying semantic information in weblog posts and practically any other place 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.
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 RFC 2119.
Example
Here is a simple blog post example:
<article class="hentry">
<h1 class="entry-title">Microformats are amazing</h1>
<p>Published by <span class="author vcard"><span class="fn">W. Developer</span></span>
on <time class="published" datetime="2013年06月13日 12:00:00">13<sup>th</sup> June 2013</time></p>
<p class="entry-summary">In which I extoll the virtues of using microformats.</p>
<div class="entry-content">
<p>Blah blah blah</p>
</div>
</article>
Get started
The class hentry is a root class name that indicates the presence of an hAtom entry.
entry-title, author, published, entry-summary, entry-content and the other hAtom property classnames listed below define properties of the entry.
Format
In General
The Atom Syndication Format provides the conceptual basis for this microformat, with the following caveats:
- Atom provides a lot more functionality than we need for a "blog post" microformat, so we've taken the minimal number of elements needed.
- the "logical" model of hAtom is that of Atom. If there is a conflict, Atom should be taken as correct.
- 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"
Schema
Schema elements are based on the Atom nomenclature and follow the microformat pattern of prefixing a unique identifier (in this case, 'h') 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.
The hAtom schema consists of the following:
- hfeed (
hfeed). optional.
feed category. optional. keywords or phrases, using rel-tag .
- hentry (
hentry).
[*] Some required elements have defaults if missing, see below.
Field and Element Details
Feed
- a Feed element is identified by the class name
hfeed
- a Feed element represents the concept of an Atom feed
- the Feed element is optional and, if missing, is assumed to be the page
- hAtom documents MAY have multiple Feed elements
Feed Category
- a Feed Category element is identified by rel-tag
- a Feed MAY have a Feed Category
- a Feed Category element represents the concept of an Atom category inside a feed
- Feed Category elements MUST appear inside a Feed element but not inside an Entry element
- the rel-tag
href encodes the atom category:term; the link text defines the atom category:label
Entry
- an Entry element is identified by class name
hentry
- an Entry element represents the concept of an Atom entry
- any microformat content inside a
<blockquote> or <q> element within the Entry should not be considered part of the Entry.
- This allows quoting other microformated data without worry of corrupting the model
Entry Category
- an Entry Category element is identified by rel-tag
- an Entry MAY have an Entry Category
- an Entry Category element represents the concept of an Atom category inside an entry
- the rel-tag
href encodes the atom category:term; the link text defines the atom category:label
Entry Title
- an Entry Title element is identified by the class name
entry-title
- an Entry SHOULD have an Entry Title
- an Entry Title element represents the concept of an Atom entry title
- if the Entry Title is missing, use
- the first
<h#> element in the Entry, or
- the
<title> of the page, if there is no enclosing Feed element, or
- assume it is the empty string
Entry Content
- an Entry Content element is identified by class name
entry-content
- an Entry SHOULD have Entry Content
- an Entry Content element represents the concept of an Atom content
- 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
- Many web logs split content into multiple sections with a "Read More" link and JavaScript tricks. This is also needed in cases where Entry Titles are coded in-line and are considered part of the content.
- if the Entry Content is missing, assume it is the empty string
Entry Summary
- an Entry Summary element is identified by class name
entry-summary
- an Entry Summary element represents the concept of an Atom summary
- 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
Entry Permalink
- an Entry Permalink element is identified by rel-bookmark
- an Entry SHOULD have an Entry Permalink
- an Entry Permalink element represents the concept of an Atom link in an entry
- 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
Entry Updated
- an Entry Updated element is identified by class name
updated
- an Entry Updated element represents the concept of Atom updated
- an Entry SHOULD have an Entry Updated element
- use the value class pattern date and time to encode the updated datetime
- if there is no Entry Updated element,
- use the Entry Published element, if present
- otherwise the page is invalid hAtom
Entry Published
Entry Author
- an Entry Author element is represented by class name
author
- an Entry Author element represents the concept of an Atom author
- an Entry Author element MUST be encoded in an hCard
- an Entry Author element SHOULD be encoded in an
<address> element
- an Entry SHOULD have at least one Entry Author element
- an Entry MAY have more than one Entry Author elements
- if the Entry Author is missing
- find the Nearest In Parent
<address> element(s) with class name author and that is/are a valid hCard
- otherwise the entry is invalid hAtom
XMDP Profile
See hatom-profile.
Examples
See hatom-examples.
Examples in the wild
See hatom-examples-in-wild.
Implementations
See hatom-implementations.
Copyright
This specification is (C) 2005-2025 by the authors. However, the authors intend to submit (or already have submitted, see details in the spec) this specification to a standards body with a liberal copyright/licensing policy such as the GMPG, IETF, and/or W3C. Anyone wishing to contribute should read their copyright principles, policies and licenses (e.g. the GMPG Principles) and agree to them, including licensing of all contributions under all required licenses (e.g. CC-by 1.0 and later), before contributing.
- Tantek: I release all my contributions to this specification into the public domain and I encourage the other authors to do so as well.
- When all authors/editors have done so, we can remove the MicroFormatCopyrightStatement template reference and replace it with the MicroFormatPublicDomainContributionStatement.
Patents
This specification is subject to a royalty free patent policy, e.g. per the W3C Patent Policy, and IETF RFC3667 & RFC3668.
Semantic HTML Design Principles
- Reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported microformats.
- When new schema are needed, reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported other formats/standards by incorporation, following the microformats naming-principles. Re-do constraints expressed in the source standard from the perspective of microformats design principles and designed primarily for web authoring. Informatively mention source standard for reference purposes.
- For types with multiple components, use nested elements with class names equivalent to the names of the components.
- Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited.
- Use the most accurately precise semantic HTML building block for each object etc.
- Otherwise use a generic structural element (e.g.
<span> or <div>), or the appropriate contextual element (e.g. an <li> inside a <ul> or <ol>).
- Use class names based on names from the original schema, unless the semantic HTML building block precisely represents that part of the original schema. If names in the source schema are case-insensitive, then use an all lowercase equivalent. Components names implicit in prose (rather than explicit in the defined schema) should also use lowercase equivalents for ease of use. Spaces in component names become dash '-' characters.
- Finally, if the format of the data according to the original schema is too long but still human readable/listenable, use
<abbr> instead of a generic structural element, and place the literal longer data into the 'title' attribute (where abbr expansions go), and the briefer equivalent into the contents of the element itself. If however, the format of the literal longer data data is not human-friendly, instead of <abbr>, use the value-class-pattern or HTML5 <time>/<data> elements as most semantically appropriate.
References
Normative References
Informative References
Further Reading
Work in progress
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:
Version 0.1
Version 0.1 was released 28 February 2006.
Discussions
Q&A
- If you have any questions about hAtom, check the hAtom FAQ, and if you don't find answers, add your questions!
Issues
- Please add any issues with the specification to the separate hAtom issues document.
See Also
Translations
Read the hAtom draft specification in additional languages: