Last active
December 11, 2015 19:59
-
-
Save AlBaker/4652565 to your computer and use it in GitHub Desktop.
Stardog Connection 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
def stardog = new Stardog([url: "snarl://localhost:5820/", to:"testdb", username:"admin", password:"admin"]) | |
stardog.query("select ?x ?y ?z WHERE { ?x ?y ?z } LIMIT 2", { println it } ) | |
// in this case, it is a BindingSet, ie TupleQueryResult.next() called until exhausted and closure executed | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment