Fuseki
Fuseki is very easy to setup -- just download it from http://www.apache.org/dist/jena/binaries/, unpack the download archive and start fuseki-server
:
sh curl -O http://www.apache.org/dist/jena/binaries/jena-fuseki-0.2.7-distribution.tar.gz
tar xvfz jena-fuseki-0.2.7-distribution.tar.gz
cd jena-fuseki-0.2.7
./fuseki-server --update --mem /test
Using the default settings, Fuseki will be running at http://localhost:3030/. To access the SPARQL query form, go to http://localhost:3030/control-panel.tpl and select your datasource (in this case /test). This allows you to perform SPARQL queries or updates, or upload an RDF file to replace the contents of the triplestore.
Sesame
Sesame requires a little more setup to run with the tests, since by default it uses the same port as Fedora. To setup Sesame with Tomcat running on an alternate port:
- Download Sesame from http://sourceforge.net/projects/sesame/files/Sesame%202/
- Download Tomcat from http://tomcat.apache.org/download-70.cgi
- Unpack Sesame and Tomcat, and move the Sesame WAR file into the Tomcat webapps directory
- Change the Tomcat port to something other than 8080 to avoid conflict with Fedora, and then start Tomcat.
Use the Sesame console to create a repository:
curl -L -O http://downloads.sourceforge.net/project/sesame/Sesame%202/2.7.5/openrdf-sesame-2.7.5-sdk.tar.gz curl -O http://www.apache.org/dist/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz tar xvfz apache-tomcat-7.0.42.tar.gz tar xvfz openrdf-sesame-2.7.5-sdk.tar.gz cp openrdf-sesame-2.7.5/war/openrdf-sesame.war apache-tomcat-7.0.42/webapps/ cat apache-tomcat-7.0.42/conf/server.xml | sed -e's/8080/${tomcat.port}/' > tmp.xml mv tmp.xml apache-tomcat-7.0.42/conf/server.xml export CATALINA_HOME=`pwd`/apache-tomcat-7.0.42 export JAVA_OPTS="$JAVA_OPTS -Dtomcat.port=8081" apache-tomcat-7.0.42/bin/startup.sh openrdf-sesame-2.7.5/bin/console.sh > connect http://localhost:8081/openrdf-sesame. > create native. Repository ID [native]: test Repository title [Native store]: test Triple indexes [spoc,posc]: spoc,posc > quit.