From 7383209f1872d11b13a94f36a1a0c8846962e408 Mon Sep 17 00:00:00 2001 From: zPlus Date: Sun, 30 Apr 2023 23:44:53 +0200 Subject: [PATCH] Merge repository data.dokk.org.git There was a separate repository named "data.dokk.org.git" that only contained basic instructions for creating a TDB2 (Apache Jena) database and instructions for starting Fuseki. The repository has been deleted and the little content in it has been moved here. --- README | 14 ++++++++------ README.jena | 18 ++++++++++++++++++ fuseki.service | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 6 deletions(-) create mode 100644 README.jena create mode 100644 fuseki.service diff --git a/README b/README index b61e50b..dad75f6 100644 --- a/README +++ b/README @@ -1,7 +1,9 @@ -DOKK is a free, community-curated data repository. +This repository contains the DOKK data. -Repository https://clif.peers.community/dokk/data.git -Mailing list https://clif.peers.community/dokk/dokk.mlist -Website https://dokk.org -IRC #peers at irc.libera.chat -Peers https://peers.community + +Data repository https://clif.peers.community/dokk/data.git +Website repository https://clif.peers.community/dokk/dokk.org.git +Mailing list https://clif.peers.community/dokk/dokk.mlist +Website https://dokk.org +IRC #peers at irc.libera.chat +Peers https://peers.community diff --git a/README.jena b/README.jena new file mode 100644 index 0000000..80c9351 --- /dev/null +++ b/README.jena @@ -0,0 +1,18 @@ +This document contains some useful commands for creating a database of the DOKK +data, that can be queried with SPARQL. + +Note: the tools used here are available for download at + + Just download "apache-jena-.tar.gz" and "apache-jena-fuseki-.tar.gz" + +Create a database: + + tdb2.tdbloader --loc=database dokk/data/*.ttl + +Query from command line: + + tdb2.tdbquery --loc=database "select distinct ?s where { ?s ?p ?o } order by ?s limit 10" + +It's also possible to start a standalone server (Fuseki) that is queryable via +HTTP. All you have to do is create the database first (with the above commands), +and then start Fuseki. For an example see the "fuseki.service" file. diff --git a/fuseki.service b/fuseki.service new file mode 100644 index 0000000..3119875 --- /dev/null +++ b/fuseki.service @@ -0,0 +1,37 @@ +# This is an example service file for systemd. If using the Fuseki server, this +# service can be configured to automatically start the server. +# +# How to use this file: +# - copy this file to /etc/systemd/system +# - edit the variables below accordingly +# - systemctl enable fuseki.service +# - systemctl start fuseki.service + +[Unit] +Description=Fuseki server for DOKK +After=network.target + +[Service] +# Folder of the Fuseki installation files +Environment=FUSEKI_HOME=/home/fuseki/fuseki-server + +# Fuseki runtime folder (will contain configuration files and other runtime files). +Environment=FUSEKI_BASE=/home/fuseki/fuseki-run + +# Edit the line below to adjust the amount of memory allocated to Fuseki +Environment=JVM_ARGS=-Xmx2G + +# Command for launching the Fuseki server +ExecStart=/home/fuseki/fuseki-server/fuseki-server --loc=/home/fuseki/database --port=6000 --localhost /dokk + +User=fuseki +Group=fuseki +WorkingDirectory=/home/fuseki/fuseki-server +Restart=always + +# Java processes exit with status 143 when terminated by SIGTERM, this +# should be considered a successful shutdown +SuccessExitStatus=143 + +[Install] +WantedBy=multi-user.target