Jena Fuseki Sparql没有查询=错误 [英] Jena Fuseki Sparql No query= error
问题描述
我正在尝试使用以下简单查询来插入jena fuseki图中的数据:
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" .
}
但是,我得到了错误: 错误400:SPARQL查询:没有"query ="参数
However, i get the error: Error 400: SPARQL Query: No 'query=' parameter
Fuseki-版本2.3.1(构建日期:2015-12-08T09:24:07 + 0000)
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.
推荐答案
请确保您指向适当的端点. 在Fuseki中,查询端点(例如, http://localhost:13030/mygraph/query )与更新终结点( http://localhost:13030/mygraph/更新 ).
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.
这篇关于Jena Fuseki Sparql没有查询=错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!