adr

(Difference between revisions)

Jump to: navigation, search
m (Reverted edits by [[Special:Contributions/000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000)
Line 1: Line 1:
-
HOW THING OUT
+
<entry-title>adr</entry-title>
-
HOW ANYTHING OUT
+
{{latest|h-adr}}
-
HOW EVERYTHING OUT
+
{{DraftSpecification}}
-
HOW UNIVERSE OUT
+
 
-
HOW MAKE THING OUT
+
'''adr''' (pronounced "adder"; FAQ: [[hcard-faq#Should_I_use_ADDRESS_for_hCards|"why 'adr'?"]]) is a simple format for marking up address information, suitable for embedding in HTML, XHTML, Atom, RSS, and arbitrary XML. '''adr''' is a 1:1 representation of the ''adr'' property in the vCard standard ([http://www.ietf.org/rfc/rfc2426.txt RFC2426]) in HTML, one of several open [[microformats|microformat]] standards. It is also a property of [[hCard]].
-
HOW MAKE ANYTHING OUT
+
 
-
HOW MAKE EVERYTHING OUT
+
== Draft Specification ==
-
HOW MAKE UNIVERSE OUT
+
<div class="vcard">
-
HOW THING BE OUT
+
; <span class="role">Editor</span>/<span class="role">Author</span>
-
HOW ANYTHING BE OUT
+
: <span class="fn">[[User:Tantek|Tantek Çelik]]</span> (<span class="url">http://tantek.com/</span>, and before at [http://technorati.com Technorati, Inc.])
-
HOW EVERYTHING BE OUT
+
</div>
-
HOW UNIVERSE BE OUT
+
 
-
HOW MAKE THING BE OUT
+
=== Copyright ===
-
HOW MAKE ANYTHING BE OUT
+
Per the public domain release on [[User:Tantek|my user page]], this specification is released into the public domain.
-
HOW MAKE EVERYTHING BE OUT
+
 
-
HOW MAKE UNIVERSE BE OUT
+
{{MicroFormatPublicDomainContributionStatement}}
-
HOW THING OUT
+
 
-
HOW ANYTHING OUT
+
=== Patents ===
-
HOW EVERYTHING OUT
+
{{MicroFormatPatentStatement}}
-
HOW UNIVERSE OUT
+
 
-
HOW MAKE THING OUT
+
=== Inspiration and Acknowledgments ===
-
HOW MAKE ANYTHING OUT
+
Thanks to everyone who participated in the [[geo-bof-2005-06-30|Geo Microformat BOF at O'Reilly's Where 2.0 conference]], and in particular to [http://radar.oreilly.com/nat/ Nat Torkington] and Vee McMillen of [http://oreilly.com O'Reilly] for [http://conferences.oreillynet.com/cs/where2005/view/e_sess/7476 arranging and hosting the BOF].
-
HOW MAKE EVERYTHING OUT
+
 
-
HOW MAKE UNIVERSE OUT
+
== Introduction and Background ==
-
HOW THING BE OUT
+
The vCard standard ([http://www.ietf.org/rfc/rfc2426.txt RFC2426]), has been broadly and interoperably implemented (e.g. Apple's Address Book application). The [[hcard|hCard]] microformat has similarly received significant adoption, from numerous sites publishing the format, to hCard to vCard proxies, to clientside javascript parsers.
-
HOW ANYTHING BE OUT
+
 
-
HOW EVERYTHING BE OUT
+
At the [http://conferences.oreillynet.com/where/ Where 2.0 conference] in June 2005, there was widespread recognition that the community needed a way to simply and easily publish visible, extractable, address information on the Web, given how often bloggers, and numerous other sites publish address information.  The [[geo-bof-2005-06-30|geo microformat BOF]] discussed this very topic, and concluded with a consensus decision to just try using ''adr'' from vCard/hCard.
-
HOW UNIVERSE BE OUT
+
 
-
HOW MAKE THING BE OUT
+
This specification introduces the '''adr''' microformat, which is a 1:1 representation of the aforementioned ''adr'' property from the vCard standard, by simply reusing the ''adr'' property and sub-properties as-is from the [[hcard|hCard]] microformat.
-
HOW MAKE ANYTHING BE OUT
+
 
-
HOW MAKE EVERYTHING BE OUT
+
Publishers can both embed '''adr''' addresses directly in their web pages and feeds, as well as markup existing addresses in the context of the rest of the information in their web pages and feeds.
-
HOW MAKE UNIVERSE BE OUT
+
 
-
HOW THING OUT
+
If the publisher knows and is publishing the ''name'' of the location in addition to its address, then the publisher MUST use [[hcard|hCard]] instead of just '''adr''' to publish the name and address of the location.
-
HOW ANYTHING OUT
+
 
-
HOW EVERYTHING OUT
+
== Semantic XHTML Design Principles ==
-
HOW UNIVERSE OUT
+
{{semantic-xhtml-design-principles}}
-
HOW MAKE THING OUT
+
 
-
HOW MAKE ANYTHING OUT
+
== Format ==
-
HOW MAKE EVERYTHING OUT
+
=== Singular Properties ===
-
HOW MAKE UNIVERSE OUT
+
See [[hcard#Singular_vs._Plural_Properties|hCard: Singular vs. Plural Properties]] for the list of which "adr" properties (sub-properties in hCard) are singular.  Note analysis in progress: [[adr-singular-properties]].
-
HOW THING BE OUT
+
 
-
HOW ANYTHING BE OUT
+
=== Human vs. Machine readable ===
-
HOW EVERYTHING BE OUT
+
If an <code>&lt;abbr&gt;</code> element is used for a property, then the <code>title</code> attribute of the <code>&lt;abbr&gt;</code> element is the value of the property, instead of the contents of the element, which instead provide a human presentable version of the value. 
-
HOW UNIVERSE BE OUT
+
 
-
HOW MAKE THING BE OUT
+
Similarly, if an <code>&lt;img&gt;</code> element is used for one or more properties, it must be treated as follows:
-
HOW MAKE ANYTHING BE OUT
+
# For the <code>PHOTO</code> property and any other property that takes a <abbr title="Uniform Resource Locator">URL</abbr> as its value, the <code>src</code> attribute provides the property value.
-
HOW MAKE EVERYTHING BE OUT
+
# For other properties, the <code>&lt;img&gt;</code> element's <code>alt</code> attribute is the value of the property.
-
HOW MAKE UNIVERSE BE OUT
+
 
-
HOW THING OUT
+
=== Value excerpting ===
-
HOW ANYTHING OUT
+
Sometimes only part of an element which is the equivalent for a property should be used for the value of the property. For this purpose, the special class name <code>value</code> is used to excerpt out the subset of the element that is  the value of the property.  See [[hcard|hCard]] for details on this.
-
HOW EVERYTHING OUT
+
 
-
HOW UNIVERSE OUT
+
=== Root Class Name ===
-
HOW MAKE THING OUT
+
 
-
HOW MAKE ANYTHING OUT
+
The root class name for an '''adr''' address is <code>adr</code>.
-
HOW MAKE EVERYTHING OUT
+
 
-
HOW MAKE UNIVERSE OUT
+
=== Property List ===
-
HOW THING BE OUT
+
 
-
HOW ANYTHING BE OUT
+
This is the list of properties in '''adr''', taken from [[hcard|hCard]]:
-
HOW EVERYTHING BE OUT
+
 
-
HOW UNIVERSE BE OUT
+
* <code>post-office-box</code>
-
HOW MAKE THING BE OUT
+
* <code>extended-address</code>
-
HOW MAKE ANYTHING BE OUT
+
* <code>street-address</code>
-
HOW MAKE EVERYTHING BE OUT
+
* <code>locality</code>
-
HOW MAKE UNIVERSE BE OUT
+
* <code>region</code>
-
HOW THING OUT
+
* <code>postal-code</code>
-
HOW ANYTHING OUT
+
* <code>country-name</code>
-
HOW EVERYTHING OUT
+
 
-
HOW UNIVERSE OUT
+
The <code>type</code> sub-property is omitted because without the context of a type of address for ''whom'', it doesn't make much sense.
-
HOW MAKE THING OUT
+
 
-
HOW MAKE ANYTHING OUT
+
=== XMDP Profile ===
-
HOW MAKE EVERYTHING OUT
+
 
-
HOW MAKE UNIVERSE OUT
+
See [[hcard-profile]] for the [http://gmpg.org/xmdp XMDP] profile of hCard which contains the above complete list of properties, with references to their RFC 2426 definitions.
-
HOW THING BE OUT
+
 
-
HOW ANYTHING BE OUT
+
=== Parsing Details ===
-
HOW EVERYTHING BE OUT
+
See [[hcard-parsing|hCard parsing]], with the only difference being that "adr" is the root class name, rather than "vcard".
-
HOW UNIVERSE BE OUT
+
 
-
HOW MAKE THING BE OUT
+
== Examples ==
-
HOW MAKE ANYTHING BE OUT
+
This section is informative.
-
HOW MAKE EVERYTHING BE OUT
+
 
-
HOW MAKE UNIVERSE BE OUT
+
=== Sample adr ===
-
HOW THING OUT
+
 
-
HOW ANYTHING OUT
+
Here is a sample <code>adr</code>:
-
HOW EVERYTHING OUT
+
 
-
HOW UNIVERSE OUT
+
<pre><nowiki>
-
HOW MAKE THING OUT
+
<div class="adr">
-
HOW MAKE ANYTHING OUT
+
<div class="street-address">665 3rd St.</div>
-
HOW MAKE EVERYTHING OUT
+
<div class="extended-address">Suite 207</div>
-
HOW MAKE UNIVERSE OUT
+
<span class="locality">San Francisco</span>,
-
HOW THING BE OUT
+
<span class="region">CA</span>
-
HOW ANYTHING BE OUT
+
<span class="postal-code">94107</span>
-
HOW EVERYTHING BE OUT
+
<div class="country-name">U.S.A.</div>
-
HOW UNIVERSE BE OUT
+
</div>
-
HOW MAKE THING BE OUT
+
</nowiki></pre>
-
HOW MAKE ANYTHING BE OUT
+
 
-
HOW MAKE EVERYTHING BE OUT
+
which might be displayed as:
-
HOW MAKE UNIVERSE BE OUT
+
 
-
HOW THING OUT
+
<div class="adr"><div class="street-address">'''665 3rd St.'''</div> <div class="extended-address">'''Suite 207'''</div> <span class="locality">'''San Francisco'''</span>, <span class="region">'''CA'''</span> <span class="postal-code">'''94107'''</span> <div class="country-name">'''U.S.A.'''</div> </div>
-
HOW ANYTHING OUT
+
 
-
HOW EVERYTHING OUT
+
Note that this is a '''live''' <code>adr</code> microformat, which will be found on this page by parsers.
-
HOW UNIVERSE OUT
+
 
-
HOW MAKE THING OUT
+
=== More Examples ===
-
HOW MAKE ANYTHING OUT
+
 
-
HOW MAKE EVERYTHING OUT
+
See [http://microformats.org/wiki/hcard-examples#3.2.1_ADR_Type_Definition hCard example ADR] for more examples.
-
HOW MAKE UNIVERSE OUT
+
 
-
HOW THING BE OUT
+
See [http://microformats.org/wiki/adr-examples adr examples] for additional uses of ADR.
-
HOW ANYTHING BE OUT
+
 
-
HOW EVERYTHING BE OUT
+
== Examples in the wild ==
-
HOW UNIVERSE BE OUT
+
This section is '''informative'''.
-
HOW MAKE THING BE OUT
+
 
-
HOW MAKE ANYTHING BE OUT
+
The following sites have published adrs, outside their normal context of hCards, and thus are a great place to start for anyone looking for examples "in the wild" to try parsing, indexing, organizing etc., in addition to [[hcard|hCard]] examples in the wild. If you find adrs outside of hCards anywhere else, feel free to add them to the top of this list. Once the list grows too big, we'll make a separate wiki page.
-
HOW MAKE EVERYTHING BE OUT
+
 
-
HOW MAKE UNIVERSE BE OUT
+
* [http://iprefer.com/ I Prefer Guest Benefit Program] uses adr on search results pages for city/state/country information, example: [http://iprefer.com/luxury-hotel/Bangalore/ Search page for Bangalore]
-
HOW THING OUT
+
* [http://preferredhotels.com/ Preferred Hotels and Resorts] uses adr on search results pages for city/state/country information, example: [http://preferredhotels.com/luxury-hotel/London/ Search page for London]
-
HOW ANYTHING OUT
+
* [http://sterlinghotels.com Sterling Hotels] uses adr on search results pages for city/state/country information, example: [http://sterlinghotels.com/smart-hotel/Barcelona/ Search page for Barcelona]
-
HOW EVERYTHING OUT
+
* [http://sterlingdesignhotels.com Sterling Design Hotels] uses adr for city/state/country information on search results pages, example: [http://sterlingdesignhotels.com/design-hotel/Miami/ Search page for Miami]
-
HOW UNIVERSE OUT
+
* [http://www.growsonyou.com/visit Grows on You] uses the microformat to mark up the addresses of open gardens.
-
HOW MAKE THING OUT
+
* [http://www.stems-florist.co.uk/ Stems Florist] uses the microformat on the front page to markup up the two store addresses
-
HOW MAKE ANYTHING OUT
+
* [http://themechanism.com/locations/ theMechanism] uses the adr microformat to mark up the locations of
-
HOW MAKE EVERYTHING OUT
+
their offices.
-
HOW MAKE UNIVERSE OUT
+
* [http://www.mister-map.com/ Mister-Map.com] uses the adr microformat to mark up the streets, zip-codes, regions and country names.
-
HOW THING BE OUT
+
 
-
HOW ANYTHING BE OUT
+
(See also [[hcard-examples-in-wild]])
-
HOW EVERYTHING BE OUT
+
 
-
HOW UNIVERSE BE OUT
+
== Implementations ==
-
HOW MAKE THING BE OUT
+
This section is '''informative'''.
-
HOW MAKE ANYTHING BE OUT
+
 
-
HOW MAKE EVERYTHING BE OUT
+
The following implementations have been developed which either generate or parse adrs outside the context of hCards. If you have an adr 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.
-
HOW MAKE UNIVERSE BE OUT
+
 
-
HOW THING OUT
+
* [http://code.highearthorbit.com/greaseroute/index.php GreaseRoute] is a GreaseMonkey user script (also available as a simple Firefox Extension) which will add icons for displaying the location, or route to, an [[adr]] using a MapQuest map. The route is displayed from the starting location based on the viewer's IP-Address as determined by the [http://hostip.info HostIP] geolocation service.
-
HOW ANYTHING OUT
+
 
-
HOW EVERYTHING OUT
+
* [http://code.highearthorbit.com/greaseroute/index.php GreaseRouteEmbed] is another GreaseMonkey user script that will actually embed a route image in the webpage when the user clicks the "route" link.
-
HOW UNIVERSE OUT
+
 
-
HOW MAKE THING OUT
+
* [http://georss.org/geopress GeoPress] is a [http://wordpress.org WordPress] plugin that supports embedding adrs, geo, maps (dynamically switchable between Google-Yahoo-Microsoft Maps), and [http://georss.org GeoRSS] feeds.
-
HOW MAKE ANYTHING OUT
+
 
-
HOW MAKE EVERYTHING OUT
+
* [http://placenamehere.com/TXP/pnh_mf/ pnh_mf] is a plugin for [http://textpattern.com/ Textpattern] that supports embedding adrs and other microformats in templates and blog posts. Written by [http://placenamehere.com/ Chris Casciano].
-
HOW MAKE UNIVERSE OUT
+
 
-
HOW THING BE OUT
+
* The [http://tantek.com/microformats/hcard-creator.html hCard creator], though it creates complete hCards, can also be used simply to create adrs by filling out the address portion and simply copy and pasting the &lt;div class="adr"&gt; element and its contents.
-
HOW ANYTHING BE OUT
+
 
-
HOW EVERYTHING BE OUT
+
== References ==
-
HOW UNIVERSE BE OUT
+
=== Normative References ===
-
HOW MAKE THING BE OUT
+
* [[hcard|hCard]]
-
HOW MAKE ANYTHING BE OUT
+
 
-
HOW MAKE EVERYTHING BE OUT
+
=== Informative References ===
-
HOW MAKE UNIVERSE BE OUT
+
* [http://www.ietf.org/rfc/rfc2426.txt vCard RFC2426] ([http://www.w3.org/2002/12/cal/rfc2426 HTML reformatted version of RFC2426])
-
HOW THING OUT
+
* [http://www.w3.org/TR/2002/REC-xhtml1-20020801/ XHTML 1.0 SE]
-
HOW ANYTHING OUT
+
 
-
HOW EVERYTHING OUT
+
=== Similar Work ===
-
HOW UNIVERSE OUT
+
* [[geo]]
-
HOW MAKE THING OUT
+
* [[hcalendar|hCalendar]]
-
HOW MAKE ANYTHING OUT
+
* [[XOXO]]
-
HOW MAKE EVERYTHING OUT
+
 
-
HOW MAKE UNIVERSE OUT
+
== Work in progress ==
-
HOW THING BE OUT
+
This specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added.
-
HOW ANYTHING BE OUT
+
 
-
HOW EVERYTHING BE OUT
+
== Discussions ==
-
HOW UNIVERSE BE OUT
+
 
-
HOW MAKE THING BE OUT
+
* See [http://www.technorati.com/cosmos/referer.html blogs discussing this page].
-
HOW MAKE ANYTHING BE OUT
+
 
-
HOW MAKE EVERYTHING BE OUT
+
=== Q&A ===
-
HOW MAKE UNIVERSE BE OUT
+
* If you have any questions about hCard, check the [[hcard-faq|hCard FAQ]] first, and if you don't find answers, add your questions! (Odds are that any '''adr''' question will apply to [[hCard]] as well).
-
HOW THING OUT
+
* See also [http://microformats.org/discuss/ for other methods of feedback].
-
HOW ANYTHING OUT
+
 
-
HOW EVERYTHING OUT
+
=== Issues ===
-
HOW UNIVERSE OUT
+
* Please add any issues with the specification to the separate [[hcard-issues|hCard issues]] document.  Ditto.
-
HOW MAKE THING OUT
+
 
-
HOW MAKE ANYTHING OUT
+
== Related Pages ==
-
HOW MAKE EVERYTHING OUT
+
{{adr}}
-
HOW MAKE UNIVERSE OUT
+
 
-
HOW THING BE OUT
+
[[Category:Draft_Specifications]]
-
HOW ANYTHING BE OUT
+
[[Category:hCard]]
-
HOW EVERYTHING BE OUT
+
[[Category:adr]]
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+
-
HOW THING OUT
+
-
HOW ANYTHING OUT
+
-
HOW EVERYTHING OUT
+
-
HOW UNIVERSE OUT
+
-
HOW MAKE THING OUT
+
-
HOW MAKE ANYTHING OUT
+
-
HOW MAKE EVERYTHING OUT
+
-
HOW MAKE UNIVERSE OUT
+
-
HOW THING BE OUT
+
-
HOW ANYTHING BE OUT
+
-
HOW EVERYTHING BE OUT
+
-
HOW UNIVERSE BE OUT
+
-
HOW MAKE THING BE OUT
+
-
HOW MAKE ANYTHING BE OUT
+
-
HOW MAKE EVERYTHING BE OUT
+
-
HOW MAKE UNIVERSE BE OUT
+

Revision as of 05:22, 19 August 2013

See latest version: h-adr

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 Freenode IRC channel to stay up-to-date.

adr (pronounced "adder"; FAQ: "why 'adr'?") is a simple format for marking up address information, suitable for embedding in HTML, XHTML, Atom, RSS, and arbitrary XML. adr is a 1:1 representation of the adr property in the vCard standard (RFC2426) in HTML, one of several open microformat standards. It is also a property of hCard.

Contents

Draft Specification

Editor/Author
Tantek Çelik (http://tantek.com/, and before at Technorati, Inc.)

Copyright

Per the public domain release on my user page, this specification is released into the public domain.

Public Domain Contribution Requirement. Since the author(s) released this work into the public domain, in order to maintain this work's public domain status, all contributors to this page agree to release their contributions to this page to the public domain as well. Contributors may indicate their agreement by adding the public domain release template to their user page per the Voluntary Public Domain Declarations instructions. Unreleased contributions may be reverted/removed.

Patents

This specification is subject to a royalty free patent policy, e.g. per the W3C Patent Policy, and IETF RFC3667 & RFC3668.

Inspiration and Acknowledgments

Thanks to everyone who participated in the Geo Microformat BOF at O'Reilly's Where 2.0 conference, and in particular to Nat Torkington and Vee McMillen of O'Reilly for arranging and hosting the BOF.

Introduction and Background

The vCard standard (RFC2426), has been broadly and interoperably implemented (e.g. Apple's Address Book application). The hCard microformat has similarly received significant adoption, from numerous sites publishing the format, to hCard to vCard proxies, to clientside javascript parsers.

At the Where 2.0 conference in June 2005, there was widespread recognition that the community needed a way to simply and easily publish visible, extractable, address information on the Web, given how often bloggers, and numerous other sites publish address information. The geo microformat BOF discussed this very topic, and concluded with a consensus decision to just try using adr from vCard/hCard.

This specification introduces the adr microformat, which is a 1:1 representation of the aforementioned adr property from the vCard standard, by simply reusing the adr property and sub-properties as-is from the hCard microformat.

Publishers can both embed adr addresses directly in their web pages and feeds, as well as markup existing addresses in the context of the rest of the information in their web pages and feeds.

If the publisher knows and is publishing the name of the location in addition to its address, then the publisher MUST use hCard instead of just adr to publish the name and address of the location.

Semantic XHTML Design Principles

Note: the Semantic XHTML Design Principles were written primarily within the context of developing hCard and hCalendar, thus it may be easier to understand these principles in the context of the hCard design methodology (i.e. read that first). Tantek

XHTML is built on XML, and thus XHTML based formats can be used not only for convenient display presentation, but also for general purpose data exchange. In many ways, XHTML based formats exemplify the best of both HTML and XML worlds. However, when building XHTML based formats, it helps to have a guiding set of principles.

  1. Reuse the schema (names, objects, properties, values, types, hierarchies, constraints) as much as possible from pre-existing, established, well-supported standards by reference. Avoid restating constraints expressed in the source standard. Informative mentions are ok.
    1. For types with multiple components, use nested elements with class names equivalent to the names of the components.
    2. Plural components are made singular, and thus multiple nested elements are used to represent multiple text values that are comma-delimited.
  2. Use the most accurately precise semantic XHTML building block for each object etc.
  3. 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>).
  4. Use class names based on names from the original schema, unless the semantic XHTML 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.
  5. Finally, if the format of the data according to the original schema is too long and/or not human-friendly, use <abbr> instead of a generic structural element, and place the literal data into the 'title' attribute (where abbr expansions go), and the more brief and human readable equivalent into the element itself. Further informative explanation of this use of <abbr>: Human vs. ISO8601 dates problem solved

Format

Singular Properties

See hCard: Singular vs. Plural Properties for the list of which "adr" properties (sub-properties in hCard) are singular. Note analysis in progress: adr-singular-properties.

Human vs. Machine readable

If an <abbr> element is used for a property, then the title attribute of the <abbr> element is the value of the property, instead of the contents of the element, which instead provide a human presentable version of the value.

Similarly, if an <img> element is used for one or more properties, it must be treated as follows:

  1. For the PHOTO property and any other property that takes a URL as its value, the src attribute provides the property value.
  2. For other properties, the <img> element's alt attribute is the value of the property.

Value excerpting

Sometimes only part of an element which is the equivalent for a property should be used for the value of the property. For this purpose, the special class name value is used to excerpt out the subset of the element that is the value of the property. See hCard for details on this.

Root Class Name

The root class name for an adr address is adr.

Property List

This is the list of properties in adr, taken from hCard:

The type sub-property is omitted because without the context of a type of address for whom, it doesn't make much sense.

XMDP Profile

See hcard-profile for the XMDP profile of hCard which contains the above complete list of properties, with references to their RFC 2426 definitions.

Parsing Details

See hCard parsing, with the only difference being that "adr" is the root class name, rather than "vcard".

Examples

This section is informative.

Sample adr

Here is a sample adr:

<div class="adr">
 <div class="street-address">665 3rd St.</div>
 <div class="extended-address">Suite 207</div>
 <span class="locality">San Francisco</span>,
 <span class="region">CA</span>
 <span class="postal-code">94107</span>
 <div class="country-name">U.S.A.</div>
</div>

which might be displayed as:

665 3rd St.
Suite 207
San Francisco, CA 94107
U.S.A.

Note that this is a live adr microformat, which will be found on this page by parsers.

More Examples

See hCard example ADR for more examples.

See adr examples for additional uses of ADR.

Examples in the wild

This section is informative.

The following sites have published adrs, outside their normal context of hCards, and thus are a great place to start for anyone looking for examples "in the wild" to try parsing, indexing, organizing etc., in addition to hCard examples in the wild. If you find adrs outside of hCards anywhere else, feel free to add them to the top of this list. Once the list grows too big, we'll make a separate wiki page.

their offices.

(See also hcard-examples-in-wild)

Implementations

This section is informative.

The following implementations have been developed which either generate or parse adrs outside the context of hCards. If you have an adr 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.

References

Normative References

Informative References

Similar Work

Work in progress

This specification is a work in progress. As additional aspects are discussed, understood, and written, they will be added.

Discussions

Q&A

Issues

Related Pages

Categories

adr was last modified: Wednesday, December 31st, 1969

Views