Class BaseImmutableDataset
Abstract Base Class for Immutable Datasets.
Inherited Members
Namespace: VDS.RDF.Query.Datasets
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseImmutableDataset : BaseDataset, ISparqlDataset, ITripleIndex
Methods
| Edit this page View SourceAddGraph(IGraph)
Throws an exception since Immutable Datasets cannot be altered.
Declaration
public override bool AddGraph(IGraph g)
Parameters
| Type | Name | Description |
|---|---|---|
| IGraph | g | Graph to add. |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceDiscard()
Ensures that any changes to the Dataset (if any) are discarded.
Declaration
public override sealed void Discard()
Overrides
| Edit this page View SourceFlush()
Ensures that any changes to the Dataset (if any) are flushed to the underlying Storage.
Declaration
public override sealed void Flush()
Overrides
| Edit this page View SourceGetModifiableGraph(IRefNode)
Throws an exception since Immutable Datasets cannot be altered.
Declaration
public override IGraph GetModifiableGraph(IRefNode graphName)
Parameters
| Type | Name | Description |
|---|---|---|
| IRefNode | graphName | Graph URI. |
Returns
| Type | Description |
|---|---|
| IGraph |
Overrides
| Edit this page View SourceRemoveGraph(Uri)
Throws an exception since Immutable Datasets cannot be altered.
Declaration
[Obsolete("Replaced by RemoveGraph(IRefNode)")]
public override bool RemoveGraph(Uri graphUri)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | graphUri | Graph URI. |
Returns
| Type | Description |
|---|---|
| bool |