405 URL不支持HTTP方法PUT [英] 405 HTTP method PUT is not supported by this URL
本文介绍了405 URL不支持HTTP方法PUT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下配置启动了Fuseki服务器:
I started Fuseki server using this configuration:
@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 sdb: <http://jena.hpl.hp.com/2007/sdb#> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#memory>
<#tdb>
#<#mysql>
) .
# Custom code.
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
#[] ja:loadClass "com.hp.hpl.jena.sdb.SDB" .
########################################################################
#In Memory
<#memory> rdf:type fuseki:Service ;
fuseki:name "memory" ; # http://host/inf
fuseki:serviceQuery "sparql" ; # SPARQL query service
fuseki:serviceUpdate "update" ;
fuseki:dataset <#dataset1> ; #select which set to
. #use
<#dataset1> rdf:type ja:RDFDataset ;
ja:defaultGraph <#model_inf_1> ;
.
<#model_inf_1> rdfs:label "Inf-1" ;
ja:reasoner
[ ja:reasonerURL
<http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>];
.
########################################################################
# TDB
<#tdb> rdf:type fuseki:Service ;
fuseki:name "tdb" ; # http://host/inf
fuseki:serviceQuery "sparql" ; # SPARQL query service
fuseki:serviceUpdate "update" ;
fuseki:dataset <#dataset2> ; #select which set to
. #use
tdb:GraphTDB rdfs:subClassOf ja:Model .
<#dataset2> rdf:type ja:RDFDataset ;
ja:defaultGraph <#model2>;
.
<#model2> a ja:InfModel;
ja:baseModel <#tdbGraph>;
ja:reasoner
[ ja:reasonerURL
<http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>];
.
<#tdbGraph> rdf:type tdb:GraphTDB;
tdb:location "DB";
.
然后我尝试按如下方式上传本体:
Then I try to upload the ontology as follows:
./s-put http://localhost:3030/tdb/data default /home/gosper/Desktop/tools/jena-fuseki1-1.3.1/Data/pizza.owl
它给了我以下错误:
405 HTTP method PUT is not supported by this URL http://localhost:3030/tdb/data?default
我也尝试了以下URL,但无济于事.
I also tried the following URLs but nothing works.:
http://localhost:3030/dataset/data
http://localhost:3030/dataset2/data
您知道如何解决此问题吗?
Any idea how to fix this issue?
推荐答案
您没有名为data的端点,该端点支持在配置中定义的SPARQL图形存储协议.
尝试添加fuseki:serviceReadWriteGraphStore "data" ;
You don't have an endpoint called data supporting the SPARQL Graph Store Protocol defined in your configuration.
Try adding fuseki:serviceReadWriteGraphStore "data" ;
这篇关于405 URL不支持HTTP方法PUT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文