Skip to content

Instantly share code, notes, and snippets.

@nishad
Forked from nichtich/setup.md
Created February 15, 2018 07:36
Show Gist options
  • Save nishad/5d077af7284bd00a1b46258a6f9c645a to your computer and use it in GitHub Desktop.
Save nishad/5d077af7284bd00a1b46258a6f9c645a to your computer and use it in GitHub Desktop.
Getting started with Fuseki

Tested with a fresh Ubuntu 16.04.1 LTS

Install Java

$ sudo apt-get install default-jre

Download and install Fuseki with a dedicated user account

sudo adduser --disabled-password fuseki
cd /home/fuseki
sudo -u fuseki bash
wget http://mirrors.ae-online.de/apache/jena/binaries/apache-jena-fuseki-2.4.1.tar.gz
tar xzf apache-jena-fuseki-2.4.1.tar.gz
ln -s apache-jena-fuseki-2.4.1 fuseki
cd fuseki

Fuseki will in /home/fuseki/fuseki. Call ./fuseki-server for testing.

Setup Fuseki as service

$ sudo vim /etc/default/fuseki # edit file
$ cat /etc/default/fuseki
FUSEKI_HOME=/home/fuseki/fuseki
FUSEKI_BASE=/etc/fuseki
$ sudo mkdir /etc/fuseki
$ sudo chown fuseki /etc/fuseki
$ sudo cp /home/fuseki/fuseki/fuseki /etc/init.d/
$ sudo update-rc.d fuseki defaults

Restrict access to localhost only:

$ sudo -u fuseki vim  /etc/fuseki/shiro.ini

Install nginx and configure as reverse proxy. Make sure the administration can not be accessed publically.

$ sudo apt-get install nginx
$ sudo vim /etc/nginx/sites-enabled/default

Configure Fuseki

See https://github.com/NatLibFi/Skosmos/wiki/InstallFusekiJenaText

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment