Class WrapperGraphCollection
Abstract decorator for Graph Collections to make it easier to add new functionality to existing implementations.
Inheritance
System.Object
WrapperGraphCollection
Implements
System.Collections.Generic.IEnumerable<IGraph>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
public abstract class WrapperGraphCollection : BaseGraphCollection, IEnumerable<IGraph>, IEnumerable, IDisposable
Constructors
| Improve this Doc View SourceWrapperGraphCollection()
Creates a decorator around a default GraphCollection instance.
Declaration
public WrapperGraphCollection()
WrapperGraphCollection(BaseGraphCollection)
Creates a decorator around the given graph collection.
Declaration
public WrapperGraphCollection(BaseGraphCollection graphCollection)
Parameters
Type | Name | Description |
---|---|---|
BaseGraphCollection | graphCollection | Graph Collection. |
Fields
| Improve this Doc View Source_graphs
Underlying Graph Collection.
Declaration
protected readonly BaseGraphCollection _graphs
Field Value
Type | Description |
---|---|
BaseGraphCollection |
Properties
| Improve this Doc View SourceCount
Gets the number of Graphs in the collection.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceGraphUris
Gets the URIs of the Graphs in the collection.
Declaration
public override IEnumerable<Uri> GraphUris { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Uri> |
Overrides
| Improve this Doc View SourceItem[Uri]
Gets a Graph from the collection.
Declaration
public override IGraph this[Uri graphUri] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | Graph URI. |
Property Value
Type | Description |
---|---|
IGraph |
Overrides
Methods
| Improve this Doc View SourceAdd(IGraph, Boolean)
Adds a Graph to the collection.
Declaration
protected override bool Add(IGraph g, bool mergeIfExists)
Parameters
Type | Name | Description |
---|---|---|
IGraph | g | Graph. |
System.Boolean | mergeIfExists | Whether to merge into an existing Graph with the same URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceContains(Uri)
Gets whether the collection contains the given Graph.
Declaration
public override bool Contains(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceDispose()
Disposes of the collection.
Declaration
public override void Dispose()
Overrides
| Improve this Doc View SourceGetEnumerator()
Gets the enumerator for the collection.
Declaration
public override IEnumerator<IGraph> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<IGraph> |
Overrides
| Improve this Doc View SourceRemove(Uri)
Removes a Graph from the collection.
Declaration
protected override bool Remove(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable