BaseGraphMerge Method (IGraph, Boolean) |
Merges another Graph into the current Graph.
Namespace:
VDS.RDF
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax public virtual void Merge(
IGraph g,
bool keepOriginalGraphUri
)
Public Overridable Sub Merge (
g As IGraph,
keepOriginalGraphUri As Boolean
)
Parameters
- g
- Type: VDS.RDFIGraph
Graph to Merge into this Graph. - keepOriginalGraphUri
- Type: SystemBoolean
Indicates that the Merge should preserve the Graph URIs of Nodes so they refer to the Graph they originated in.
Implements
IGraphMerge(IGraph, Boolean)Remarks
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