Re: GRDDL implementation in Raptor

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 UTC