All Peregrine libraries can be fetched as Maven modules. The [http://maven.apache.org/guides/getting-started/index.html Maven Getting Started Guide] provides a good introduction to Maven. Here you can find a [wiki:"sample property configuration file"] and a [wiki:"sample client code using the Maven artifacts"]. [Freek: the page with the sample property configuration file mentions the Spring configuration file. Is Spring needed for this example or is Maven sufficient?] == Building the Peregrine modules == All Peregrine modules can be build locally by checking out and building the projects. This is a three step process. 1. Checkout the source code {{{ svn checkout https://trac.nbic.nl/svn/data-mining/trunk peregrine }}} 2. Build the third-party modules {{{ cd peregrine/3rd-party/lvg mvn clean install }}} 3. Build Peregrine {{{ cd ../../data-mining/ mvn clean install }}} From version 1.3 onwards Peregrine stable artifacts will be published in maven central. == `pom.xml` configuration == Insert the following dependencies into your project pom.xml to use Peregrine. {{{ org.erasmusmc.data-mining.peregrine peregrine-api 1.1-SNAPSHOT org.erasmusmc.data-mining.ontology ontology-api 1.1-SNAPSHOT org.erasmusmc.data-mining.peregrine peregrine-normalizer 1.1-SNAPSHOT runtime org.erasmusmc.data-mining.peregrine peregrine-tokenizer 1.1-SNAPSHOT runtime org.erasmusmc.data-mining.peregrine peregrine-disambiguator 1.1-SNAPSHOT runtime org.erasmusmc.data-mining.peregrine peregrine-impl-hash 1.1-SNAPSHOT runtime org.erasmusmc.data-mining.ontology ontology-impl-db 1.1-SNAPSHOT runtime org.erasmusmc.data-mining.ontology ontology-impl-file 1.1-SNAPSHOT runtime org.erasmusmc.data-mining.ontology ontology-impl-cache 1.1-SNAPSHOT runtime }}} == Spring configuration == Peregrine is developed, based on the [http://www.springsource.org/ spring application framework]. Hence it is easy to incorporate with your new / existing spring applications.[[BR]] Here is an example spring configuration snippet to incorporate peregrine running with a single file ontology into your spring project. {{{ }}} == Notes == * lvg normalizer is packaged as a Maven artifact. You will have to set the correct value for "LVG_DIR" in lvg2006lite/data/config/lvg.properties. * ontology file: you can get a sample ontology file from the Download section.