Skip to content

Instantly share code, notes, and snippets.

@AlBaker
Created December 8, 2013 19:25
Show Gist options
  • Save AlBaker/7862684 to your computer and use it in GitHub Desktop.
Save AlBaker/7862684 to your computer and use it in GitHub Desktop.
// Accepts the SPARQL Update queries
stardog.update("DELETE { ?a ?b \"hello world2\" } INSERT { ?a ?b \"aloha world2\" } WHERE { ?a ?b \"hello world2\" }")
def list = []
stardog.query("SELECT ?x ?y ?z WHERE { ?x ?y \"aloha world2\" } LIMIT 2", { list << it } )
assertTrue(list.size == 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment