fuseki 上传数据到内存失败但成功上传到TDB
fuseki fails to upload data to memory but sucess to TDB
我有这个免费的Ontology
http://protege.cim3.net/file/pub/ontologies/wine/wine.owl
使用内存服务时不能加载,使用TDB服务时可以加载
这是我的配置
@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 ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#serviceInMemoryWithReasoner>
)
.
# TDB
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
# ------ In memory with reasoner
<#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>];
.
我是不是做错了什么?
我遇到的问题是:
同样,使用 TDB 加载同一文件是有效的
看来您是 运行 无法识别 .owl
的 Fuseki 版本。尝试将文件扩展名更改为 .rdf
.
(因附加信息而编辑)
最新发布的版本 2.3.1 识别 .owl
。
TDB 服务和内存服务的定义可能不同。
显示的服务配置没有加载服务。
http://jena.apache.org/documentation/fuseki2/fuseki-configuration.html
要从 UI 加载,您需要 fuseki:serviceReadWriteGraphStore
(它使用 SPARQL 图形存储协议)。
我有这个免费的Ontology
http://protege.cim3.net/file/pub/ontologies/wine/wine.owl
使用内存服务时不能加载,使用TDB服务时可以加载
这是我的配置
@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 ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#serviceInMemoryWithReasoner>
)
.
# TDB
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
# ------ In memory with reasoner
<#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>];
.
我是不是做错了什么?
我遇到的问题是:
同样,使用 TDB 加载同一文件是有效的
看来您是 运行 无法识别 .owl
的 Fuseki 版本。尝试将文件扩展名更改为 .rdf
.
(因附加信息而编辑)
最新发布的版本 2.3.1 识别 .owl
。
TDB 服务和内存服务的定义可能不同。
显示的服务配置没有加载服务。
http://jena.apache.org/documentation/fuseki2/fuseki-configuration.html
要从 UI 加载,您需要 fuseki:serviceReadWriteGraphStore
(它使用 SPARQL 图形存储协议)。