Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Last active December 11, 2015 19:59
Show Gist options
  • Save AlBaker/4652565 to your computer and use it in GitHub Desktop.
Save AlBaker/4652565 to your computer and use it in GitHub Desktop.
Stardog Connection Example
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