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<T><IGraph>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
protected BaseDemandGraphCollection()
BaseDemandGraphCollection(BaseGraphCollection)
Creates a new decorator over the given graph collection.
Declaration
protected 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
[Obsolete]
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 SourceContains(IRefNode)
Checks whether the graph with the given name exists in this graph collection.
Declaration
public override bool Contains(IRefNode graphName)
Parameters
Type | Name | Description |
---|---|---|
IRefNode | graphName | Graph name to test for. |
Returns
Type | Description |
---|---|
System.Boolean | True if a graph with the specified name is in the collection, false otherwise. |
Overrides
Remarks
The null value is used to reference the default (unnamed) graph.
LoadOnDemand(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