Class BaseImmutableQuadDataset
Abstract Base class for immutable quad datasets.
Inherited Members
Namespace: VDS.RDF.Query.Datasets
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseImmutableQuadDataset : BaseQuadDataset, ISparqlDataset, ITripleIndex
Methods
| Edit this page View SourceAddGraph(IGraph)
Throws an error as this dataset is immutable.
Declaration
public override sealed bool AddGraph(IGraph g)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceAddQuad(Uri, Triple)
Throws an error as this dataset is immutable.
Declaration
[Obsolete("Replaced by AddQuad(IRefNode, Triple)")]
public override bool AddQuad(Uri graphUri, Triple t)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceAddQuad(IRefNode, Triple)
Adds a Quad to the Dataset.
Declaration
public override bool AddQuad(IRefNode graphName, Triple t)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetModifiableGraph(Uri)
Throws an error as this dataset is immutable.
Declaration
[Obsolete("Replaced by GetModifiableGraph(IRefNode)")]
public override sealed IGraph GetModifiableGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
IGraph |
Overrides
| Edit this page View SourceGetModifiableGraph(IRefNode)
Gets the Graph with the given name from the Dataset.
Declaration
public override sealed IGraph GetModifiableGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
IGraph |
Overrides
Remarks
Graphs returned from this method must be modifiable and the Dataset must guarantee that when it is Flushed or Disposed of that any changes to the Graph are persisted.
Exceptions
Type | Condition |
---|---|
NotSupportedException | May be thrown if the Dataset is immutable i.e. Updates not supported. |
RemoveGraph(Uri)
Throws an error as this dataset is immutable.
Declaration
[Obsolete("Replaced by RemoveGraph(IRefNode)")]
public override sealed bool RemoveGraph(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceRemoveGraph(IRefNode)
Removes a Graph from the Dataset.
Declaration
public override bool RemoveGraph(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Returns
Type | Description |
---|---|
bool |
Overrides
Exceptions
Type | Condition |
---|---|
NotSupportedException | May be thrown if the Dataset is immutable i.e. Updates not supported. |
RemoveQuad(Uri, Triple)
Throws an error as this dataset is immutable.
Declaration
[Obsolete("Replacecd by RemoveQuad(IRefNode, Triple)")]
public override bool RemoveQuad(Uri graphUri, Triple t)
Parameters
Type | Name | Description |
---|---|---|
Uri | graphUri | Graph URI. |
Triple | t | Triple. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceRemoveQuad(IRefNode, Triple)
Removes a quad from the dataset.
Declaration
public override bool RemoveQuad(IRefNode graphName, Triple t)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name. |
Triple | t | Triple to remove. |
Returns
Type | Description |
---|---|
bool |