On 23/03/17 19:55, Dimov, Stefan wrote:
Thanks, Andy,
Now my config file looks like this:
@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#> .
@prefix ao: <http://ao.com> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#mainservice>
) .
<#mainservice> rdf:type fuseki:Service ;
fuseki:name "mainservice" ;
fuseki:serviceQuery "sparql" ;
fuseki:serviceQuery "query" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset <#ao> ;
.
### In-memory, initially empty.
## This database set-up allows OWL inference.
<#ao> rdf:type ja:RDFDataset ;
ja:defaultGraph <#infGraph> .
<#infGraph> rdf:type ja:InfModel ;
ja:reasoner [ ja:reasonerURL
<http://jena.hpl.hp.com/2003/GenericRuleReasoner> ;
ja:rulesFrom <file:Data/inference_rules.rules> ; ] .
<#data> rdf:type ja:MemoryModel ;
ja:content [ja:externalContent <file:Data/graph.nt>] ;
.
I don't see a connection between <#infGraph> and <#data>. Don't you
need a ja:baseModel?
That said, it worked for me with a rule of just:
-------------
-> (<http://example/s> <http://example/p> <http://example/o> ) .
-------------
Unfortunately, it doesn’t work. Both files inference_rulesss.rules and graph.nt are being ignored.
(I’ve put them into: <fuseki_home>/Data folder). I tried different formats for
<file:Data/inference_rulesss.rules>, like <file://Data/inference_rulesss.rules> or
<Data/inference_rulesss.rules>, but it didn’t work.
Also, you said that in the command line:
./fuseki-server --update --file=config_new.ttl /mainservice
I don’t not need the /mainservice, but when I try to start the service with:
./fuseki-server --update --file=config_new.ttl
--conf=config_new.ttl
--help says:
"""
--file=FILE Create an in-memory, non-persistent dataset for
the server, initialised with the contents of the file
"""
I get:
No dataset path name given
and the server doesn’t start.
--update is not relevant - the configuration file takes precedence (the
presence of "serviceUpdate" etc.
Andy
Regards,
Stefan