Last active
December 18, 2015 10:48
-
-
Save AlBaker/5770707 to your computer and use it in GitHub Desktop.
SNARL Template queryForObject
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 uri = snarlTemplate.queryForObject(sparql, new RowMapper<String>() { | |
String mapRow(BindingSet b) { | |
return b.getValue("myQueryParameter") | |
} | |
}) | |
// OR | |
String result = snarlTemplate.queryForObject(sparql, new SingleMapper("b")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment