【发布时间】:2013-07-18 13:22:36
【问题描述】:
我的问题基本上是如何使用 Tinkerpop 创建的 SailGraph 正确执行 SPARQL 更新。
DELETE { ?i_id_iri rdfs:label "BII-I-1" }
INSERT { ?i_id_iri rdfs:label "BII-I-4" }
WHERE
{
?investigation rdf:type obi:0000011.
?i_id_iri rdf:type iao:0000577.
?i_id_iri iao:0000219 ?investigation.
}
到目前为止,我有这个查询,前缀是从另一个文件添加到顶部的,但它不起作用。 我运行的代码如下
query = parser.parseUpdate(queryString, baseURI);
UpdateExpr expr = query.getUpdateExprs().get(0);
Dataset dataset = query.getDatasetMapping().get(expr);
GraphDatabase.getSailConnection().executeUpdate(expr, dataset, new EmptyBindingSet(), false);
【问题讨论】:
-
在什么意义上它不起作用?错误,数据未按预期修改,还有什么?
-
查询已成功执行,但是当我尝试使用应该已替换的旧 id 检索时,它仍然存在
-
底层数据库是Neo4J,并从中初始化帆图
-
你有显示这个的小测试用例,所以我可以在本地测试吗?
标签: neo4j rdf sparql owl tinkerpop