jena-users mailing list archives

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

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:
file:///fuseki-data/shiro.ini
[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
NodeTableThrift/Write
[2019-03-01 16:18:35] WebAppContext WARN  Failed startup of context
o.e.j.w.WebAppContext@38f2e97e{Apache Jena Fuseki
Server,/,file:///app/fuseki/webapp/,UNAVAILABLE}
org.apache.jena.assembler.exceptions.TransactionAbortedException: the
loading of content into :infmodel was aborted because of
NodeTableThrift/Write
  doing:
    root: file:///app/config.ttl#infmodel with type:
http://jena.hpl.hp.com/2005/11/Assembler#InfModel assembler class: class
org.apache.jena.assembler.assemblers.InfModelAssembler
    root: file:///app/config.ttl#dataset with type:
http://jena.hpl.hp.com/2005/11/Assembler#RDFDataset assembler class: class
org.apache.jena.sparql.core.assembler.DatasetAssembler
[exception backtrace snipped - happy to provide the full thing if it's
helpful]

config.ttl contains:

@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 tdb2:    <http://jena.apache.org/2016/tdb#> .
@prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .

<#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 <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
        ] ;
    .

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

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


And sample.ttl contains:
@prefix ns: <http://www.example.org/ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .

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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message