Created
December 18, 2013 09:25
-
-
Save rvesse/8019591 to your computer and use it in GitHub Desktop.
Issuing a parameterised update against Stardog
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
// Assume we have a StardogConnector in the variable stardog | |
// Create the update | |
SparqlParameterizedString updateString = new SparqlParameterizedString(); | |
updateString.CommandText = @"DELETE WHERE | |
{ | |
?s a @type . | |
}"; | |
// Set the parameter | |
updateString.SetUri("type", new Uri("https://ax1tpschgs.proxynodejs.usequeue.com/myType")); | |
// Execute the update | |
stardog.Update(updateString.ToString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment