Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • Edit the run-ip.sh file and set the HARVESTER_INSTALL_DIR= to be the directory you unpacked the harvester in
  • Run bash run-ip.sh
  • Restart tomcat and apache2. You may also need to force the index to rebuild to see the new data. The index can be rebuilt by issuing the following URL in a browser:http://your.vivo.address/vivo/SearchIndex. This will require site admin permission, and prompt you to login if your not already.

...

Overview of run-ip.sh script

  • Location of log file. If there is an issue with a harvest, this file proves invaluable in finding a solution to the problem.

    No Format
    echo "Full Logging in $HARVEST_NAME.$DATE.log"
    if [ ! -d logs ]; then
      mkdir logs
    fi
    cd logs
    touch $HARVEST_NAME.$DATE.log
    ln -sf $HARVEST_NAME.$DATE.log $HARVEST_NAME.latest.log
    cd ..
    
  • Clear old data. To maintain data integrity, the previous information is removed.

    No Format
    rm -rf data
    
  • Translate: The following will translate the input data into valid RDF.

    No Format
     harvester-xsltranslator -X xsltranslator.config.xml
    
  • To perform the additions and subtractions, first uncomment out code with the Find Addition and Find Subtractions

    No Format
    harvester-diff -X diff-additions.config.xml
    harvester-diff -X diff-subtractions.config.xml
    

    and then uncomment the Apply Subtractions to Previous model & Apply Additions to Previous model.

    No Format
    harvester-transfer -o previous-harvest.model.xml -r data/vivo-subtractions.rdf.xml -m
    harvester-transfer -o previous-harvest.model.xml -r data/vivo-additions.rdf.xml
    

    This will apply changes to the previous harvest. In order to apply changes to VIVO model, you will need to uncomment the the following :

    No Format
    harvester-transfer -o vivo.model.xml -r data/vivo-subtractions.rdf.xml -m
    harvester-transfer -o vivo.model.xml -r data/vivo-additions.rdf.xml