Skip to content

Instantly share code, notes, and snippets.

@rvesse
Created December 18, 2013 09:25
Show Gist options
  • Save rvesse/8019591 to your computer and use it in GitHub Desktop.
Save rvesse/8019591 to your computer and use it in GitHub Desktop.
Issuing a parameterised update against Stardog
// 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