these are aaronland.infoxsl tools

wn-find-class

This stylesheet defines a single public template which attempts to determine a matching Wordnet RDF Class for a phrase.

The current version of the wn-find-class stylesheet is 0.1.

released July 15, 2003

source

www.aaronland.info/xsl/wordnet/wn-find-class/wn-find-class-0.1.tar.gz

example: test.xml

<foo>
 <bar>cream cheese</bar>
</foo>
   

example: test.xsl

<xsl:include href = "/path/to/wn-find-class.xsl" />

<xsl:template match = "bar">
 <results>
  <uri>
  <xsl:call-template name = "wn-find-class">
   <xsl:with-param name = "phrase" select = "." />
  </xsl:call-template>
  </uri>
 </results>
</xsl:template>
   

example: munge munge munge

# Can't get this to work with xsltproc. Dunno

$>javavm -jar /path/to/saxon.jar \
  ~/tmp/test.xml ~/tmp/test.xsl

<?xml version="1.0" encoding="utf-8"?>
<results>
  <uri>http://xmlns.com/wordnet/1.6/Cream_cheese</uri>
</results>
   

notes

This stylesheet relies on the expiremental Wordnet for the Web service which cautions that it should not be relied on for production grade work.

license

Copyright © 2003 Aaron Straup Cope. All Rights Reserved.

Permission to use, copy, modify and distribute this stylesheet and its acompanying documentation for any purpose and without fee is hereby granted in perpetuity, provided that the above copyright notice and this paragraph appear in all copies. The copyright holders make no representation about the suitability of the stylesheet for any purpose.

It is provided "as is" without expressed or implied warranty.