[uf-new] hTurtle: A GRDDL-Compatible Microformat for Turtle-in-HTML

Sean B. Palmer sean at miscoranda.com
Sun Nov 4 02:35:11 PST 2007


HTML wasn't really meant for writing RDF, and it's easy to get sick of
yet another @class-based microformat. For that reason I've made
hTurtle, which lets you embed Turtle in HTML comments.

http://inamidst.com/sw/hturtle/
- The hTurtle Microformat

A quick example from the page itself:

<head profile="http://www.w3.org/2003/g/data-view">
<link rel="transformation" href="inamidst.com/sw/hturtle/" /> [...]
<h1>The hTurtle Microformat</h1>
<!--{ <> dc:title "The hTurtle Microformat" . }-->

Note that the link/@href is indeed a relative URI, to a service which
converts an hTurtle document using a CGI into an XSLT stylesheet that
transforms the hTurtle into RDF/XML.

"But wait!", you say. "Does this mean that you had to implement a
Turtle parser in XSLT?". Of course not. The CGI does the heavy
lifting, being, as Chimezie Ogbuji put it, a "transformation
generating service that's the function of the GRDDL source document".
Put an hTurtle document's URI in, and get the appropriate GRDDL XSLT
1.0 transform out. It's a way of bootstrapping non-XSLT conversion
services into the XSLT-only GRDDL circle of love.

Anyway, the documentation and source code explains this quite
thoroughly. Have at, and enjoy!

-- 
Sean B. Palmer, http://inamidst.com/sbp/


More information about the microformats-new mailing list