Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Last active August 29, 2015 14:17
Show Gist options
  • Save AlBaker/13651d3213a8f94a5045 to your computer and use it in GitHub Desktop.
Save AlBaker/13651d3213a8f94a5045 to your computer and use it in GitHub Desktop.
@Grab('com.complexible.stardog:stardog-groovy:3.0.0')
import com.complexible.stardog.ext.groovy.Stardog
def stardog = new Stardog([url: "snarl://localhost:5820/", to:"testdb", username:"admin", password:"admin", reasoning:true])
stardog.query("select ?x WHERE { ?x a <urn:SomeSubclass> } LIMIT 2", { println it } ) // <- Stardog answers the query with reasoned relationships!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment