我有一个REST服务,用于将数据发送到三元组:
VirtGraph virtGraph = new VirtGraph ("jdbc:virtuoso://localhost:1111", "demo", "demo");
Model virtModel = new VirtModel(virtGraph);
VirtuosoUpdateRequest vur = VirtuosoUpdateFactory.create(str, virtGraph);
vur.exec();
virtGraph.close();
虽然存储了数据,但我得到的答案是:
com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
com.hp.hpl.jena.update.UpdateException: Convert results are FAILED.:
at virtuoso.jena.driver.VirtuosoUpdateRequest.exec(VirtuosoUpdateRequest.java:72)
所需的所有库都在项目的Web文件夹中。有什么想法吗?