attribute-exchange: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:


The purpose of this page is to map the attributes of Attribute Exchange (and SREG) to their vCard equivalents following a [http://factoryjoe.com/blog/2007/11/01/hcard-for-openid-simple-registration-and-attribute-exchange/ blog post] by Chris Messina.
The purpose of this page is to map the attributes of Attribute Exchange (and SREG) to their vCard equivalents following a [http://factoryjoe.com/blog/2007/11/01/hcard-for-openid-simple-registration-and-attribute-exchange/ blog post] by Chris Messina.


<table>
<h2>SREG / Attribute Exchange to hCard</h2>
<thead>
<tr>
<table style="border:1px solid #eee;" border="1" cellspacing="0" cellpadding="5">
<th>Attribute</th>
 
<th>SREG</th>
<tr>
<th>AX</th>
<th>Attribute</th>
<th>vCard</th>
<th>SREG</th>
</tr>
<th>AX</th>
</thead>
<th>vCard</th>
<tbody>
</tr>
<tr>
 
<th>Nickname</th>
<tr>
<td><code>openid.sreg.nickname</code></td>
<th>Nickname</th>
<td><code>namePerson/friendly</code></td>
<td><code>openid.sreg.nickname</code></td>
<td><code>nickname</code></td>
<td><code>namePerson/friendly</code></td>
</tr>
<td><code>nickname</code></td>
<tr class="alt">
</tr>
<th>Full Name</th>
<tr>
<td><code>openid.sreg.fullname</code></td>
<th>Full Name</th>
<td><code>namePerson</code></td>
<td><code>openid.sreg.fullname</code></td>
<td><code>n (family-name, given-name)</code> [[hcard#Implied_.22n.22_Optimization | or]] <code>fn</code></td>
<td><code>namePerson</code></td>
</tr>
<td><code>fn</code></td>
<tr>
</tr>
<th>Birthday</th>
<tr>
<td><code>openid.sreg.dob</code></td>
<th>Birthday</th>
<td><code>birthDate</code></td>
<td><code>openid.sreg.dob</code></td>
<td><code>bday</code></td>
<td><code>birthDate</code></td>
</tr>
<td><code>bday</code></td>
<tr class="alt">
</tr>
<th>Gender</th>
<tr>
<td><code>openid.sreg.gender</code></td>
<th>Gender</th>
<td><code>gender</code></td>
<td><code>openid.sreg.gender</code></td>
<td><code>gender</code></td>
<td><code>gender</code></td>
</tr>
<td><code>gender</code></td>
<tr>
</tr>
<th>Email</th>
<tr>
<td><code>openid.sreg.email</code></td>
<th>Email</th>
<td><code>contact/email</code></td>
<td><code>openid.sreg.email</code></td>
<td><code>email</code></td>
<td><code>contact/email</code></td>
</tr>
<td><code>email</code></td>
<tr class="alt">
</tr>
<th>Postal Code</th>
<tr>
<td><code>openid.sreg.postcode</code></td>
<th>Postal Code</th>
<td><code>contact/postalCode/home</code></td>
<td><code>openid.sreg.postcode</code></td>
<td><code>postal-code</code></td>
<td><code>contact/postalCode/home</code></td>
</tr>
<td><code>postal-code</code></td>
<tr>
</tr>
<th>Country</th>
<tr>
<td><code>openid.sreg.country</code></td>
<th>Country</th>
<td><code>contact/country/home</code></td>
<td><code>openid.sreg.country</code></td>
<td><code>country-name</code></td>
<td><code>contact/country/home</code></td>
</tr>
<td><code>country-name</code></td>
<tr class="alt">
</tr>
<th>Language</th>
<tr>
<td><code>openid.sreg.language</code></td>
<th>Language</th>
<td><code>pref/language</code></td>
<td><code>openid.sreg.language</code></td>
<td>N/A</td>
<td><code>pref/language</code></td>
</tr>
<td>--</td>
<tr>
</tr>
<th>Timezone</th>
<tr>
<td><code>openid.sreg.timezone</code></td>
<th>Timezone</th>
<td><code>pref/timezone</code></td>
<td><code>openid.sreg.timezone</code></td>
<td><code>tz</code></td>
<td><code>pref/timezone</code></td>
</tr>
<td><code>tz</code></td>
<tr class="alt">
</tr>
<th>Photo</th>
</table>
<td>N/A</td>
 
<td><code>media/image/default</code></td>
<h2>Attribute Exchange Types to hCard</h2>
<td><code>photo</code></td>
 
</tr>
 
<tr>
<table style="border:1px solid #eee;" border="1" cellspacing="0" cellpadding="5">
<th>Company</th>
 
<td>N/A</td>
    <tr>
<td><code>company/name</code></td>
      <th>Label</th>
<td><code>org</code></td>
      <th>AX attribute</th>
</tr>
      <th>hCard attribute</th>
<tr class="alt">
    </tr>
<th>Biography</th>
 
<td>N/A</td>
    <tr>
<td><code>media/biography</code></td>
      <td colspan="3"><h3>Name</h3></td>
<td><code>note</code></td>
    </tr>
</tr>
    <tr>
<tr>
    <th>Alias/Username</th>
<th>URL</th>
      <td class="uri">[http://axschema.org/namePerson/friendly namePerson/friendly]</td>
<td>N/A</td>
      <td><code>nickname</code></td>
<td><code>contact/web/default</code></td>
    </tr>
<td><code>URL</code></td>
    <tr>
</tr>
      <th>Full name</th>
</tbody>
      <td class="uri">[http://axschema.org/namePerson namePerson]</td>
      <td><code>fn</code></td>
    </tr>
    <tr>
      <th>Name prefix</th>
      <td class="uri">[http://axschema.org/namePerson/prefix namePerson/prefix]</td>
      <td><code>honorific-prefix</code></td>
    </tr>
    <tr>
      <th>First name</th>
      <td class="uri">[http://axschema.org/namePerson/first namePerson/first]</td>
      <td><code>given-name</code></td>
    </tr>
    <tr>
      <th>Last name</th>
      <td class="uri">[http://axschema.org/namePerson/last namePerson/last]</td>
      <td><code>family-name</code></td>
    </tr>
    <tr>
      <th>Middle name</th>
      <td class="uri">[http://axschema.org/namePerson/middle namePerson/middle]</td>
      <td><code>additional-name</code></td>
    </tr>
    <tr>
      <th>Name suffix</th>
      <td class="uri">[http://axschema.org/namePerson/suffix namePerson/suffix]</td>
      <td><code>honorific-suffix</code></td>
    </tr>
    <tr>
        <td colspan="3"><h3>Work</h3></td>
    </tr>
    <tr>
      <th>Company name</th>
      <td class="uri">[http://axschema.org/company/name company/name]</td>
      <td><code>org</code></td>
    </tr>
    <tr>
      <th>Job title</th>
      <td class="uri">[http://axschema.org/company/title company/title]</td>
      <td><code>title</code> or <code>role</code></td>
    </tr>
    <tr>
        <td colspan="3"><h3>Date of Birth</h3></td>
    </tr>
    <tr>
      <th>Birth date</th>
      <td class="uri">[http://axschema.org/birthDate birthDate]</td>
      <td><code>bday</code></td>
    </tr>
    <tr>
      <th>Birth year</th>
      <td class="uri">[http://axschema.org/birthDate/birthYear birthDate/birthYear]</td>
      <td>--</td>
    </tr>
    <tr>
      <th>Birth month</th>
      <td class="uri">[http://axschema.org/birthDate/birthMonth birthDate/birthMonth]</td>
      <td>--</td>
    </tr>
    <tr>
      <th>Birth day</th>
      <td class="uri">[http://axschema.org/birthDate/birthday birthDate/birthday]</td>
      <td>--</td>
    </tr>
    <tr>
        <td colspan="3"><h3>Telephone</h3></td>
    </tr>
    <tr>
      <th>Phone (preferred)</th>
      <td class="uri">[http://axschema.org/contact/phone/default contact/phone/default]</td>
      <td><code>tel</code> (<code>&lt;span class="type"&gt;pref&lt;/span&gt;</code>)</td>
    </tr>
    <tr>
      <th>Phone (home)</th>
      <td class="uri">[http://axschema.org/contact/phone/home contact/phone/home]</td>
      <td><code>tel</code> (<code>&lt;span class="type"&gt;home&lt;/span&gt;</code>)</td>
    </tr>
    <tr>
      <th>Phone (work)</th>
      <td class="uri">[http://axschema.org/contact/phone/business contact/phone/business]</td>
      <td><code>tel</code> (<code>&lt;span class="type"&gt;work&lt;/span&gt;</code>)</td>
    </tr>
    <tr>
      <th>Phone (mobile)</th>
      <td class="uri">[http://axschema.org/contact/phone/cell contact/phone/cell]</td>
      <td><code>tel</code> (<code>&lt;span class="type"&gt;cell&lt;/span&gt;</code>)</td>
    </tr>
    <tr>
      <th>Phone (fax)</th>
      <td class="uri">[http://axschema.org/contact/phone/fax contact/phone/fax]</td>
      <td><code>tel</code> (<code>&lt;span class="type"&gt;fax&lt;/span&gt;</code>)</td>
    </tr>
    <tr>
        <td colspan="3"><h3>Address</h3></td>
    </tr>
    <tr>
      <th>Address</th>
      <td class="uri">[http://axschema.org/contact/postalAddress/home contact/postalAddress/home]</td>
      <td><code>adr.street-address</code></td>
    </tr>
    <tr>
      <th>Address 2</th>
      <td class="uri">[http://axschema.org/contact/postalAddressAdditional/home contact/postalAddressAdditional/home]</td>
      <td><code>adr.extended-address</code></td>
    </tr>
    <tr>
      <th>City</th>
      <td class="uri">[http://axschema.org/contact/city/home contact/city/home]</td>
      <td><code>adr.locality</code></td>
    </tr>
    <tr>
      <th>State/Province</th>
      <td class="uri">[http://axschema.org/contact/state/home contact/state/home]</td>
      <td><code>adr.region</code></td>
    </tr>
    <tr>
      <th>Country</th>
      <td class="uri">[http://axschema.org/contact/country/home contact/country/home]</td>
      <td><code>adr.country-name</code></td>
    </tr>
    <tr>
      <th>Postal code</th>
      <td class="uri">[http://axschema.org/contact/postalCode/home contact/postalCode/home]</td>
      <td><code>adr.postal-code</code></td>
    </tr>
    <tr>
        <td colspan="3">&nbsp;</td>
    </tr>
    <tr>
      <th>Address</th>
      <td class="uri">[http://axschema.org/contact/postalAddress/business contact/postalAddress/business]</td>
      <td><code>adr.label:type=work.street-address</code></td>
    </tr>
    <tr>
      <th>Address 2</th>
      <td class="uri">[http://axschema.org/contact/postalAddressAdditional/business contact/postalAddressAdditional/business]</td>
      <td><code>adr.label:type=work.extended-address</code></td>
    </tr>
    <tr>
      <th>City</th>
      <td class="uri">[http://axschema.org/contact/city/business contact/city/business]</td>
      <td><code>adr.label:type=work.locality</code></td>
    </tr>
    <tr>
      <th>State/Province</th>
      <td class="uri">[http://axschema.org/contact/state/business contact/state/business]</td>
      <td><code>adr.label:type=work.region</code></td>
    </tr>
    <tr>
      <th>Country</th>
      <td class="uri">[http://axschema.org/contact/country/business contact/country/business]</td>
      <td><code>adr.label:type=work.country-name</code></td>
    </tr>
    <tr>
      <th>Postal code</th>
      <td class="uri">[http://axschema.org/contact/postalCode/business contact/postalCode/business]</td>
      <td><code>adr.label:type=work.postal-code</code></td>
    </tr>
    <tr>
        <td colspan="3"><h3>Email</h3></td>
    </tr>
    <tr>
      <th>Email</th>
      <td class="uri">[http://axschema.org/contact/email contact/email]</td>
      <td><code>email</code></td>
    </tr>
    <tr>
        <td colspan="3"><h3>Instant Messaging</h3></td>
    </tr>
    <tr>
      <th>AOL IM</th>
      <td class="uri">[http://axschema.org/contact/IM/AIM contact/IM/AIM]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>ICQ IM</th>
      <td class="uri">[http://axschema.org/contact/IM/ICQ contact/IM/ICQ]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>MSN IM</th>
      <td class="uri">[http://axschema.org/contact/IM/MSN contact/IM/MSN]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>Yahoo! IM</th>
      <td class="uri">[http://axschema.org/contact/IM/Yahoo contact/IM/Yahoo]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>Jabber IM</th>
      <td class="uri">[http://axschema.org/contact/IM/Jabber contact/IM/Jabber]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>Skype IM</th>
      <td class="uri">[http://axschema.org/contact/IM/Skype contact/IM/Skype]</td>
      <td><code>url</code></td>
    </tr>       
    <tr>
      <td colspan="3"><h3>Web Sites</h3></td>
    </tr>
    <tr>
      <th>Web page</th>
      <td class="uri">[http://axschema.org/contact/web/default contact/web/default]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>Blog</th>
      <td class="uri">[http://axschema.org/contact/web/blog contact/web/blog]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>LinkedIn URL</th>
      <td class="uri">[http://axschema.org/contact/web/Linkedin contact/web/Linkedin]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>Amazon URL</th>
      <td class="uri">[http://axschema.org/contact/web/Amazon contact/web/Amazon]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>Flickr URL</th>
      <td class="uri">[http://axschema.org/contact/web/Flickr contact/web/Flickr]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <th>del.icio.us URL</th>
      <td class="uri">[http://axschema.org/contact/web/Delicious contact/web/Delicious]</td>
      <td><code>url</code></td>
    </tr>
    <tr>
      <td colspan="3"><h3>Audio/Video Greetings</h3></td>
    </tr>
    <tr>
      <th>Spoken name</th>
      <td class="uri">[http://axschema.org/media/spokenname media/spokenname]</td>
      <td><code>sound</code></td>
    </tr>
    <tr>
      <th>Audio greeting</th>
      <td class="uri">[http://axschema.org/media/greeting/audio media/greeting/audio]</td>
      <td>--</td>
    </tr>
    <tr>
      <th>Video greeting</th>
      <td class="uri">[http://axschema.org/media/greeting/video media/greeting/video]</td>
      <td>--</td>
    </tr>
    <tr>
        <td colspan="3"><h3>Images</h3></td>
    </tr>
    <tr>
      <th>Image</th>
      <td class="uri">[http://axschema.org/media/image/default media/image/default]</td>
<td><code>logo</code> or <code>photo</code></td>
    </tr>
    <tr>
      <th>Square image</th>
      <td class="uri">[http://axschema.org/media/image/aspect11 media/image/aspect11]</td>
      <td><code>logo</code> or <code>photo</code></td>
    </tr>
    <tr>
      <th>4:3 aspect image</th>
      <td class="uri">[http://axschema.org/media/image/aspect43 media/image/aspect43]</td>
      <td><code>logo</code> or <code>photo</code></td>
    </tr>
    <tr>
      <th>3:4 aspect image</th>
      <td class="uri">[http://axschema.org/media/image/aspect34 media/image/aspect34]</td>
      <td><code>logo</code> or <code>photo</code></td>
    </tr>
    <tr>
      <th>Favicon image</th>
      <td class="uri">[http://axschema.org/media/image/favicon media/image/favicon]</td>
      <td><code>logo</code> or <code>photo</code></td>
    </tr>
    <tr>
        <td colspan="3"><h3>Other Personal Details/Preferences</h3></td>
    </tr>
    <tr>
      <th>Gender</th>
      <td class="uri">[http://axschema.org/person/gender person/gender]</td>
      <td>[http://microformats.org/wiki/gender Note]</td>
    </tr>
    <tr>
      <th>Language</th>
      <td class="uri">[http://axschema.org/pref/language pref/language]</td>
      <td>--</td>
    </tr>
    <tr>
      <th>Time zone</th>
      <td class="uri">[http://axschema.org/pref/timezone pref/timezone]</td>
      <td><code>tz</code></td>
    </tr>
    <tr>
      <th>Biography</th>
      <td class="uri">[http://axschema.org/media/biography media/biography]</td>
      <td><code>note</code></td>
    </tr>
</table>
</table>

Latest revision as of 16:25, 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


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