you can achieve this with a file in your fuseki source directory
../run/configuration. i have found on the web an example which i used
from
https://github.com/jfmunozf/Jena-Fuseki-Reasoner-Inference/wiki/Configuring-Apache-Jena-Fuseki-2.4.1-inference-and-reasoning-support-using-SPARQL-1.1:-Jena-inference-rules,-RDFS-Entailment-Regimes-and-OWL-reasoning
adapt the filenames to your names!
@prefix : <http://base/#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
#This line is a comment
:service1 a fuseki:Service ;
fuseki:dataset :dataset ;
fuseki:name "ElQuijote" ;
fuseki:serviceQuery "query" , "sparql" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" .
:dataset rdf:type ja:RDFDataset ;
rdfs:label "ElQuijote" ;
ja:defaultGraph
[ rdfs:label "ElQuijote" ;
a ja:InfModel ;
#Reference to model.ttl file
ja:content [ja:externalContent <.../rdfsOntologyExample/model.ttl> ] ;
#Reference to data.ttl file
ja:content [ja:externalContent <.../rdfsOntologyExample/data.ttl> ] ;
#Disable OWL-based reasoner
ja:reasoner [ja:reasonerURL
<http://jena.hpl.hp.com/2003/OWLFBRuleReasoner> ] ;
#Disable RDFS-based reasoner
# ja:reasoner [ja:reasonerURL
<http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner>] ;
#Enable Jena Rules-based reasoner and we point the location of
myrules.rules file
# ja:reasoner [
# ja:reasonerURL <http://jena.hpl.hp.com/2003/GenericRuleReasoner> ;
# ja:rulesFrom
</home/frank/Desktop/rdfsOntologyExample/myrules.rules> ;
# ] ;
] ;
.
On 12/14/2017 10:21 AM, Robert Nielsen wrote:
Is it possible to start Fuseki with initial contents from a file (an OWL
ontology, not an existing TDB), and then allow updates?
When I start Fuseki with the following parameters:
./fuseki-server --file /Ontologies/MyOntology.owl --update /MyFuseki
I get a message that the the resource /MyFuseki is running in read-only
mode. It appears the --update parameter does nothing. But there is no
message that says the parameter is ignored (and why). I can, of course,
start the Fuseki server and then load the ontology file ... but it seems
like I should be able to do it in one step. What am I missing?
Running Apache Jena Fuseki 3.5.0 with Java 1.8.0_144 on Mac OS X 10.12.6
x86_64.
Robert Nielsen
--
em.o.Univ.Prof. Dr. sc.techn. Dr. h.c. Andrew U. Frank
+43 1 58801 12710 direct
Geoinformation, TU Wien +43 1 58801 12700 office
Gusshausstr. 27-29 +43 1 55801 12799 fax
1040 Wien Austria +43 676 419 25 72 mobil