Last active
December 18, 2015 19:29
-
-
Save rvesse/5833189 to your computer and use it in GitHub Desktop.
This file contains 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
// 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