Transmorpher samples

Transmorpher home
White paper
Manual
Download
Gforge
License
DTD
Developper docs
Samples
CVS image

The two first example are more described in the reference manual. Some of them might require adds-on.

Music example

This is a simple general purpose example which uses: merge, ruleset, serialisation, generation, xslt, query.

It starts with the stylesheet process.xml on several files Music-collection.xml and No_Doubt-cal.xml.

It can be run by:

$ cd samples
$ java -jar ../lib/transmo.jar music/process.xml
or
$ java -jar ../lib/transmo.jar file:music/process.xml

It generates:

  • A Html presentation of discography data, with time info stripped and links to possible concert scedule (Music-collection.html);
  • A Html presentation of concert schedule linked to discographic information (artist.html) ;
  • A vCalendar presentation of the concert schedule for inclusion in a calendar application (artist.vcs);

Bibliographic example

This is a general purpose example which uses: merge, ruleset, serialisation, generation, xslt. It is also use in the servlet generation example. Recursion on a directory and parameters is to come.

It starts with the stylesheet process.xml on several bibliographic files JE.xml and bibexmo.xml.

It can be run by:

$ cd samples
$ java -jar ../lib/transmo.jar biblio/process.xml

It generates (much more is generated so far):

  • A HTML file of selected entries (without abstracts) biblio_tb.html with refererences to all the following files
  • An XML file of all the entries rendered in HTML biblio-xml.html
  • A HTML file of selected entries (with abstracts) biblio_tb.html
  • A BibTex file of all the entries biblio.bib
  • ;
  • A HTML file of all the entries (without abstracts) biblio.html

Church integer encoding

This is an example for testing iteration.

It processes various operations (PLUS and MULT) on the Alonzo Church encoding of integers (i.e., an integer is either <Z/> or <S>an integer </S>: Z is zero, S is successor). This encoding is described in church/input/church.dtd

The file compute.xsl contains the rules for reducing addition and multiplication. The transformation process.xml takes two XML files representing integers as input, merges them within a multiplication and iterates the compute.xsl stylesheet until closure.

It can be run by:

$ java -jar ../lib/transmo.jar church/process.xml

It starts with the sample.xml asking for the addition of number 2 and 3 and returns a file containing the Church encoding of number 6.

Conference program generation

Not available.

This example is comparable to the bibliographic example. It takes advantage of external transformations of vCal objects

Knowledge representation transformations

Not available.

This example manipulates "ontologies" expressed in various knowledge representation formalisms, merge them and translate them in other formalisms and in LaTeX.

Performances

Not available.

This test takes bibliographic files of various size and run a transformation with various modalities (especially changing parser and enabling multi-threadinf).

INRIA Rhône-Alpes Fluxmedia

Partners

Transmorpher is a joint development of the Exmo action of INRIA Rhône-Alpes and Fluxmedia.


http://transmorpher.gforge.inria.fr/samples/

Feel free to comment to Jerome:Euzenat#inrialpes:fr, $Id: index.html,v 1.17 2007/03/10 17:56:05 euzenat Exp $