Class BaseDemandGraphCollection
A decorator for graph collections that allows for graphs to be loaded on demand if they don't exist in the underlying graph collection.
Inheritance
System.Object
BaseDemandGraphCollection
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 BaseDemandGraphCollection : WrapperGraphCollection, IEnumerable<IGraph>, IEnumerable, IDisposable
Constructors
| Improve this Doc View SourceBaseDemandGraphCollection()
Creates a new decorator.
Declaration
public BaseDemandGraphCollection()
BaseDemandGraphCollection(BaseGraphCollection)
Creates a new decorator over the given graph collection.
Declaration
public BaseDemandGraphCollection(BaseGraphCollection collection)
Parameters
Type | Name | Description |
---|---|---|
BaseGraphCollection | collection | Graph Collection. |
Methods
| Improve this Doc View SourceContains(Uri)
Checks whether the collection contains a Graph invoking an on-demand load if not present in the underlying collection.
Declaration
public override bool Contains(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceLoadOnDemand(Uri)
Loads a Graph on demand.
Declaration
protected abstract IGraph LoadOnDemand(Uri graphUri)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | graphUri | URI of the Graph to load. |
Returns
Type | Description |
---|---|
IGraph | A Graph if it could be loaded and throws an error otherwise. |
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable