W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > April 2005

Re: GRDDL implementation in Raptor

From: Dave Beckett <dave.beckett@bristol.ac.uk>
Date: Wed, 6 Apr 2005 16:53:07 +0100
To: Dominique HazaŽl-Massieux <dom@w3.org>
Cc: public-rdf-in-xhtml-tf@w3.org
Message-ID: <20050406165307.3cf354d2@hoth.ilrt.bris.ac.uk>

OK, I've made some more updates and got more tests working.

Working:

(CVS raptor command line)
rapper -i grddl -o rdfxml 'http://dev.w3.org/cvsweb/~checkout~/2005/grddl-ts/xhtmlWithGrddlProfile.html'

rapper -i grddl -o rdfxml 'http://dev.w3.org/cvsweb/~checkout~/2005/grddl-ts/xmlWithGrddlAttribute.xml'

rapper -i grddl -o rdfxml 'http://dev.w3.org/cvsweb/~checkout~/2005/grddl-ts/xhtmlWithGrddlTransformationInBody.html'


and on the web right now

http://librdf.org/parse?language=grddl&uri=http%3A%2F%2Fdev.w3.org%2Fcvsweb%2F%7Echeckout%7E%2F2005%2Fgrddl-ts%2FxhtmlWithGrddlProfile.html

http://librdf.org/parse?language=grddl&uri=http%3A%2F%2Fdev.w3.org%2Fcvsweb%2F%7Echeckout%7E%2F2005%2Fgrddl-ts%2FxmlWithGrddlAttribute.xml

http://librdf.org/parse?language=grddl&uri=http%3A%2F%2Fdev.w3.org%2Fcvsweb%2F%7Echeckout%7E%2F2005%2Fgrddl-ts%2FxhtmlWithGrddlTransformationInBody.html


Fails:

rapper -i grddl -o rdfxml 'http://dev.w3.org/cvsweb/~checkout~/2005/grddl-ts/xhtmlWithGrddlEnabledProfile.html'

I'm not sure about this profile.


Here are the XPaths I'm now using and I can easily add more.

1. XHTML document where the GRDDL profile is in
  <link ref='transform'>  inside the html <head>

/html:html/html:head[contains(@profile,"http://www.w3.org/2003/g/data-view")]/html:link[@rel="transformation"]/@href


2. XHTML document where the GRDDL profile is in
  <a rel='transform' href='url'> inside the html <body>

/html:html/html:head[contains(@profile,"http://www.w3.org/2003/g/data-view")]/../..//html:a[@rel="transformation"]/@href

3. XML document linking to transform via attribute dataview:transformation */

//@dataview:transformation


xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:dataview="http://www.w3.org/2003/g/data-view#"

Dave
Received on Wednesday, 6 April 2005 15:53:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:59 GMT