- From: Danny Ayers <danny.ayers@gmail.com>
 - Date: Fri, 10 Aug 2007 12:03:12 +0100
 - To: public-grddl-wg <public-grddl-wg@w3.org>
 
There may be a nice deployment in the pipeline, I'd appreciate another
eyeball or two on things (- should also make a little extra tutorial
material somewhere).
Metalink is an XML format for describing sets of downloadable files,
primarily for use by download managers. It's got a significant amount
of adoption, see:
http://www.metalinker.org/
(If this gets GRDDL-enabled ok, it could make a good inclusion for the
press release).
Pre-GRDDL, danbri started discussion with them (specifically Anthony
Bryan) about expressing the data in RDF, and provided code to do a
translation/mapping. Which is great, but would only work where
deployed, and the metalink XML can be produced/hosted by anyone.
Anthony recently contacted me re. GRDDL, and I've just done some XSLT
for it, links below.
The namespace URI is that of their homepage, which currently just has
an HTML representation. Seems like there are two nice ways of
GRDDL-enabling the format: RDF through conneg, tweaking the homepage
HTML. I'd appreciate an eyeball check on these:
In .htaccess, same dir as the homepage:
AddType application/rdf+xml .rdf
RewriteEngine On
RewriteRule ^index.html$ index.rdf
in index.rdf :
<rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:dataview="http://www.w3.org/2003/g/data-view#">
 <rdf:Description rdf:about="http://www.metalinker.org/">
   <dataview:namespaceTransformation
       rdf:resource="http://www.metalinker.org/metalink2rdfxml.xsl"/>
 </rdf:Description>
</rdf:RDF>
Or in the HTML:
<head profile="http://www.w3.org/2003/g/data-view#">
<link rel="namespaceTransformation"
href="http://www.metalinker.org/metalink2rdfxml.xsl" />
...
Here's the latest XSLT, some mapping notes in the top of it:
http://n2.talis.com/svn/playground/danja/metalink/metalink2rdfxml.xsl
There's a simple sample input/output (generated using metalink creator,
describing the XSLT):
http://n2.talis.com/svn/playground/danja/metalink/samples/generated.metalink
http://n2.talis.com/svn/playground/danja/metalink/samples/self.metalink.rdf
A more complete sample output is at:
http://n2.talis.com/svn/playground/danja/metalink/output.rdf
Cheers,
Danny.
-- 
http://dannyayers.com
Received on Friday, 10 August 2007 11:03:21 UTC