From SO comments:
[[
Does the Fuseki log file contain any useful information? – AndyS
yesterday
Does non-inferred data show up? I notice you are using the same file
area for TDB1 and TDB2 databases. TDB2 does not work with TDB1 databases
and does not read them. In fact, its database is held with a sublocation
of the tdb2:location (so TDB1 data is not corrupted - it's just
completely ignored). Data must be separately loaded into TDB2. – AndyS
yesterday
Fuseki log folder us always empty (that's another issue I need to
resolve) and , about imcompatible TDB1 and TDB2 - I wiped the database
clear between tests. – Eric Boisvert 11 hours ago
]]
Does non-inferred data show up?
If there is no log output, something is wrong - the server always
outputs to the log at startup unless you turn it off.
How are you putting data into the server?
Andy
On 15/02/18 12:31, Eric Boisvert wrote:
Greetings
This post is a duplicate of
https://stackoverflow.com/questions/48770691/configure-fuseki-with-tdb2-and-owl-reasoner
I'm trying to configure fuseki to use TDB2 and OWL reasoning. I can make
it work with TDB1 but could not find any example of the same setup with
TDB2.
this works:
-----
@prefix : <http://base/#> .
@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#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
:service_tdb_all a fuseki:Service ;
fuseki:dataset :dataset ;
fuseki:name "gsip" ;
fuseki:serviceQuery "query" , "sparql" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" .
:dataset a ja:RDFDataset ;
ja:defaultGraph <#model_inf> ;
tdb:location "c:\\fuseki/run/databases/gsip".
<#model_inf> a ja:InfModel ;
ja:baseModel <#graph> ;
ja:reasoner [
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
] .
<#graph> rdf:type tdb:GraphTDB ;
tdb:dataset :dataset .
----
but my naive adaptation to TDB2 does not (I tried a couple of variations)
----
@prefix : <http://base/#> .
@prefix tdb2: <http://jena.apache.org/2016/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#> .
:service_tdb_all a fuseki:Service ;
fuseki:dataset :dataset ;
fuseki:name "gsip" ;
fuseki:serviceQuery "query" , "sparql" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" .
:dataset a ja:RDFDataset ;
ja:defaultGraph <#model_inf> ;
tdb2:location "c:\\fuseki/databases/gsip"
.
<#model_inf> a ja:InfModel ;
ja:baseModel <#graph> ;
ja:reasoner [
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
] .
<#graph> rdf:type tdb2:GraphTDB ; # also tried tdb2:GraphTDB2
tdb2:dataset :dataset .
-----
Fuseki starts without error, but OWL reason does not work (I tried with a
simple inversedOf property that returns inferred statements in my first
setup)
- no log files (this is another issue)
- I'm aware that TDB1 and TDB2 are not compatible, i wiped out the database
(even change the database location) between tests.
Read the Jena Assembler documentation, but did not find (or missed) how to
use TBDDataset (also, new in Jena - so drinking from the firehose).
Does anyone have an example of such a setup (TDB2 + OWLFBRuleReasoner) ?
Thanks
Does anyone have an exem