hGRDDL

This page hosts the prototype implementation of hGRDDL, as associated with a submission to the Journal of Web Semantics's Special Issue on Web 2.0. All code is authored by Ben Adida and licensed under the GPL, version 2.


Step 0: A Browser with User-Script Support

Firefox and GreaseMonkey, or
Safari3 and CreamMonkey, or
Opera 8 or higher.


Step 1: Get the RDFa Bookmarklet

DRAG this link to your BOOKMARKS BAR: GetRDFaTriples

hGRDDL doesn't do anything that's immediately visible in a browser.
The bookmarklet reveals the underlying RDFa triples.


Step 2: Install the User Script

Here it is: hgrddl-gm.user.js

In Safari and Firefox, you should be prompted to install the script, and then you're all set.
In Opera, you have to save the file to some directory, go to your JavaScript preferences and designate that directory as your JavaScript user extensions.


Step 3: Visit a page with hCal or hCard

You'll have to use the sample ones here with the proper profile: hcard-test or hcal-test.

hCard and hCal in the wild don't have a profile URI,
and, if they did, the hGRDDL transformation is not included there (yet).

A more promiscuous hGRDDL processor could just apply all known microformat transforms, though we have not implemented this.


Step 4: Click on your GetRDFaTriples bookmark

You should see the triples.

Try turning off user scripts and notice the triples won't be there when you reload the page.
You can also view the source and notice that there's no RDFa.


Step 5: Additional Details

Check out the hcard-profile and hcal-profile.

Check out the hcard-rdfa transform and the hcal-rdfa transform, both in JavaScript.