XMDP to RDFS transformation for GRDDL

XMDP is the usual method for defining vocabularies used in  
microformats. Essentially they're just <dl class="profile"> with each  
term defined as a <dt>, <dd> pair. An example is here:

	http://purl.org/uF/2008/03/

I've put together an XSLT 1.0 transformation which converts these to  
RDF schemas. Because XMDP is pretty much just human-readable  
descriptions, the schemas can't be very detailed - they don't include  
ranges or domains for instance.

The XSLT file is available here:

	http://buzzword.org.uk/2008/xmdp2rdfs.xslt

And, at a versioned URI in case you need to refer to a specific version:

	http://buzzword.org.uk/2008/xmdp2rdfs-20081025.xslt

Features:

* Can cope with multiple definitions for a single term (i.e. <dt/><dd/ 
 ><dd/>).
* Definitions can reference additional information using rel="help".
* <dt class="Property" /> can be used to hint that the term is a  
rdf:Property.
* <dt class="Class" /> can be used to hint that the term is a  
rdfs:Class.
* <title/> becomes the vocabulary's dc:title.

Anyone have any ideas for improvements?

-- 
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>

Received on Sunday, 26 October 2008 20:33:30 UTC