Apache Jena Fuseki
Install and configure a self-managed Apache Jena Fuseki server for development and testing purposes.
Apache Jena is an open-source Java framework for building semantic web and linked data applications. Apache Jena Fuseki is a SPARQL server that exposes the RDF data stored in the triplestore via HTTP and a REST-style API. This page provides instructions on how to install and configure a self-managed Apache Jena Fuseki server for development and testing purposes only (i.e. non-production).
To install Apache Jena Fuseki, simply download the Apache Jena Fuseki binary distribution (apache-jena-fuseki-*.tar.gz) from https://jena.apache.org/download and unpackage the downloaded archive file into a directory of your choice. In our case, we shall unpackage the Apache Jena Fuseki binary distribution into
To define a username and password combination to authenticate client requests using Basic Authentication, navigate to the Apache Jena Fuseki installation directory and edit
/$/** = authcBasic,user[guest]
/** = anon
The example configuration above defines a new user called
guestwith the password
password123. Thereafter we configure all requests to the
/$/**wildcard path to require basic authentication and authorized with the credentials of the newly defined
guestuser. Requests to all other resources, defined by the
/**wildcard path, are configured with anonymous access.
To configure Apache Jena Fuseki server to persist RDF triplestore data to disk, and hence persist triplestore across server restarts, we can use the
--locparameter when starting Fuseki server as follows:
# Navigate to the Fuseki installation directory
# Run Fuseki server using disk-based storage
./fuseki-server --loc=/opt/apache-jena-fuseki/apache-jena-fuseki-4.3.2/data --update /ontopop
The command above starts Fuseki server using TDB2 transactional disk-based storage where RDF triplestore data is persisted in the directory defined by the
--locparameter, and the optional
--updateparameter enables updates to the RDF triplestore data via SPARQL (including SPARQL via HTTP).
For further information regarding configuring Apache Jena Fuseki server, please visit https://jena.apache.org/documentation/fuseki2/index.html. And for further information regarding the endpoints exposed by Fuseki server, including executing SPARQL queries via HTTP, please visit https://jena.apache.org/documentation/fuseki2/soh.html.