Skip to content

Deploying and Using SPARQL DQP

cbuil edited this page Nov 13, 2013 · 3 revisions

PART A. Downloading OGSA-DAI

  • mkdir $HOME/Applications

PART C. Building SPARQL-DQP

  • Build SPARQL-DQP server jar
    1. cd $HOME/
    2. Check build.properties file
    3. Change the following properties to the appropriate paths
    4. ant deploy-to-server-linux

PART B. Installing 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
  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 ODEMAPSTER are in $CATALINA_HOME/webapps/dai/WEB-INF/lib/
    1. cd $HOME/Applications
    2. cp $ODEMAPSTER/odemapster-lib/* $CATALINA_HOME/webapps/dai/WEB-INF/lib/
    3. cp $ODEMAPSTER/odemapster-*.jar $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