-
Notifications
You must be signed in to change notification settings - Fork 0
Home
cbuil edited this page Nov 13, 2013
·
5 revisions
- mkdir $HOME/Applications
- git clone https://github.com/cbuil/sparql-dqp.git
- Download OGSA-DAI distribution :
- cd $HOME/Applications
- wget http://downloads.sourceforge.net/project/ogsa-dai/OGSA-DAI-4.2/ogsadai-4.2-jersey-1.10-bin.zip
- unzip ogsadai-4.2-jersey-1.10-bin.zip
- unlink ogsadai
- ln -s ogsadai-4.2-jersey-1.10-bin ogsadai
- JAVA 7 (Linux 64 bits)
- cd $HOME/Applications
- wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=75252
- mv AutoDL\?BundleId\=75252 jre-7u17-linux-x64.tar.gz
- tar zxvf jre-*-linux-x64.tar.gz
- unlink jre
- ln -s jre*/ jre
- JAVA 7 (Linux 32 bits)
- cd $HOME/Applications
- wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=75250
- mv AutoDL\?BundleId\=75250 jre-7u17-linux-i586.tar.gz
- tar zxvf jre-*-linux-i586.tar.gz
- unlink jre
- ln -s jre*/ jre
- Apache Tomcat:
- cd $HOME/Applications
- wget http://ftp.cixug.es/apache/tomcat/tomcat-7/v7.0.47/bin/apache-tomcat-7.0.47.zip
- unzip apache-tomcat-7*.zip
- unlink tomcat
- ln -s apache-tomcat-7.*/ tomcat
- chmod +x tomcat/bin/*.sh
- Apache Ant :
- cd $HOME/Applications
- wget http://apache.rediris.es//ant/binaries/apache-ant-1.9.2-bin.zip
- unzip apache-ant-1.9.0-bin
- unlink ant
- ln -s apache-ant-1.9.0 ant
- 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)
- cd $HOME/sparql-dqp
- mkdir bin
- ant deploy-to-server
- Configure SPARQL-DQP
- Look at t he following configuration files in $CATALINA_HOME/webapps/dai/WEB-INF/etc/dai
- Configure $CATALINA_HOME/webapps/dai/WEB-INF/etc/dai/dqp/DQPresource/DQPContext.xml with the number of nodes you need
- 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
- Stop tomcat
- $CATALINA_HOME/bin/catalina.sh stop
- 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)
- cd $OGSADAI_HOME
- ant -Dtomcat.dir=$CATALINA_HOME deploy
- Run setenv for adding that jar in the class path
- cd $OGSADAI_HOME
- source setenv.sh
- Start Tomcat
- $CATALINA_HOME/bin/catalina.sh start
- Make sure that all necessary jars for SPARQL-DQP are in $CATALINA_HOME/webapps/dai/WEB-INF/lib/
- cd $HOME/Applications
- cp $sparql-dqp/lib/* $CATALINA_HOME/webapps/dai/WEB-INF/lib/
- Maybe there will be some conflicts with slf4j-api and log. Remove the oldest version (you may see it when running the client)
- cd $HOME/Applications
- rm tomcat/webapps/dai/WEB-INF/lib/slf4j-api-1.5.6.jar
- rm tomcat/webapps/dai/WEB-INF/lib/slf4j-log4j12-1.5.6.jar
- Restart tomcat
- $CATALINA_HOME/bin/catalina.sh stop
- $CATALINA_HOME/bin/catalina.sh start
- Run the query
- OEG Members GFT Table Example: https://www.google.com/fusiontables/DataSource?docid=1pQBGUqR_g-j1WQavu-Fi1wGS7jsdRxomGc0DxMI#rows:id=1
- cd $OGSADAI_HOME
- $JAVA_HOME/bin/java es.upm.fi.dia.oeg.ogsadai.sparql.client.QueryClient -f FusionTableQuery.rq