attribute-exchange: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(added full AX type-pairings)
No edit summary
Line 7: Line 7:
<table style="border:1px solid #eee;" border="1" cellspacing="0" cellpadding="5">
<table style="border:1px solid #eee;" border="1" cellspacing="0" cellpadding="5">
<thead>
 
<tr>
<tr>
<th>Attribute</th>
<th>Attribute</th>
Line 14: Line 14:
<th>vCard</th>
<th>vCard</th>
</tr>
</tr>
</thead>
 
<tbody>
<tr>
<tr>
<th>Nickname</th>
<th>Nickname</th>
Line 70: Line 69:
<td><code>tz</code></td>
<td><code>tz</code></td>
</tr>
</tr>
</tbody>
</table>
</table>



Revision as of 16:24, 6 November 2007

Attribute Exchange Mapped to vCard

The purpose of this page is to map the attributes of Attribute Exchange (and SREG) to their vCard equivalents following a blog post by Chris Messina.


SREG / Attribute Exchange to hCard

Attribute SREG AX vCard
Nickname openid.sreg.nickname namePerson/friendly nickname
Full Name openid.sreg.fullname namePerson fn
Birthday openid.sreg.dob birthDate bday
Gender openid.sreg.gender gender gender
Email openid.sreg.email contact/email email
Postal Code openid.sreg.postcode contact/postalCode/home postal-code
Country openid.sreg.country contact/country/home country-name
Language openid.sreg.language pref/language --
Timezone openid.sreg.timezone pref/timezone tz

Attribute Exchange Types to hCard


<thead> </thead> <tbody> </tbody>
Label AX attribute hCard attribute

Name

Alias/Username namePerson/friendly nickname
Full name namePerson fn
Name prefix namePerson/prefix honorific-prefix
First name namePerson/first given-name
Last name namePerson/last family-name
Middle name namePerson/middle additional-name
Name suffix namePerson/suffix honorific-suffix

Work

Company name company/name org
Job title company/title title or role

Date of Birth

Birth date birthDate bday
Birth year birthDate/birthYear --
Birth month birthDate/birthMonth --
Birth day birthDate/birthday --

Telephone

Phone (preferred) contact/phone/default tel (<span class="type">pref</span>)
Phone (home) contact/phone/home tel (<span class="type">home</span>)
Phone (work) contact/phone/business tel (<span class="type">work</span>)
Phone (mobile) contact/phone/cell tel (<span class="type">cell</span>)
Phone (fax) contact/phone/fax tel (<span class="type">fax</span>)

Address

Address contact/postalAddress/home adr.street-address
Address 2 contact/postalAddressAdditional/home adr.extended-address
City contact/city/home adr.locality
State/Province contact/state/home adr.region
Country contact/country/home adr.country-name
Postal code contact/postalCode/home adr.postal-code
 
Address contact/postalAddress/business adr.label:type=work.street-address
Address 2 contact/postalAddressAdditional/business adr.label:type=work.extended-address
City contact/city/business adr.label:type=work.locality
State/Province contact/state/business adr.label:type=work.region
Country contact/country/business adr.label:type=work.country-name
Postal code contact/postalCode/business adr.label:type=work.postal-code

Email

Email contact/email email

Instant Messaging

AOL IM contact/IM/AIM url
ICQ IM contact/IM/ICQ url
MSN IM contact/IM/MSN url
Yahoo! IM contact/IM/Yahoo url
Jabber IM contact/IM/Jabber url
Skype IM contact/IM/Skype url

Web Sites

Web page contact/web/default url
Blog contact/web/blog url
LinkedIn URL contact/web/Linkedin url
Amazon URL contact/web/Amazon url
Flickr URL contact/web/Flickr url
del.icio.us URL contact/web/Delicious url

Audio/Video Greetings

Spoken name media/spokenname sound
Audio greeting media/greeting/audio --
Video greeting media/greeting/video --

Images

Image media/image/default logo or photo
Square image media/image/aspect11 logo or photo
4:3 aspect image media/image/aspect43 logo or photo
3:4 aspect image media/image/aspect34 logo or photo
Favicon image media/image/favicon logo or photo

Other Personal Details/Preferences

Gender person/gender Note
Language pref/language --
Time zone pref/timezone tz
Biography media/biography note