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
directory is %APPDATA%\Aduna\
by default,
where %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 C:\Documents and
Settings\LocalService\Application Data\Aduna\
. On
Linux/UNIX, the default location is $HOME/.aduna/
,
for example /home/tomcat/.aduna/
. We will refer to
this data directory as [ADUNA_DATA]
in the rest of
this manual.
The location of this data directory can be reconfigured using the Java
system property info.aduna.platform.appdata.basedir
.
When you are using Tomcat as the servlet container then you can set this
property using the JAVA_OPTS
parameter, for
example:
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.