Created
December 7, 2013 17:55
-
-
Save AlBaker/7846198 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
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