这些设置与fuseki 2.0一起使用,现在我在fuseki 2.3上,但这些设置不再起作用了:
[] rdf:type fuseki:Server ;
fuseki:services (
<#serviceInMemoryWithReasoner>
)
.
<#serviceInMemoryWithReasoner> rdf:type fuseki:Service;
rdfs:label "testdataset";
fuseki:name "testdataset";
fuseki:serviceQuery "query";
fuseki:serviceUpdate "update";
fuseki:dataset <#datasetServiceInMemoryWithReasoner> ;
.
<#datasetServiceInMemoryWithReasoner> rdf:type ja:RDFDataset;
ja:defaultGraph <#datasetmodelServiceInMemoryWithReasoner>
.
<#datasetmodelServiceInMemoryWithReasoner>
ja:reasoner [ ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>];
ja:content [ja:externalContent <file:ProposalData/1.ttl> ];
.
这是我遇到的错误:
2016-03-21 12:31:12] WebAppContext WARN Failed startup of context o.e.j.w.WebAppContext@4275c20c{/,file:///usr/local/apache-jena-fuseki-2.3.1/webapp/,STARTING}
org.apache.jena.fuseki.FusekiConfigException
at org.apache.jena.fuseki.build.FusekiConfig.readConfiguration(FusekiConfig.java:244)
at org.apache.jena.fuseki.build.FusekiConfig.readConfigurationDirectory(FusekiConfig.java:223)
at org.apache.jena.fuseki.server.FusekiServer.initializeDataAccessPoints(FusekiServer.java:212)
at org.apache.jena.fuseki.server.FusekiServerListener.init(FusekiServerListener.java:78)
at org.apache.jena.fuseki.server.FusekiServerListener.contextInitialized(FusekiServerListener.java:46)
at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:835)
at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:530)
at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:808)
at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:342)
at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1368)
at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1335)
at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:772)
at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:259)
at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:511)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
at org.eclipse.jetty.server.Server.start(Server.java:405)
at org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:106)
at org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
at org.eclipse.jetty.server.Server.doStart(Server.java:372)
at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
at org.apache.jena.fuseki.jetty.JettyFuseki.start(JettyFuseki.java:120)
at org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.exec(FusekiCmd.java:359)
at jena.cmd.CmdMain.mainMethod(CmdMain.java:93)
at jena.cmd.CmdMain.mainRun(CmdMain.java:58)
at jena.cmd.CmdMain.mainRun(CmdMain.java:45)
at org.apache.jena.fuseki.cmd.FusekiCmd$FusekiCmdInner.innerMain(FusekiCmd.java:95)
at org.apache.jena.fuseki.cmd.FusekiCmd.main(FusekiCmd.java:60)
我可以为您提供您想要的任何其他信息,请检查我的设置无效的原因。我想在内存中有一个数据集,从文件中加载它的三元组
答案 0 :(得分:0)
我在这个配置中找到的唯一问题是如何引用文件(应该是file://
)。下面是一个完整的配置,包括前缀,适用于Fuseki 2.5.0。为清楚起见,我将测试数据和本体放在单独的文件中。
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#serviceInMemoryWithReasoner>
)
.
<#serviceInMemoryWithReasoner> rdf:type fuseki:Service;
rdfs:label "testdataset";
fuseki:name "testdataset";
fuseki:serviceQuery "query";
fuseki:serviceUpdate "update";
fuseki:dataset <#datasetServiceInMemoryWithReasoner> ;
.
<#datasetServiceInMemoryWithReasoner> rdf:type ja:RDFDataset;
ja:defaultGraph <#datasetmodelServiceInMemoryWithReasoner>
.
<#datasetmodelServiceInMemoryWithReasoner>
ja:reasoner [ ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>];
ja:content [ja:externalContent <file://my/data/dir/data.ttl> ];
ja:content [ja:externalContent <file://my/data/dir/model.ttl> ];