profile-uris: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
(: fix definition list)
Line 19: Line 19:


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

Revision as of 16:56, 17 November 2008

<entry-title>Profile URIs</entry-title>

Introduction

In hCalendar issues, it is ACCEPTED that each microformat should have a profile URI, like the XFN profile.

Known URIs

This section lists known profile URIs for microformats. To promote cacheability and recognisability of profile URIs, authors SHOULD avoid minting new URIs for existing microformats, and SHOULD re-use existing well-known profile URIs.

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/

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
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

How to link to a profile URI

<head profile>

This is the original method of linking to profile URIs and is currently supported by the greatest number of tools. This is valid in HTML 4 and XHTML 1.x, but is not valid in Atom (as Atom has no <head> element) or current drafts of HTML 5 and XHTML 2.

Example:

<html>
  <head profile="http://example.com/profile1 http://example.net/profile2">
    ...

rel="profile"

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>

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

Some issues include:

  • what domain to use? Candidates include:
    • microformats.org
    • www.w3.org
    • xmdp.org
  • what about versioning? How to keep in sync with the wiki and test materials?
  • what profile URI to use for combinations, such as hCard 1.0 and hCalendar 1.0?
    • note HTML4.01 states "that one or more meta data profiles, [are] separated by white space"; though it's simpler for authors if they can just use one profile URI.
  • More profiles are needed.

One proposal is: use www.w3.org, following W3C namespace policy. As to versioning, change the profile whenever the wiki changes (within some reasonable latency, say, a couple weeks or a month). For example: an hCard Profile at w3.org, and discussion: an hCard profile that seems to work with GRDDL.

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://www.ietf.org/rfc/rfc2731.txt http://www.w3.org/2006/03/hcard">

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.

See also