...
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 Tomcat from http://tomcat.apache.org/download-70.cgi and unpack the downloadd archive.
- Edit the Tomcat configuration file (
apache-tomcat-7.0.42/conf/server.xml
) to use a different port (e.g., 8081 instead of 8080). - Download Sesame from http://sourceforge.net/projects/sesame/files/Sesame%202/
- Unpack Sesame and move the Sesame WAR file into the Tomcat webapps directory
- Use the Sesame console to create a repository
Code Block | ||
---|---|---|
| ||
$ | ||
Code Block | ||
curl -L -O https://dist.apache.org/repos/dist/release/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz $ tar xvfz apache-tomcat-7.0.42.tar.gz $ vi apache-tomcat-7.0.42/conf/server.xml $ apache-tomcat-7.0.42/bin/startup.sh $ curl -L -O http://sourceforge.net/projects/sesame/files/Sesame%202/2.7.7/openrdf-sesame-2.7.7-sdk.tar.gz $ tar xvfz openrdf-sesame-2.7.7-sdk.tar.gz $ cp openrdf-sesame-2.7.7/war/openrdf-sesame.war <tomcat/webapps/directory> |
Sesame should be running at: http://localhost:8080/openrdf-sesame/home/overview.view How to interact with Sesame repositories?
- Once Sesame is running, use the console application to create a repository:
Code Block | ||
---|---|---|
| ||
$ openrdf-sesame-2.7.5/bin/console.sh
> connect http://localhost:8081.
> create native.
Repository ID [native]: test
Repository title [Native store]: test store
Triple indexes [spoc,posc]: spoc,posc
Repository created
> exit.
Disconnecting from http://localhost:8081/openrdf-sesame/ |
Notes
You may need to set the Sesame data directory in you your Tomcat7 configuration (e.g. /etc/default/tomcat7)
Code Block language bash JAVA_OPTS="${JAVA_OPTS} -Dinfo.aduna.platform.appdata.basedir=/tmp/sesame"
...