In this chapter, we explain how to change the default data directory for OpenRDF applications. You can skip this chapter if you only use Sesame as a library, or if you consider the defaults to be fine.
All OpenRDF applications (Sesame Server, Workbench, and
Console) store configuration files and repository data in a
single directory (with subdirectories). On Windows machines, this
%APPDATA%\Aduna\ by default,
%APPDATA% is the application data
directory of the user that runs the application. For example, in
case the application runs under the 'LocalService' user account
on Windows XP, the directory is
Settings\LocalService\Application Data\Aduna\. On
Linux/UNIX, the default location is
/home/tomcat/.aduna/. We will refer to
this data directory as
[ADUNA_DATA] in the rest of
The location of this data directory can be reconfigured using the Java
When you are using Tomcat as the servlet container then you can set this
property using the
JAVA_OPTS parameter, for
set JAVA_OPTS=-Dinfo.aduna.platform.appdata.basedir=\path\to\other\dir\(on Windows)
export JAVA_OPTS='-Dinfo.aduna.platform.appdata.basedir=/path/to/other/dir/'(on Linux/UNIX)
If you are using Apache Tomcat as a Windows Service you should use the Windows Services configuration tool to set this property. Other users can either edit the Tomcat startup script or set the property some other way.
One easy way to find out what the directory is in a running instance of the Sesame Server, is to go to
http://localhost:8080/openrdf-sesame in your browser and click on 'System' in the navigation menu on the left. The data directory will be listed as one of the configuration settings of the current server.