|
|
Line 43: |
Line 43: |
| # using title attribute for the tagged link <a> element, if it exists, as the entry title, otherwise using the element value, | | # using title attribute for the tagged link <a> element, if it exists, as the entry title, otherwise using the element value, |
| # using [[reltag|RelTag]] for the tags, and | | # using [[reltag|RelTag]] for the tags, and |
| # using a container element of class <code>description</code>, such as <p>, for any extended description or summary. | | # using a container element of class <code>description</code>, such as |
| | |
| A given xFolk entry will always contain a tagged link including a title with all other elements optional. Entries may have more than one tag as well as more than one element of class <code>description</code>. Multiple elements of class <code>description</code> are ordered by default document order. Semantic elements within xFolk entries may be nested at arbitray depths.
| |
| | |
| Many social bookmarking systems exist, each with its own markup conventions. Further, many people are already publishing personal link blogs. xFolk is designed with ease of adapting to these current practices as a primary goal. Therefore, few assumptions are made as to the exact kinds of elements used for an xFolk entry. Rather, the work of defining semantics is left entirely to the class and rel (in the case of [[reltag]]) attribute values.
| |
| | |
| It is expected that developers will use [http://www.w3.org/TR/xpath XPath] or equivalent syntax in accessing xFolk entry elements. a requirement for XPath is that the (X)HTML document be well-formed but not necessarily valid. Thus, while undesirable, it is possible to serviceably use xFolk in an (X)HTML document that does not validate.
| |
| | |
| === XMDP Profile ===
| |
| | |
| See the [[xfolk-profile|xFolk profile]] for the [http://gmpg.org/xmdp XMDP] profile of xFolk.
| |
| | |
| == Example ==
| |
| Here is a sample bookmark as displayed in [http://del.icio.us del.icio.us]'s standard markup. Lines where the value of elements' class attributes must change to conform to xFolk are marked with a comment at the end.
| |
| <pre><div class="post"> <!--will change-->
| |
| <div>
| |
| <a class="delLink" href="http://www.sifry.com/alerts/archives/000306.html"> <!--will change-->
| |
| Sifry's Alerts: Technorati launches Related Tags
| |
| </a>
| |
| </div>
| |
| <div class="extended"> <!--will change-->
| |
| Ever wanted to see what posts are related to other posts, what tags
| |
| are related to others? Now you can! Just check under the Tag
| |
| description on most tag pages, like this one, or this one, and you'll
| |
| see the patterns. Can you smell the emergence?
| |
| </div>
| |
| <div class="meta">
| |
| to
| |
| <a class="delNav" href="/fpgibson/folksonomy">folksonomy</a> <!--will change-->
| |
| <a class="delNav" href="/fpgibson/technorati">technorati</a> <!--will change-->
| |
| ... <a class="delNav" href="/url/cbcabf7de070fdb46598ee679367be49">
| |
| and 1 other person
| |
| </a>
| |
| ... on 2005-04-09
| |
| </div>
| |
| </div></pre>
| |
| | |
| The equivalent in xFolk is as follows. Comments are placed at the end of lines where class attribute changes were required.
| |
| <pre><nowiki>
| |
| <div class="xfolkentry"> <!-- changed -->
| |
| <div>
| |
| <a class="taggedlink" href="http://www.sifry.com/alerts/archives/000306.html"> <!-- changed -->
| |
| Sifry's Alerts: Technorati launches Related Tags
| |
| </a>
| |
| </div>
| |
| <div class="description"> <!-- changed -->
| |
| Ever wanted to see what posts are related to other posts, what tags
| |
| are related to others? Now you can! Just check under the Tag
| |
| description on most tag pages, like this one, or this one, and you'll
| |
| see the patterns. Can you smell the emergence?
| |
| </div>
| |
| <div class="meta">
| |
| to
| |
| <a rel="tag" href="/fpgibson/folksonomy">folksonomy</a> <!-- changed -->
| |
| <a rel="tag" href="/fpgibson/technorati">technorati</a> <!-- changed -->
| |
| ... <a class="delNav" href="/url/cbcabf7de070fdb46598ee679367be49">
| |
| and 1 other person
| |
| </a>
| |
| ... on 2005-04-09
| |
| </div>
| |
| </div>
| |
| </nowiki></pre>
| |
| | |
| Converting markup to be conformant with xFolk is almost always this easy. The advantage of xFolk is that it provides one set of class attributes that can be reused across all services and link blogs, almost always with no loss of granularity. The next section presents several more examples to illustrate this point.
| |
| | |
| == Many more examples ==
| |
| | |
| We have numerous examples to help developers incorporate xFolk into their sites.
| |
| | |
| === In the wild ===
| |
| | |
| These are real live examples of functioning systems that publish bookmarks in xFolk. These are a great place to start for anyone looking for examples "in the wild" to try parsing, indexing, organizing etc. If you publish using xFolk, feel free to add it to the top of this list. Once the list grows too big, we'll make a separate wiki page.
| |
| | |
| * [http://waferbaby.com/hussy waferbaby's Hussy] currently publishes links using xFolk.
| |
| * [http://smarking.com/ Smarking] currently publishes all shared links (including search results) using xFolk.
| |
| * [http://unalog.com unalog] currently publishes all shared links (including search results) using xFolk.
| |
| * [http://de.lirio.us de.lirio.us] currently publishes its bookmarks using xFolk (with the deprecated class attribute <code>extended</code> in place of <code>description</code>, see [[xfolk-profile | the XMDP]]).
| |
| * [http://dev.blogmarks.net/wiki/BlogSync blogmarks] currently exports bookmarks to blogs in xFolk (scroll down to the export example on the page; the deprecated class attribute <code>extended</code> is used in place of <code>description</code>, see [[xfolk-profile | the XMDP]]).
| |
| * [http://thecommunityengine.com The Community Engine] uses xFolk (with the deprecated class attribute <code>extended</code> in place of <code>description</code>, see [[xfolk-profile | the XMDP]]) for its [http://thecommunityengine.com/home main entries] and for its [http://thecommunityengine.com/webcites republished bookmarks].
| |
| * [http://groovymother.com/links/ Groovy Links] is a link blog which is marked up with xFolk.
| |
| | |
| === Additional social bookmarking services ===
| |
| | |
| This example illustrates how xFolk may be applied to one additional service:
| |
| | |
| * [[xfolk-scuttle | scuttle]]
| |
| | |
| === Link blogs ===
| |
| | |
| Social bookmarking services are only the most recent examples of people publishing links. Link blogs have been around almost since the beginning of blogging. They represent somewhat more of a challenge for xFolk because their markup tends to be less semantic from the outset. The following examples illustrate some particular challenges and how they can be overcome.
| |
| | |
| * [[xfolk-kottke | kottke]]
| |
| * [[xfolk-pollas | pollas]]
| |
| * [[xfolk-jacobian | jacobian]]
| |
| * [[xfolk-julian-bez | julian-bez]]
| |
| | |
| == Implementations ==
| |
| | |
| The following implementations have been developed which generate or use xFolk. If you have an xFolk 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.
| |
| | |
| * [http://buzka.com Buzka], a social bookmarking service, now supports xFolk
| |
| * [http://blip.tv Blip.tv], a video hosting site, now [http://blog.blip.tv/blog/2006/08/19/blip-supports-xfolk/ supports xFolk].
| |
| * [http://www.s9y.org/ Serendipity], a PHP-powered, flexible Blogging/CMS application, now has a [http://www.numblog.de/archives/241-Social-Bookmarks-Plugin-for-Serendipity.html social bookmarks plugin] that supports xFolk.
| |
| * [http://claimid.com claimID] has implemented xFolk for people's links.
| |
| * [http://ma.gnolia.com ma.gnolia] now supports xFolk.
| |
| * [http://smarking.com/ Smarking.com] (a social bookmarking service) marks up their tagged links with xFolk! Hat tip: [http://3spots.blogspot.com/2006/05/social-bookmarking-smarking.html 3spots: Social + bookMARKING = Smarking] which itself is an [[hreview|hReview]].
| |
| * [http://blog.codeeg.com/2006/03/20/flock-tails-flocktails/ Flocktails] - port of Tails extension for Flock 0.5.12 that looks for hCards, hCalendar, xFolk and hReview and tosses them into a handy topbar
| |
| * [http://blog.codeeg.com/tails-firefox-extension/ Tails is a Firefox Extension] that will display the presence of microformats ([[hcard|hCard]], [[hcalendar|hCalendar]], [[hreview|hReview]], [[xfolk|xFolk]]) on a webpage.
| |
| * Bud Gibson and Mike Migurski [http://thecommunityengine.com/home/archives/2005/09/vegomatic_an_al.html have written] [http://thecommunityengine.com/veg-o-matic veg-o-matic], an xFolk reblogging tool and service.
| |
| * [http://inside.glnetworks.de/ Martin Rehfeld] has updated the work of [http://blogmatrix.blogmatrix.com/ David Janes] and produced a [[Greasemonkey]] [http://inside.glnetworks.de/2006/06/05/microformats-have-arrived-in-firefox-15-greasemonkey-06/ script] that finds many microformat elements, including xFolk and [http://blog.davidjanes.com/mtarchives/2005_08.html#003379 provides a popup menu of actions]. ''This will work with FireFox 1.5+/GreaseMonkey 0.6.4+ now.''
| |
| * [http://www.midgard-project.org/midcom-permalink-6416db7e1f0e297b4cf3dcc285702a8d net.nemein.bookmarks], the bookmark manager in [http://www.midgard-project.org/ Midgard CMS] uses xFolk as the native output format, with added <code>abbr class=posted</code> for publication date and <code>abbr class=poster</code> for user who added the bookmark. See [http://bergie.iki.fi/links/ example]
| |
| * [http://de.lirio.us de.lirio.us] currently publishes its bookmarks using xFolk 0.4 (the class attribute <code>extended</code> is used in place of description).
| |
| * [http://dev.blogmarks.net/wiki/BlogSync blogmarks] currently exports bookmarks to blogs in xFolk 0.4 (scroll down to the export example on the page; the class attribute <code>extended</code> is used in place of <code>description</code>).
| |
| * [http://pokkari.com/microformat/javadoc/ Sivitols] is a Java library for microformats. Currently only the xFolk RC1 standard is implemented, but additional microformat support is planned. (adapted from [http://blog.blip.tv/blog/microformats/])
| |
| | |
| == References ==
| |
| === Normative References ===
| |
| * [http://www.w3.org/TR/2002/REC-xhtml1-20020801/ XHTML 1.0 SE]
| |
| * [[rel-tag]]
| |
| | |
| === Informative References ===
| |
| * [http://thecommunityengine.com/home/archives/xfolk articles about xFolk]
| |
| * [http://thecommunityengine.com/home/archives/tags/microformats articles about the business value of microformats]
| |
| * [http://gataga.com gataga social bookmark search engine]
| |
| * [http://johnvey.com/features/deliciousdirector/ an ajax based interface for del.icio.us]
| |
| * [http://en.wikipedia.org/wiki/Social_bookmarking social bookmarking defined at wikipedia]
| |
| | |
| === Similar Work ===
| |
| * [[hreview | hReview]]
| |
| | |
| == Work in progress ==
| |
| Although this specification has recently begun to stabilize as indicated by the version RC1, it is still a work in progress. If warranted, I am prepared to go through multiple release candidates to achieve the narrow purpose of making bookmark entries more genrally accessible with as with as light weight a format as possible. All changes since the last iteration have been motivated by the implementation experience of developers attempting to achieve this narrow aim. Further changes will also most likely be motivated by implementation concerns. See "future directions" below for additional microformat possibilities.
| |
| | |
| === Changes since xFolk 0.4 ===
| |
| The class attribute value <code>extended</code> was deprecated in favor <code>description</code> to better conform with other microformat usage and some requests during implementation. The other change has been to allow use of multiple elements of class <code>extended</code> based on some use cases discovered in implementation.
| |
| | |
| === Future directions ===
| |
| There are several extensions one might imagine for xFolk. Frequently, these extensions are best achieved by combining xFolk with another microformat. For instance, one might want to indicate his or her evaluation of the bookmarked item. This might be achieved by using [[vote-links | Vote Links]] or [[hreview | hReview]] with xFolk.
| |
| | |
| One can also imagine extending xFolk to provide data conformant with various social bookmarking service APIs, for instance to provide all bookmarks by tag. These APIs are currently too fluid for specification in any kind of standard. The APIs and the functionality they provide represent one way social bookmarking services and meta services can differentiate themselves.
| |
| | |
| A companion format called "xFolk definition" is under development. xFolk definition will provide a means of explicitly defining the tags used in social bookmarks.
| |
| | |
| === Brainstorming ===
| |
| * [[xfolk-brainstorming|xFolk brainstorming]]
| |
| | |
| == Discussions ==
| |
| | |
| === Q&A ===
| |
| * If you have any questions about xFolk, check the [[xfolk-faq|xFolk FAQ]], and if you don't find answers, add your questions!
| |
| | |
| === Issues ===
| |
| * Please add any issues with the specification to the separate [[xfolk-issues | xFolk issues]] document.
| |