Click or drag to resize

GraphCollectionAdd Method

Adds a Graph to the Collection.

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
protected override bool Add(
	IGraph g,
	bool mergeIfExists
)

Parameters

g
Type: VDS.RDFIGraph
Graph to add.
mergeIfExists
Type: SystemBoolean
Sets whether the Graph should be merged with an existing Graph of the same Uri if present.

Return Value

Type: Boolean

[Missing <returns> documentation for "M:VDS.RDF.GraphCollection.Add(VDS.RDF.IGraph,System.Boolean)"]

Exceptions
ExceptionCondition
RdfExceptionThrows an RDF Exception if the Graph has no Base Uri or if the Graph already exists in the Collection and the mergeIfExists parameter was not set to true.
See Also