Last active
August 29, 2015 14:17
-
-
Save AlBaker/13651d3213a8f94a5045 to your computer and use it in GitHub Desktop.
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
@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