Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Created January 28, 2013 02:43
Show Gist options
  • Save AlBaker/4652590 to your computer and use it in GitHub Desktop.
Save AlBaker/4652590 to your computer and use it in GitHub Desktop.
Stardog projection example
// there is also a projection of the results into the closure's binding
// if x, y, or z are not populated in the answer, then they are still valid binidng but are null
stardog.each("select ?x ?y ?z WHERE { ?x ?y ?z } LIMIT 2", {
println x
println y
println z // may be a LiteralImpl, so you get full access to manipulate Value objects
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment