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
BaseDemandGraphCollection
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseDemandGraphCollection : WrapperGraphCollection, IEnumerable<IGraph>, IEnumerable, IDisposable
Constructors
| Edit this page 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
| Edit this page 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 |
---|---|---|
Uri | graphUri | Graph URI. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page 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 |
---|---|
bool | 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 |
---|---|---|
Uri | graphUri | URI of the Graph to load. |
Returns
Type | Description |
---|---|
IGraph | A Graph if it could be loaded and throws an error otherwise. |