Public Repository

Last pushed: 2 years ago
Short Description
debian+fuseki+oracle-java
Full Description

Version

  • debian 8 (jessie)
  • fuseki 2.3
  • oracle java 8

Usage

docker run -d --name myFuseki -P -v $PATH_TO_CONFIG:/etc/fuseki/config.ttl -v $PATH_TO_TDB:/etc/fuseki/databases fantasyearl/fuseki bash

Volume

  1. /etc/fuseki/config.ttl

    Required, the configuration file used by fuseki-server.jar --config=config.ttl

  2. /etc/fuseki/databases

    Required, the root folder contains your TDB folders.

  3. /etc/fuseki/logs

Example: config.ttl

## Example of a TDB dataset published using Fuseki: persistent storage.
@prefix :        <#> .
@prefix fuseki:  <http://jena.apache.org/fuseki#> .
@prefix rdf:     <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:    <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tdb:     <http://jena.hpl.hp.com/2008/tdb#> .
@prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .
[] rdf:type fuseki:Server ;
   fuseki:services (
     <#service_example1>
     <#service_example2>
   ) .
# TDB
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb:GraphTDB    rdfs:subClassOf  ja:Model .
## ---------------------------------------------------------------
<#service_example1> rdf:type fuseki:Service ;
    rdfs:label                      "Example1" ;
    fuseki:name                     "example1" ;
    fuseki:serviceQuery             "query" ;
    fuseki:serviceQuery             "sparql" ;
    fuseki:serviceReadGraphStore    "data" ;
    fuseki:serviceReadGraphStore    "get" ;
    fuseki:dataset           <#tdb_example1> ;
    .
<#service_example2> rdf:type fuseki:Service ;
    rdfs:label                      "Example2" ;
    fuseki:name                     "example2" ;
    fuseki:serviceQuery             "query" ;
    fuseki:serviceQuery             "sparql" ;
    fuseki:serviceUpdate            "update" ;
    fuseki:serviceUpload            "upload" ;
    fuseki:serviceReadWriteGraphStore    "data" ;
    fuseki:serviceReadGraphStore    "get" ;
    fuseki:dataset           <#tdb_example2> ;
    .
<#tdb_example1> rdf:type      tdb:DatasetTDB ;
    tdb:location  "databases/Example1";
    tdb:unionDefaultGraph true;
    .
<#tdb_example2> rdf:type      tdb:DatasetTDB ;
    tdb:location  "databases/Example2";
    tdb:unionDefaultGraph true;
    .
## ---------------------------------------------------------------
Docker Pull Command
Owner
fantasyearl