On 17/12/12 15:53, Joerg Baach wrote:
:Hi *,
I am doing my first babysteps with jena/fuseki. What I would like to get
is a fuseki server running that connects to a mysql database and uses an
owl reasoner. After lots of fiddling and googling I got it to run for in
memory and tdb, but sdb still gives me problems. The triples are
inserted into mysql, but on the select I only get dog1 - so the
reasoning doesn't seem to work.
Below my INSERT, SELECT, expectation, results and my configuration.
Any hints what I did wrong in my config?
I'm not completely sure but
#---------------------------------------------------------------------
sdb:DatasetStore rdfs:subClassOf ja:RDFDataset .
<#dataset3> rdf:type sdb:DatasetStore ;
<#dataset3> rdf:type ja:RDFDataset ;
ja:defaultGraph <#model3> ;
.
I think that needs to be ja:RDFDataset (see the TDB case) because the
assembler is possibly finding sdb:DatasetStore, making that the dataset
and so ignoring the ja:defaultGraph and hence the inference engine.
ja:defaultGraph <#model3> ;
sdb:store <#store>;
.
<#model3> a ja:InfModel;
ja:baseModel <#sdbGraph>;
ja:reasoner
[ ja:reasonerURL
<http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>];
.
<#sdbGraph> rdf:type ja:Model;
.
<#sdbGraph> rdf:type sdb:Model ;
sdb:dataset <#sdbDataset> .
<#sdbDataset> df:type sdb:DatasetStore ;
sdb:store <#store>;
.
<#store> rdf:type sdb:Store ;
rdfs:label "SDB" ;
sdb:layout "layout2" ;
sdb:engine "InnoDB" ;
sdb:connection
[ rdf:type sdb:SDBConnection ;
sdb:sdbType "MySQL" ;
sdb:sdbHost "localhost" ;
sdb:sdbName "fuseki";
sdb:sdbUser "fuseki";
sdb:sdbPassword "";
sdb:driver "com.mysql.jdbc.Driver" ;
]
.