Skip to content

Instantly share code, notes, and snippets.

@rvesse
Last active December 18, 2015 19:29
Show Gist options
  • Save rvesse/5833189 to your computer and use it in GitHub Desktop.
Save rvesse/5833189 to your computer and use it in GitHub Desktop.
// Assumes we already have a StardogConnector in the variable stardog
// Create the Triples we want to remove
NodeFactory factory = new NodeFactory();
List<Triple> toRemove = new List<Triple>();
toRemove.Add(new Triple(factory.CreateUriNode(new Uri("http://subject")),
factory.createUriNode(new Uri("http://predicate")),
factory.CreateUriNode(new Uri("http://object"))
);
// And so forth...
// Now go ahead and remove from our target graph
// Since we don't have any additions we can provide null for that argument
stardog.UpdateGraph(new Uri("http://graph"), null, toRemove);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment