Click or drag to resize

GraphPersistenceWrapperMerge Method (IGraph, Boolean)

Merges another Graph into the current Graph.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
public virtual void Merge(
	IGraph g,
	bool keepOriginalGraphUri


Type: VDS.RDFIGraph
Graph to Merge into this Graph.
Type: SystemBoolean
Indicates that the Merge should preserve the Graph URIs of Nodes so they refer to the Graph they originated in.


IGraphMerge(IGraph, Boolean)

The Graph on which you invoke this method will preserve its Blank Node IDs while the Blank Nodes from the Graph being merged in will be given new IDs as required in the scope of this Graph.

The Graph will raise the MergeRequested event before the Merge operation which gives any event handlers the oppurtunity to cancel this event. When the Merge operation is completed the Merged event is raised.

See Also