You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by David Moss <ad...@gmail.com> on 2016/10/04 11:44:00 UTC
Don't put when you really want to add!
Not a question but a red faced admission.
String serviceURI = "http://wheremydatawas/ds/data";
DatasetAccessor accessor;
accessor = DatasetAccessorFactory.createHTTP(serviceURI);
System.out.println("Has http://example/update-base/EQ --> " + accessor.containsModel("http://example/update-base/EQ"));
accessor.add("http://example/update-base/EQ", m);
Guess who used
accessor.putModel("http://example/update-base/EQ", m);
for the last line!
.add is non-destructive.
.putModel replaces all the existing data in the named graph with the data in the model.
Fortunately it was only thousands of triples and not millions.
And I still have the CSV it came from.
DM