Hi, 

I am trying to run TDB with jena rules inference using assembly file. I could 
do it with Fuseki, but I cannot find any example to run it with non-Fuseki TDB 
storage. Is it possible to do this? 

I copy my assembler file below. Using this assembler, it seems that Jena only 
read from the database location and ignore other configurations. 

Thank you and best regards,
--
Fajar J. Ekaputra


**Assembler file**

@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#> .

[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .

tdb:DatasetTDB  rdfs:subClassOf  ja:RDFDataset .
tdb:GraphTDB    rdfs:subClassOf  ja:Model .

<#tdbDataset> rdf:type tdb:DatasetTDB ;
    tdb:location "tdb/db"
    .
    
<#data> a ja:InfModel ;
     ja:baseModel <#tdbGraph> ;
     ja:reasoner <#ekbRules>
     .
        
<#ekbRules> a ja:reasoner ;
        ja:reasonerURL <http://jena.hpl.hp.com/2003/GenericRuleReasoner>; 
        ja:rulesFrom <file:tdb/ekb.rules>
        .

<#tdbGraph> rdf:type tdb:GraphTDB ;
    tdb:dataset <#tdbDataset> ;
    tdb:location "tdb/db"
    .

Reply via email to