Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Last active December 18, 2015 10:48
Show Gist options
  • Save AlBaker/5770707 to your computer and use it in GitHub Desktop.
Save AlBaker/5770707 to your computer and use it in GitHub Desktop.
SNARL Template queryForObject
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