profile-uris

From Microformats Wiki
Revision as of 10:17, 6 August 2009 by Tantek (talk | contribs) (create section/list of microformats.org URIs, move external profiles to experimental section, resolve a few issues, source instead of pre)
Jump to navigation Jump to search

Individual Microformats

adr
geo
hCard
http://microformats.org/profile/hcard
http://ufs.cc/x/hcard
hAtom
... in progress ...
hCalendar
http://microformats.org/profile/hcalendar
http://ufs.cc/x/hcalendar
hResume
... in progress ...
hReview
... in progress ...
rel-license
... in progress ...
rel-nofollow
... in progress ...
rel-tag
... in progress ...
vote-links
... in progress ...
XFN
http://gmpg.org/xfn/11
xFolk
... in progress ...
XMDP
http://gmpg.org/xmdp/1
XOXO
... in progress ...

How to link to a profile URI

HTML 4.x / XHTML 1.x

  <head profile="http://gmpg.org/xfn/11 http://microformats.org/profile/hcard">

(X)HTML 5 / XHTML 2

An alternative method is provided for people using markup languages which do not support <head profile>. Add rel="profile" to either a visible link (<a>) or hidden link (<link>).

Example:

<p>This page uses
<a rel="profile" href="http://gmpg.org/xfn/11">XFN 1.1</a>!</p>

Content Management Systems

For cms's there is:

Implementations

GRDDL

Tools that support GRDDL use profiles to parse microformats.

Cognition

In "strict mode", Cognition refuses to parse any microformats where the profile URI has not been explicitly declared on the page. (It will however, still parse microformats for which there exists no profile URI!)

Issues

When this section gets too big, move it to profile-uris-issues Some issues include:

Validator warning

Due to inconsistent wording of the HTML specs, HTMLTidy (and other tools?) give "Warning: <head> escaping malformed URI reference" when more than one profile is used, e.g.

<head profile="http://microformats.org/profile/hcard http://microformats.org/profile/hcalendar">

W3C HTML validator has very poor validation of attributes and is technically unable to check this case. The HTML DTD however defines profile attribute as %URI (it's an alias for CDATA), same as <a href> attribute.

Experimental URIs

The following includes URIs to external experimental XMDPs, and should only be used for testing purposes.

Experimental Combined Profile

The following URL covers all non-draft Microformats as of March 2008, except XMDP. You can mix and match it with other XMDP profiles for new/draft microformats.

http://purl.org/uF/2008/03/

Experimental Individual Microformats

adr
(Use an hCard profile.)
(Or use the combined profile.)
figure
http://purl.org/uF/figure/draft
geo
http://purl.org/uF/geo/0.9/
(Or use an hCard profile.)
(Or use the combined profile.)
hAtom
http://purl.org/uF/hAtom/0.1/
hAudio
http://purl.org/NET/haudio
http://purl.org/uF/hAudio/0.9/
hCalendar
http://purl.org/uF/hCalendar/1.0/
http://www.w3.org/2002/12/cal/hcal ¶†
http://dannyayers.com/microformats/hcalendar-profile
(Or use the combined profile.)
hCard
http://purl.org/uF/hCard/1.0/
http://www.w3.org/2006/03/hcard
(Or use the combined profile.)
hResume
http://microformats.org/wiki/hresume-profile
hReview
http://www.purl.org/stuff/rev#
rel-license
http://purl.org/uF/rel-license/1.0/
(Or use the combined profile.)
rel-nofollow
http://purl.org/uF/rel-nofollow/1.0/
(Or use the combined profile.)
rel-tag
http://purl.org/uF/rel-tag/1.0/
(Or use the combined profile.)
VoteLinks
http://purl.org/uF/VoteLinks/1.0/
http://tommorris.org/profiles/votelinks ¶†
(Or use the combined profile.)
XFN
http://gmpg.org/xfn/11
http://gmpg.org/xfn/1 (older version)
(Or use the combined profile.)
xFolk
http://microformats.org/wiki/xfolk-profile
XOXO
(Use the combined profile.)

† = GRDDL-enabled.
¶ = non-XMDP profile.

Other Interesting Profile URIs

See also