W3C home > Mailing lists > Public > semantic-web@w3.org > October 2008

XMDP to RDFS transformation for GRDDL

From: Toby A Inkster <tai@g5n.co.uk>
Date: Sun, 26 Oct 2008 20:32:20 +0000
Message-Id: <D1644C45-4A71-4165-9271-CD3EF087233D@g5n.co.uk>
To: Semantic Web <semantic-web@w3.org>

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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 21:45:25 GMT