Skip to content
cbuil edited this page Nov 13, 2013 · 5 revisions

Deploying and Using SPARQL-DQP

PART A. Downloading OGSA-DAI

  • mkdir $HOME/Applications

PART B. Building SPARQL-DQP

  • Setting variables
    • export CATALINA_HOME=$HOME/Applications/tomcat
    • export ANT_HOME=$HOME/Applications/ant
    • export PATH=$PATH:$ANT_HOME/bin
    • export OGSADAI_HOME=$HOME/Applications/ogsadai
    • export JAVA_HOME=$HOME/Applications/jre
  • please check that you have set the following environment variables
    • echo $CATALINA_HOME
    • echo $OGSADAI_HOME
    • echo $JAVA_HOME
    • echo $ANT_HOME
  • Build SPARQL-DQP server jar and deploy to tomcat (this will also copy the necessary configuration files)
    1. cd $HOME/sparql-dqp
    2. mkdir bin
    3. ant deploy-to-server
  • Configure SPARQL-DQP
    1. Look at t he following configuration files in $CATALINA_HOME/webapps/dai/WEB-INF/etc/dai
    2. Configure $CATALINA_HOME/webapps/dai/WEB-INF/etc/dai/dqp/DQPresource/DQPContext.xml with the number of nodes you need
    3. Configure $CATALINA_HOME/webapps/dai/WEB-INF/etc/dai/dqp/DQPCompilerConfiguration.xml with the optimisers you need, specially the visualiser optimiser that generates a figure with the query plan
  1. Stop tomcat
    1. $CATALINA_HOME/bin/catalina.sh stop
  2. Install ogsa-dai normally in your tomcat folder (don’t forget to modify the logging properties file $OGSADAI_HOME/dai/WEB-INF/classes/log4j.properties according to your environment)
    1. cd $OGSADAI_HOME
    2. ant -Dtomcat.dir=$CATALINA_HOME deploy
  3. Run setenv for adding that jar in the class path
    1. cd $OGSADAI_HOME
    2. source setenv.sh
  4. Start Tomcat
    1. $CATALINA_HOME/bin/catalina.sh start
  5. Make sure that all necessary jars for SPARQL-DQP are in $CATALINA_HOME/webapps/dai/WEB-INF/lib/
    1. cd $HOME/Applications
    2. cp $sparql-dqp/lib/* $CATALINA_HOME/webapps/dai/WEB-INF/lib/
  6. Maybe there will be some conflicts with slf4j-api and log. Remove the oldest version (you may see it when running the client)
    1. cd $HOME/Applications
    2. rm tomcat/webapps/dai/WEB-INF/lib/slf4j-api-1.5.6.jar
    3. rm tomcat/webapps/dai/WEB-INF/lib/slf4j-log4j12-1.5.6.jar
  7. Restart tomcat
    1. $CATALINA_HOME/bin/catalina.sh stop
    2. $CATALINA_HOME/bin/catalina.sh start

PART C. Running SPARQL-DQP