-
Notifications
You must be signed in to change notification settings - Fork 0
Deploying and Using SPARQL DQP
cbuil edited this page Nov 13, 2013
·
3 revisions
- mkdir $HOME/Applications
- Carlos’s OGSA-DAI distribution :
- cd $HOME/Applications
- wget https://dl.dropbox.com/u/531378/sparqldqp/ogsadai-4.2-jersey-1.10-bin-carlos.zip
- unzip ogsadai-4.2-jersey-1.10-bin-carlos.zip
- unlink ogsadai
- ln -s ogsadai-4.2-jersey-1.10-bin-carlos 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/catalina.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
- Build SPARQL-DQP server jar
- cd $HOME/
- Check build.properties file
- Change the following properties to the appropriate paths
- ant deploy-to-server-linux
- Build SPARQL-DQP client jar
- cd $HOME/Applications
- wget https://dl.dropbox.com/u/531378/sparqldqp/ogsadai-4.2-sparql-dqp-1.1-client.jar
- mkdir sparqldqp
- cp ogsadai-4.2-sparql-dqp-1.1-client.jar sparqldqp/
- 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
- 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 ODEMAPSTER are in $CATALINA_HOME/webapps/dai/WEB-INF/lib/
- cd $HOME/Applications
- cp $ODEMAPSTER/odemapster-lib/* $CATALINA_HOME/webapps/dai/WEB-INF/lib/
- cp $ODEMAPSTER/odemapster-*.jar $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