Hello,

I have tried to make a configuration file for Fuseki to make OWL
inferencing work with a TDB database. Thus far I have been able to do
inferencing on an empty dataset, to connect to the TDB database and do
queries, but not both.

This is the error I'm currently getting:
"com.hp.hpl.jena.assembler.exceptions.AmbiguousSpecificTypeException:
cannot find a most specific type for
file:///home/path/jena/jena-fuseki-1.0.0/test.ttl#dataset2, which has as
possibilities: ja:Model tdb:DatasetTDB."

I tried fixing the error by doing tdb:DatasetTDB rdfs:subClassOf ja:Model ,
but this was not possible.

Below is my configuration file.

Any help would be greatly appreciated.

Best regards,
Jeanette

@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 sdb:     <http://jena.hpl.hp.com/2007/sdb#> .

[] rdf:type fuseki:Server ;

fuseki:services ( <#tdb> ) .

<#tdb> rdf:type fuseki:Service ;
    fuseki:name "tdb" ;
    fuseki:serviceQuery "sparql" ;
    fuseki:serviceUpdate "update" ;
    fuseki:dataset <#model2> ;
.

#select which set to . #use
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
    tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
    tdb:GraphTDB rdfs:subClassOf ja:Model .

<#dataset2>
        rdf:type tdb:DatasetTDB;
        tdb:location "/home/path/tdb/sports" ;
        tdb:unionDefaultGraph true ;
.

<#model2> rdf:type ja:InfModel;
    ja:baseModel <#dataset2>;
    ja:reasoner
      [ ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>;
        ja:schema <#interpretationSchema>
      ] .
        #<#tdbGraph> rdf:type tdb:GraphTDB; tdb:location "DB"; .
    <#interpretationSchema> a ja:MemoryModel ;
        ja:content [ ja:externalContent <file:/home/path/running.n3> ;
    ]
   .

Reply via email to