Hi Paul,

On 25/06/15 03:42, Paul Tyson wrote:
I cannot piece together a workable configuration for fuseki2 with an
OntModel.

Combining the config-tdb-dir template with info from
http://jena.markmail.org/message/wr3f6gy5orxbszyd I get the config shown
below.

When I put this as file "tdb-owl.ttl" in the FUSEKI_BASE/configuration
directory, fuseki says "Can't find .../tdb-owl.ttl" on startup. When I
point to it with --config option on fuseki-server.bat command line,
fuseki starts but the dataset does not appear.

In each case, what does the log file show?

For the --config case do you get these two lines adjacent?

[...] Config     INFO  Configuration file: config.ttl
[...] Server     INFO  Started 2015/06/25 12:45:20 BST on port 3030



This config will not work with v2.0.0 and --config because it is missing:


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

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


[] rdf:type fuseki:Server ;
      fuseki:services (
     <#service_tdb>
   ) .


(the development version does not need this)


I can't tell what the "Can't find .../tdb-owl.ttl" but it might be a now-fixed-bug JENA-915

Would it be possible for you to try the development build v2.3.0 (Java8 required).

https://repository.apache.org/content/groups/snapshots/org/apache/jena/jena-fuseki/2.3.0-SNAPSHOT/

        Andy

<#service_tdb> rdf:type fuseki:Service ;
     rdfs:label                      "TDB DB" ;
     fuseki:name                     "db" ;
     fuseki:serviceQuery             "query" ;
     fuseki:serviceQuery             "sparql" ;
     fuseki:serviceUpdate            "update" ;
     fuseki:serviceUpload            "upload" ;
     fuseki:serviceReadWriteGraphStore      "data" ;
     # A separate read-only graph store endpoint:
     fuseki:serviceReadGraphStore       "get" ;
     fuseki:dataset           <#dataset> ;
     .

<#dataset> rdf:type       ja:RDFDataset ;
    ja:defaultGraph       <#model_inf> ;
     .

<#model_inf> rdf:type ja:OntModel ;
     ja:baseModel <#tdbGraph> ;
     ja:ontModelSpec ja:OWL_DL_MEM_RULE_INF;
.

<#tdbDataset> rdf:type tdb:DatasetTDB ;
    tdb:location "DB" ;
    .

<#tdbGraph> rdf:type tdb:GraphTDB ;
    tdb:dataset <#tdbDataset>
.

Thanks,
--Paul


Reply via email to