格式错误的查询:遇到"“删除"删除 [英] MALFORMED QUERY: Encountered " "delete" "DELETE
本文介绍了格式错误的查询:遇到"“删除"删除的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在尝试删除三元组时,出现以下错误:
While trying to delete triplets I get following error:
MALFORMED QUERY: Encountered " "delete" "DELETE
Was expecting one of:
"base" ...
"prefix" ...
"select" ...
"construct" ...
"describe" ...
"ask" ...
我的查询是:
DELETE {
?s example:id 'Id' .
};
我正在用Jetty做芝麻.我发送了一个HTTP请求.我对此还有一个疑问
Sesame with Jetty is what I am using. I sent an HTTP request. I have another question opened around this
我可能发送到错误的端点.我的端点看起来像:
I might be sending to wrong endpoint. My endpoint looks like:
http://example.com/openrdf-sesame/repositories/ $ repo/
请帮助.
self.baseURLRepositories = storeUrl + "/openrdf-sesame/repositories/"
endpoint = self.getBaseURLForSesameRepositories() + "%s" % (self.getRepository())
params = { 'query': query }
headers = {
'content-type': 'application/x-www-form-urlencoded',
'accept': 'application/sparql-results+json'
}
(response, content) = httplib2.Http().request(endpoint, 'POST', urllib.urlencode(params), headers=headers)
results = json.loads(content)
查询=删除...
推荐答案
您使用的端点位置不正确. SPARQL更新请求应发送到openrdf-sesame/repository/<repid>/statements
.
You are using an incorrect endpoint location. SPARQL update requests should be sent to openrdf-sesame/repository/<repid>/statements
.
这篇关于格式错误的查询:遇到"“删除"删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文