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<T><IGraph>
System.Collections.IEnumerable
System.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

| Improve this Doc View Source

BaseDemandGraphCollection()

Creates a new decorator.

Declaration
protected BaseDemandGraphCollection()
| Improve this Doc 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

| 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
[Obsolete]
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

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
System.Boolean

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.

| 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.ChunkBy<T>(IEnumerable<T>, int)
Extensions.IsDisjoint<T>(IEnumerable<T>, IEnumerable<T>)
Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • 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