FOAF has classes and properties that can be used to relate a person to an online account that they have with a given service.

Many services provide their users with bookmarklets that allow them to interact with their functionality. And increasingly these services are RESTful, meaning the URLs typically include the users account name.

Many people write additional, improved bookmarklets that supplement or extend the basic functionality of these services, sometimes in conjunction with other services. It's often difficult to track all these extra facilities.

Wouldn't it be nice if one could use a browser extension that serves you with all the latest bookmarklets for your services, without your having to track them all down?

Implementation Notes

Craft an RDF document to describe the bookmarklets.

Write some code to process a FOAF description, containing OnlineAccount information, merging that with the above to generate usable Javascript.

Output these links as an RSS feed, so that they can be subscribed to using the Firefox Live Bookmark facility. Firefox doesn't allow this, presumably because of potential security breaches

Output these links as a bookmarks file so they can be easily imported into Firefox.

Describing the Bookmarklets


  <rdf:Description rdf:about="">
     <js:hasBookmark rdf:nodeID="#del-popup"/>
     <js:hasBookmark rdf:nodeID="#expt"/>

  <js:Bookmarklet rdf:nodeID="#del-popup">
     <rdf:label>Popup Post to<rdf:label>

  <js:Bookmark rdf:nodeID="#expt">


Generating the bookmarks is just a matter of merging this file with the users FOAF description. The accountServiceHomepage property will link the user's OnlineAccount to the bookmarklet data. The code need only replace occurences of $accountName in the bookmark(let) data to generate the working Javascript code.

The value of the js:url and js:code properties will obviously need XML escaping.

As a nicety the service should sort the bookmark(let)s by the dc:title of the service name.

Add new attachment

In order to upload a new attachment to this page, please use the following box to find the file, then click on “Upload”.
« This page (revision-1) was last changed on 17-Jun-2005 04:58 by unknown [RSS]
G’day (anonymous guest) My Prefs

Referenced by

JSPWiki v2.6.0 [RSS]