RDF4J REST API更新返回500,“事务处理错误:java.util.concurrent。执行异常:java.lang.NullPointerException'

2024-10-02 22:32:26 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用python查询RDF4J的restapi,但是我似乎无法像文档(http://docs.rdf4j.org/rest-api/#_the_rdf4j_server_rest_api)中描述的那样让它正常工作

我正在执行一个select语句,该语句工作正常,但当我尝试执行insert语句时,出现以下错误:

"500, 'Transaction handling error: java.util.concurrent.ExecutionException: java.lang.NullPointerException'"

要执行POST请求,我生成一个事务ID,然后执行实际的POST请求:

^{pr2}$

输出如下:

"C:\Python27\python.exe D:/xamp/cgi-bin/index.py
(500, 'Transaction handling error: java.util.concurrent.ExecutionException: java.lang.NullPointerException')

Process finished with exit code 0

我真的很感激在这方面的帮助。在


Tags: restapilangutilerror语句javapost