如何在4 4store中插入带有"where“条件的insert查询--据我所搜索的--我已经知道必须对same.I使用curl命令。
Process p = Runtime.getRuntime().exec(new String[]{"bash","-c","curl -i -d 'update=INSERT+DATA+{+?subject2+<http://www.w3.org/2002/07/owl/sameAs>+?subject3+.+}+WHERE+{+?subject2+<http://localhost:2020/vocab/Schema_feature>+\""+first[0]+"\"+.+?subject3+<http://localhost:2020/vocab/Schema_feature>+\""+first[1]+"\"+.+}' http://localhost:8000/update/"});但这是说“哪里”不应该是there.What我做错了吗?有其他方法可以用简单的插入命令来完成吗?我无法在sparql中工作。
它起作用了,但它是输入空值。我不知道why.When,我检查三元组,看看它们在哪里显示值。
发布于 2015-06-20 15:50:43
你没有
insert data { ... } where { ... }您可以使用以下方法插入常量数据:
insert data { ... }也可以计算要插入的数据。
insert { ... } where { ... }看来后一个就是你想要的。
https://stackoverflow.com/questions/30955091
复制相似问题