jena-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Underwood <>
Subject TDB2 + inference mode + externalContent problems
Date Fri, 01 Mar 2019 16:21:42 GMT

I am trying to configure Fuseki (3.10.0) to use TDB2 with inferencing, and
to read in triples from a file. Unfortunately, I am seeing the error below,
caused by trying to add data using ja:externalContent. If I comment out
that line, everything works fine.

Any pointers on what I am doing wrong here would be very helpful.

./fuseki-server --tdb2 --conf=/app/config.ttl
[2019-03-01 16:18:33] Server     INFO  Apache Jena Fuseki 3.10.0
[2019-03-01 16:18:34] Config     INFO  FUSEKI_HOME=/app/fuseki
[2019-03-01 16:18:34] Config     INFO  FUSEKI_BASE=/fuseki-data
[2019-03-01 16:18:34] Config     INFO  Shiro file:
[2019-03-01 16:18:34] Config     INFO  Configuration file: /app/config.ttl
[2019-03-01 16:18:35] Server     ERROR Exception in initialization: the
loading of content into :infmodel was aborted because of
[2019-03-01 16:18:35] WebAppContext WARN  Failed startup of context
o.e.j.w.WebAppContext@38f2e97e{Apache Jena Fuseki
org.apache.jena.assembler.exceptions.TransactionAbortedException: the
loading of content into :infmodel was aborted because of
    root: file:///app/config.ttl#infmodel with type: assembler class: class
    root: file:///app/config.ttl#dataset with type: assembler class: class
[exception backtrace snipped - happy to provide the full thing if it's

config.ttl contains:

@prefix :        <#> .
@prefix fuseki:  <> .
@prefix rdf:     <> .

@prefix rdfs:    <> .
@prefix tdb:     <> .
@prefix tdb2:    <> .
@prefix ja:      <> .

<#service2>  rdf:type fuseki:Service ;
    fuseki:name              "tml" ;
    fuseki:serviceQuery      "sparql" ;
    fuseki:serviceUpdate     "update" ;
    fuseki:dataset           <#dataset> ;

<#dataset> a ja:RDFDataset ;
    ja:defaultGraph <#infmodel>

<#infmodel> a ja:InfModel ;
    ja:baseModel <#graph> ;
    ja:content [ja:externalContent <file:///app/sample.ttl> ] ;
    ja:reasoner [
        ja:reasonerURL <>
        ] ;

<#graph> rdf:type tdb2:GraphTDB ;
    tdb2:dataset <#datasetTDB2> ;

<#datasetTDB2> rdf:type tdb2:DatasetTDB2 ;
    tdb2:location "TESTTBD2".

And sample.ttl contains:
@prefix ns: <> .
@prefix rdf: <> .
@prefix rdfs: <> .
@prefix owl: <> .
@prefix xsd:  <> .

ns:Sancho       rdf:type        ns:Man .
ns:Don_Quijote  rdf:type        ns:Man .
ns:Don_Quijote  ns:knows        ns:Sancho .
ns:Rocinante    rdf:type        ns:Horse .
ns:Dulcinea     rdf:type        ns:Woman .

The information contained in this e-mail is confidential and/or proprietary to Capital One
and/or its affiliates and may only be used solely in performance of work or services for Capital
One. The information transmitted herewith is intended only for use by the individual or entity
to which it is addressed. If the reader of this message is not the intended recipient, you
are hereby notified that any review, retransmission, dissemination, distribution, copying
or other use of, or taking of any action in reliance upon this information is strictly prohibited.
If you have received this communication in error, please contact the sender and delete the
material from your computer.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message