【发布时间】:2012-12-04 18:40:39
【问题描述】:
我正在尝试使用 jena arq 使用 SPARQL 更新查询来更新本地 rdf 文件。以下是代码
GraphStore graphstore = GraphStoreFactory.create();
UpdateRequest req = UpdateFactory.create();
req.add(" PREFIX : myprefixuri INSERT DATA { GRAPH file:///path-to-file/file.n3 { :person :name 'xyz'. } } ");
UpdateAction.execute(req, graphstore);
执行代码后提示查询执行成功,但本地文件未更新。
【问题讨论】: