Created
January 28, 2013 02:43
-
-
Save AlBaker/4652590 to your computer and use it in GitHub Desktop.
Stardog projection example
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
// 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