405 HTTP method PUT is not supported by this URL

拜拜、爱过 提交于 2019-12-12 03:46:35

问题


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

It gives me the following error:

405 HTTP method PUT is not supported by this URL http://localhost:3030/tdb/data?default

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?


回答1:


You don't have an endpoint called data supporting the SPARQL Graph Store Protocol defined in your configuration. Try adding fuseki:serviceReadWriteGraphStore "data" ;



来源:https://stackoverflow.com/questions/36767331/405-http-method-put-is-not-supported-by-this-url

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!