Click or drag to resize

VirtuosoManagerUpdateGraph Method (Uri, IEnumerableTriple, IEnumerableTriple)

Updates a Graph in the Quad Store.

Namespace:  VDS.RDF.Storage
Assembly:  dotNetRDF.Data.Virtuoso (in dotNetRDF.Data.Virtuoso.dll) Version: 2.0.1+5.Branch.master.Sha.2b2692866fdc3f3bb5bc6f318ab2f93abcc1a689
Syntax
public override void UpdateGraph(
	Uri graphUri,
	IEnumerable<Triple> additions,
	IEnumerable<Triple> removals
)

Parameters

graphUri
Type: SystemUri
Graph Uri of the Graph to update.
additions
Type: System.Collections.GenericIEnumerableTriple
Triples to be added.
removals
Type: System.Collections.GenericIEnumerableTriple
Triples to be removed.

Implements

IStorageProviderUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple)
IStorageProviderUpdateGraph(Uri, IEnumerableTriple, IEnumerableTriple)
Remarks

In the case of inserts where blank nodes are present the data will be inserted but new blank nodes will be created. You cannot insert data that refers to existing blank nodes via this method, consider using a INSERT WHERE style SPARQL Update instead.

Note that Blank Nodes cannot always be deleted successfully, if you have retrieved the triples you are now trying to delete from Virtuoso and they contain blank nodes then this will likely work as expected. Otherwise deletetions of Blank Nodes cannot be guaranteed.

If the Graph being modified is relatively small it may be safer to load the graph into memory, makes the modifications there and then persist the graph back to the store (which overwrites the previous version of the graph).

See Also