Apache Jena

Apache Jena

Fuseki

./fuseki-server --mem /ds
./fuseki start
./fuseki stop
./fuseki restart

Fuseki Dockerโ€‹

https://jena.apache.org/documentation/fuseki2/fuseki-docker.html

https://hub.docker.com/r/stain/jena-fuseki

docker pull stain/jena-fuseki

docker run -d --name fuseki \
-p 3030:3030 \
-e ADMIN_PASSWORD=admin \
-e TDB=2 \
-e FUSEKI_DATASET_1=mulberrypond \
-v $HOME/fuseki/data:/fuseki \
stain/jena-fuseki

If using default dataset, the last prefix is not needed, ‘from dtlab:’ is not needed, either.

If more than one datasets exist, the port does not need ‘/query’

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dtlab: <http://127.0.0.1:3030/mulberrypond/data/dtlab>

SELECT * from dtlab:
WHERE {
  ?subject ?predicate ?object
}
LIMIT 25
Next