xhtml-as-rdf

Just out of curiosity, has anyone played with expressing plain (X)HTML
docs in RDF? Might it be useful for anything - annotations?, editor
building? Stuff maybe like:

<body>
   <p>some text</p>
</body>

=>

xhtml:body x:hasChild _:p1 .
_:p1 rdf:type xhtml:p .
_:p1 rdf:value "some text" .
 
I don't know if there's any best practice/convention for fairly
arbitary tree containership. Combined with a Collection to preserve
doc order?  Presumably attributes would have to get
namespace-qualified equivalents.

Or would this just be a clunky version of what XPath/XPointer already offers?

(I've not really been following the XHTML 2.0 developments, maybe
that's generally more amenable to RDFization).

Cheers,
Danny.

-- 

http://dannyayers.com

Received on Wednesday, 1 June 2005 11:30:05 UTC