Jena Fuseki Sparql No query= error

ⅰ亾dé卋堺 提交于 2019-12-02 17:32:24

问题


I am trying to inset data in a jena fuseki graph using this simple query:

PREFIX test: <http://test.org> 
INSERT {?subject test:hasName "Bob"} 
WHERE{
  ?subject test:hasEmail "email@test.com" .
}

However, i get the error: Error 400: SPARQL Query: No 'query=' parameter

Fuseki - version 2.3.1 (Build date: 2015-12-08T09:24:07+0000)

What does this error mean, and how can i resolve it? this error also appear when i try to delete data. Thanks.


回答1:


Make sure you are pointing at the appropriate endpoint. In Fuseki the queries endpoint (for example, http://localhost:13030/mygraph/query) is different than the update endpoint (http://localhost:13030/mygraph/update).

Selects, asks and constructs should be done using the first one, while updates, inserts and deletes should be done using the second one.



来源:https://stackoverflow.com/questions/35451715/jena-fuseki-sparql-no-query-error

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