On 24/10/13 11:41, Jernej Vidmar wrote:
Hi,
I'm having problem with starting fuseki server. I have a config file in
which I have declared my service and when I run command:
fuseki-server --config=config.ttl
the following log writes in console:
It writes some other details first (if you're using a moderately recent
edition) ... like the version number.
12:30:32 INFO Config :: Configuration file: config.ttl
12:30:32 INFO Config :: Service: :service3
12:30:32 INFO Config :: name = MODEL
12:30:32 INFO Config :: query = /MODEL/query
12:30:32 INFO Config :: graphStore(RW) = /MODEL/data
12:30:32 INFO Config :: graphStore(R) = /MODEL/get
and then I get:
#############################################################################################
com.hp.hpl.jena.shared.JenaException: java.net.SocketException: Software
caused
connection abort: recv failed
at com.hp.hpl.jena.rdf.arp.JenaReader.read(JenaReader.java:106)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.read(ModelCom.java:223)
at
com.hp.hpl.jena.util.FileManager.readModelWorker(FileManager.java:380)
at
com.hp.hpl.jena.util.FileManager.loadModelWorker(FileManager.java:312)
at com.hp.hpl.jena.util.FileManager.loadModel(FileManager.java:263)
at
com.hp.hpl.jena.assembler.ImportManager.graphFor(ImportManager.java:105)
at
com.hp.hpl.jena.assembler.ImportManager.addImportedGraphs(ImportManager.java:88)
at
...
I'm suspecting that the url for
PREFIX ja: <http://jena.hpl.hp.com/2005/11/Assembler#>
is not up... or maybe some other jena.hpl.hp prefix. Can anyone confirm
that?
It's not that - using a prefix does not cause anything to read the URL.
[[
<> ja:imports d2rq: .
]]
You are asking the system to import the contents of the URL dr2rq: which is
<http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#>
This read is timing out - the remote server is not working whereas it
was last time.
(I don't know why you need to import that graph.)
Andy
because I used the same config file few days back and everythng was working
normal...
also, when I run fuseki with "fuseki-server --update --mem /ds" command, it
started successfully.
thank you for your answers!
Regards!
here is my config.ttl
@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 ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
[] 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 (
<#service3>
) .
<> ja:imports d2rq: .
d2rq:D2RQModel rdfs:subClassOf ja:Model.
## ---------------------------------------------------------------
<#service3> rdf:type fuseki:service;
fuseki:name "MODEL";
fuseki:serviceQuery "query";
fuseki:serviceReadGraphStore "get";
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:dataset <#bnb>;
.
<#bnb> rdf:type ja:RDFDataset;
rdfs:label "BNB data example";
ja:defaultGraph <#model>;
.
<#model> rdf:type ja:OntModel;
ja:ontModelSpec ja:RDFS_MEM_RDFS_INF;
rdfs:label "Model for integration";
ja:baseModel <#rdfs_model> ;
ja:reasoner [ja:reasonerURL <
http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner>];
.
<#rdfs_model> rdf:type ja:UnionModel;
ja:rootModel
[
a ja:MemoryModel;
ja:content [ja:externalContent <file:test_model.n3>];
];
ja:subModel <#endpoint> ;
ja:subModel <#TDBds>
.
<#endpoint> a d2rq:D2RQModel;
d2rq:mappingFile <mapping_new.ttl>;
d2rq:resourceBaseURI <http://localhost:2020/resource/>;
.
<#TDBds> rdf:type tdb:GraphTDB;
tdb:location "TDB" .