Hello,

I am currently setting up a Fuseki server with the following specs in mind:
 - everything persistent in TDB (it works)
 - many different named graph, with the default graph being the union of
them (it works, but without inference)
 - very simple inferencing (works but not with named graphs)
 - inferenced triples stored in TDB

 The first question is the following: is it realistic?

 See attached for my current configuration file. This configuration
doesn't work:
 - /testrw works fine and has no inferencing (which is normal)
 - /testro does not work: I cannot access any triple, even asking them
in their named graph

 Is this kind of configuration supposed to work? If yes, how can we
modify our file to make it work?

 Final question: it is possible to define a prefixMapping in the fuseki
assembler configuration, but I was not able to find any use for it. Does
it do anything from the user or programmer point of view? Does it
improve/degrade the performances?

 Thank you,
--
Elie Roux
@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 :        <http://base/#> .

[] rdf:type fuseki:Server ;
   fuseki:services (
     :testrw
     :testro
   ) .

:testrw rdf:type fuseki:Service ;
    fuseki:name                       "testrw" ;     # name of the dataset in the url
    fuseki:serviceQuery               "query" ;    # SPARQL query service
    fuseki:serviceUpload              "upload" ;   # Non-SPARQL upload service
    fuseki:serviceReadWriteGraphStore "data" ;     # SPARQL Graph store protocol (read and write)
    fuseki:dataset                    :tdbDataset_test ;
    .

:testro rdf:type fuseki:Service ;
    fuseki:name                     "testro" ;
    fuseki:serviceQuery             "query" ;
    fuseki:serviceReadGraphStore    "data" ;
    fuseki:dataset                  :dataset_test ;
    .

:dataset_test rdf:type       ja:RDFDataset ;
    ja:defaultGraph          :model_inf_test ;
    tdb:unionDefaultGraph true ;
    .

:model_inf_test a ja:OntModel ;
     ja:baseModel :tdbGraph_test ;
     tdb:unionDefaultGraph true ;
     ja:reasoner [
        # This url looks outdated, but it works...
        ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
     ] .

:tdbGraph_test rdf:type tdb:GraphTDB ;
    tdb:dataset :tdbDataset_test ;
    tdb:unionDefaultGraph true ;
    .

:tdbDataset_test rdf:type tdb:DatasetTDB ;
    tdb:location "/etc/fuseki/databases/test" ;
    # If the unionDefaultGraph is used, then the "update" service should be removed.
    tdb:unionDefaultGraph true ;
    .

Reply via email to