- From: Christoph LANGE <ch.lange@jacobs-university.de>
- Date: Mon, 14 Jul 2008 16:05:08 +0100
- To: Dan Brickley <danbri@danbri.org>
- Cc: semantic-web@w3.org
- Message-Id: <200807141605.11226.ch.lange@jacobs-university.de>
Hi Dan,
sorry for replying late.
On Friday 11 July 2008 02:05:57 Dan Brickley wrote:
> Christoph LANGE wrote:
> > there is a new version (0.2) of Krextor at
>
> Sounds interesting. Could you say a bit about how it relates to GRDDL?
Krextor does not (yet?) implement any of the GRDDL specs, but as it
facilitates the implementation of XSLTs for XML->RDF extraction, I hope it
will also be useful in GRDDL scenarios.
On the GRDDL list I gave the following example for a FOAF-like markup:
<person knows="URI-of-person">
<name>Bart Simpson</name>
</person>
Here is the Krextor XSLT snippet handling that:
<xsl:template match="person">
<xsl:call-template name="create-resource">
<xsl:with-param name="type" select="'&foaf;Person'"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="person/@knows">
<xsl:call-template name="add-uri-property">
<xsl:with-param name="property" select="'&foaf;knows'"/>
</xsl:call-template>
</xsl:template>
<xsl:template match="person/name">
<xsl:call-template name="add-literal-property">
<xsl:with-param name="property" select="'&foaf;name'"/>
</xsl:call-template>
</xsl:template>
I.e. for simple markup/annotation/microformats you can specify a
straightforward, mostly declarative mapping, without doing "algorithmic" XSLT.
> Also btw the README in
> http://kwarc.info/projects/krextor/documentation.html is 404
Thanks, I've fixed that. Works now.
Cheers,
Christoph
--
Christoph Lange, DERI Galway/Jacobs Univ. Bremen, http://kwarc.info/clange
Received on Monday, 14 July 2008 15:05:43 UTC