W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > October 2006

new bookmarklets (not stable yet) with hGRDDL for XHTML1 support

From: Ben Adida <ben@mit.edu>
Date: Sun, 08 Oct 2006 20:11:38 -0400
Message-ID: <452993BA.9010507@mit.edu>
To: RDFa <public-rdf-in-xhtml-tf@w3.org>

Hi team,

I've coded up the CLASS and REL rules of XHTML1 in a Javascript HGRDDL
transform. I've created a new version of the bookmarklets, which you can
access at:


and then click on the link "go ahead" in the paragraph that describes
that new bookmarklets are under development. The new bookmarklets are
dated 2006-10-08.

These new bookmarklets all use the new RDFa parser, which defaults all
CURIEs to the current base URI and implements the hGRDDL transform for
CLASS and REL=home,next,prev (other special RELs coming soon). This new
parser also includes a few changes suggested and coded by Nathan Yergler
from Creative Commons:

- if a namespace doesn't end in a # or /, append a '#' for now.
- RDFA.reset() is new, in case you want to reset the triples for parsing
a new document.
- RDFA.parse() now takes a single optional argument, the document to
parse, defaulting to the current 'document' if there is no argument
(current behavior.)

The RDFa parser loads up the following hGRDDL profile:

Note that there is another hGRDDL profile that I coded up a while ago
for the hCal microformat:

Though, of course, this latter profile is not invoked by default, only
when you're specifically looking for hCal. Assuming that the GRDDL WG
defines a way to do this, one hopes that we can eventually use the
profile URI to perform this hGRDDL transform.


PS: I also fixed a bug in the 2006-05-22 version of the bookmarklets,
which weren't fully portable to your local web server (bug in my code
from earlier today). They are working now, tested by unplugging my
network :)
Received on Monday, 9 October 2006 00:11:43 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:21 UTC