Show / Hide Table of Contents

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
object
BaseGraphCollection
WrapperGraphCollection
BaseDemandGraphCollection
DiskDemandGraphCollection
WebDemandGraphCollection
Implements
IEnumerable<IGraph>
IEnumerable
IDisposable
Inherited Members
WrapperGraphCollection._graphs
WrapperGraphCollection.Add(IGraph, bool)
WrapperGraphCollection.Count
WrapperGraphCollection.Dispose()
WrapperGraphCollection.GetEnumerator()
WrapperGraphCollection.GraphUris
WrapperGraphCollection.GraphNames
WrapperGraphCollection.Remove(Uri)
WrapperGraphCollection.Remove(IRefNode)
WrapperGraphCollection.this[Uri]
WrapperGraphCollection.this[IRefNode]
BaseGraphCollection.GraphAdded
BaseGraphCollection.GraphRemoved
BaseGraphCollection.RaiseGraphAdded(IGraph)
BaseGraphCollection.RaiseGraphRemoved(IGraph)
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

| Edit this page View Source

BaseDemandGraphCollection()

Creates a new decorator.

Declaration
protected BaseDemandGraphCollection()
| Edit this page View Source

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 Source

Contains(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
WrapperGraphCollection.Contains(Uri)
| Edit this page View Source

Contains(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
WrapperGraphCollection.Contains(IRefNode)
Remarks

The null value is used to reference the default (unnamed) graph.

| Edit this page View Source

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.

Implements

IEnumerable<T>
IEnumerable
IDisposable

Extension Methods

Extensions.ChunkBy<T>(IEnumerable<T>, int)
Extensions.IsDisjoint<T>(IEnumerable<T>, IEnumerable<T>)
Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • BaseDemandGraphCollection()
    • BaseDemandGraphCollection(BaseGraphCollection)
  • Methods
    • Contains(Uri)
    • Contains(IRefNode)
    • LoadOnDemand(Uri)
  • Implements
  • Extension Methods
Back to top Generated by DocFX