DatasetGraphCollectionAdd Method |
Adds a Graph to the Collection.
Namespace:
VDS.RDF.Query.Datasets
Assembly:
dotNetRDF (in dotNetRDF.dll) Version:
Syntax protected override bool Add(
IGraph g,
bool mergeIfExists
)
Protected Overrides Function Add (
g As IGraph,
mergeIfExists As Boolean
) As Boolean
Parameters
- g
- Type: VDS.RDFIGraph
Graph to add. - mergeIfExists
- Type: SystemBoolean
Whether to merge the given Graph with any existing Graph with the same URI.
Return Value
Type:
Boolean[Missing <returns> documentation for "M:VDS.RDF.Query.Datasets.DatasetGraphCollection.Add(VDS.RDF.IGraph,System.Boolean)"]
Exceptions Exception | Condition |
---|
RdfException | Thrown if a Graph with the given URI already exists and the mergeIfExists is set to false. |
See Also