- From: Ben Adida <ben@mit.edu>
- Date: Sun, 08 Oct 2006 20:11:38 -0400
- 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: http://www.w3.org/2001/sw/BestPractices/HTML/rdfa-bookmarklet/ 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: http://www.w3.org/2001/sw/BestPractices/HTML/rdfa-bookmarklet/2006-10-08/xhtml1-hgrddl.js Note that there is another hGRDDL profile that I coded up a while ago for the hCal microformat: http://www.w3.org/2001/sw/BestPractices/HTML/rdfa-bookmarklet/2006-10-08/hcal-rdfa.js 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. -Ben 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