我想通过 http 向远程端点发送更新。我发现 joseki 就是这样一个端点。
但是,如果我只知道端点的 uri,我如何向该端点发送更新查询?
// To do a select-query you can use this:
QueryExecution qe = QueryExecutionFactory.sparqlService(serviceURI, query);
// (Sidenote:) does the next line have the desired effect of setting the binding?
// After all, sparqlService has no alternative with initialBindang as parameter
qe.setInitialBinding(initialBinding);
result = qe.execSelect();
// But updates do not support this kind of sparqlService method
// Illegal:
// UpdateAction.sparqlServiceExecute(serviceURI, query);
// I can use the following:
UpdateAction.parseExecute(updateQuery, dataset, initialBinding);
// But dataset is a Dataset object, not the uri.
// I don't believe this is the correct way to overcome this:
Dataset dataset = DatasetFactory.create(serviceURI);
否则,我想听听如何对仅知道 URI 的端点进行远程更新查询。
更新:最后 求助于当地的耶拿。这种 RDF 端点接受插入和删除语句。我没有成功找到可以接受修改查询的远程 RDF 端点。