Click or drag to resize

IStorageProviderUpdateGraph Method (Uri, IEnumerableTriple, IEnumerableTriple)

Updates a Graph in the Store.

Namespace:  VDS.RDF.Storage
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
void UpdateGraph(
	Uri graphUri,
	IEnumerable<Triple> additions,
	IEnumerable<Triple> removals
)

Parameters

graphUri
Type: SystemUri
Uri of the Graph to update.
additions
Type: System.Collections.GenericIEnumerableTriple
Triples to add to the Graph.
removals
Type: System.Collections.GenericIEnumerableTriple
Triples to remove from the Graph.
Exceptions
ExceptionCondition
NotSupportedExceptionMay be thrown if the underlying Store is not capable of doing Updates at the Triple level.
RdfStorageExceptionMay be thrown if the underlying Store is not capable of doing Updates at the Triple level or if some error occurs while attempting the Update.
Remarks

Note: Not all Stores are capable of supporting update at the individual Triple level and as such it is acceptable for such a Store to throw a NotSupportedException if the Store cannot provide this functionality.

Behaviour of this method with regards to non-existent Graph is up to the implementor, it may create a new empty Graph and apply the updates to that or it may throw an error. Implementors should state in the XML comments for their implementation what behaviour is implemented.

Implementers MUST allow for either the additions or removals argument to be null.

See Also