Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Created December 7, 2013 17:53
Show Gist options
  • Save AlBaker/7846171 to your computer and use it in GitHub Desktop.
Save AlBaker/7846171 to your computer and use it in GitHub Desktop.
SnarlTemplate tmp = new SnarlTemplate();
tmp.setDataSource(dataSource);
String sparql = "DELETE { ?a ?b \"aloha world\" } INSERT { ?a ?b \"shalom world\" } WHERE { ?a ?b \"aloha world\" }";
Map<String, Object> params = new HashMap<String, Object>() {{
put("b", new URIImpl(uriB));
}};
// Execute the SPARQL Update query
tmp.update(sparql, params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment