Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Created December 7, 2013 17:55
Show Gist options
  • Save AlBaker/7846198 to your computer and use it in GitHub Desktop.
Save AlBaker/7846198 to your computer and use it in GitHub Desktop.
String sparql = "ASK { ?a ?b \"aloha world\" }";
Map<String, Object> params = new HashMap<String, Object>() {{
put("b", new URIImpl(uriB));
}};
// SnarlTemplate returns boolean for ask
// Also parameter binding in the query is supported
boolean result = tmp.ask(sparql, params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment