Created
December 7, 2013 17:53
-
-
Save AlBaker/7846171 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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