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
System.Object
BaseGraphCollection
WrapperGraphCollection
BaseDemandGraphCollection
DiskDemandGraphCollection
WebDemandGraphCollection
Implements
System.Collections.Generic.IEnumerable<IGraph>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
WrapperGraphCollection._graphs
WrapperGraphCollection.Add(IGraph, Boolean)
WrapperGraphCollection.Count
WrapperGraphCollection.Dispose()
WrapperGraphCollection.GetEnumerator()
WrapperGraphCollection.GraphUris
WrapperGraphCollection.Remove(Uri)
WrapperGraphCollection.Item[Uri]
BaseGraphCollection.IEnumerable.GetEnumerator()
BaseGraphCollection.GraphAdded
BaseGraphCollection.GraphRemoved
BaseGraphCollection.RaiseGraphAdded(IGraph)
BaseGraphCollection.RaiseGraphRemoved(IGraph)
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 Source

BaseDemandGraphCollection()

Creates a new decorator.
Declaration
public BaseDemandGraphCollection()
| Improve this Doc View Source

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 Source

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

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

Extension Methods

Extensions.AsEnumerable<T>(T)
Extensions.IsDisjoint<T>(IEnumerable<T>, IEnumerable<T>)
Extensions.ChunkBy<T>(IEnumerable<T>, Int32)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • BaseDemandGraphCollection()
    • BaseDemandGraphCollection(BaseGraphCollection)
  • Methods
    • Contains(Uri)
    • LoadOnDemand(Uri)
  • Implements
  • Extension Methods
Back to top Generated by DocFX