Show / Hide Table of Contents

Class WrapperGraphCollection

Abstract decorator for Graph Collections to make it easier to add new functionality to existing implementations.

Inheritance
System.Object
BaseGraphCollection
WrapperGraphCollection
BaseDemandGraphCollection
ThreadSafeGraphCollection
Implements
System.Collections.Generic.IEnumerable<T><IGraph>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
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 WrapperGraphCollection : BaseGraphCollection, IEnumerable<IGraph>, IEnumerable, IDisposable

Constructors

| Improve this Doc View Source

WrapperGraphCollection()

Creates a decorator around a default GraphCollection instance.

Declaration
protected WrapperGraphCollection()
| Improve this Doc View Source

WrapperGraphCollection(BaseGraphCollection)

Creates a decorator around the given graph collection.

Declaration
protected WrapperGraphCollection(BaseGraphCollection graphCollection)
Parameters
Type Name Description
BaseGraphCollection graphCollection

Graph Collection.

Fields

| Improve this Doc View Source

_graphs

Underlying Graph Collection.

Declaration
protected readonly BaseGraphCollection _graphs
Field Value
Type Description
BaseGraphCollection

Properties

| Improve this Doc View Source

Count

Gets the number of Graphs in the collection.

Declaration
public override int Count { get; }
Property Value
Type Description
int
Overrides
BaseGraphCollection.Count
| Improve this Doc View Source

GraphNames

Provides an enumeration of the names of all of teh graphs in the collection.

Declaration
public override IEnumerable<IRefNode> GraphNames { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><IRefNode>
Overrides
BaseGraphCollection.GraphNames
| Improve this Doc View Source

GraphUris

Gets the URIs of the Graphs in the collection.

Declaration
[Obsolete("Replaced by GraphNames")]
public override IEnumerable<Uri> GraphUris { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><System.Uri>
Overrides
BaseGraphCollection.GraphUris
| Improve this Doc View Source

this[Uri]

Gets a Graph from the collection.

Declaration
[Obsolete("Replaced by this[IRefNode]")]
public override IGraph this[Uri graphUri] { get; }
Parameters
Type Name Description
System.Uri graphUri

Graph URI.

Property Value
Type Description
IGraph
Overrides
BaseGraphCollection.this[Uri]
| Improve this Doc View Source

this[IRefNode]

Gets a graph from the collection.

Declaration
public override IGraph this[IRefNode graphName] { get; }
Parameters
Type Name Description
IRefNode graphName

The name of the graph to retrieve.

Property Value
Type Description
IGraph
Overrides
BaseGraphCollection.this[IRefNode]
Remarks

The null value is used to reference the default graph.

Methods

| Improve this Doc View Source

Add(IGraph, bool)

Adds a Graph to the collection.

Declaration
public override bool Add(IGraph g, bool mergeIfExists)
Parameters
Type Name Description
IGraph g

Graph.

System.Boolean mergeIfExists

Whether to merge into an existing Graph with the same URI.

Returns
Type Description
System.Boolean
Overrides
BaseGraphCollection.Add(IGraph, bool)
| Improve this Doc View Source

Contains(Uri)

Gets whether the collection contains the given Graph.

Declaration
[Obsolete("Replaced by Contains(IRefNode)")]
public override bool Contains(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri
Returns
Type Description
System.Boolean
Overrides
BaseGraphCollection.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
BaseGraphCollection.Contains(IRefNode)
Remarks

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

| Improve this Doc View Source

Dispose()

Disposes of the collection.

Declaration
public override void Dispose()
Overrides
BaseGraphCollection.Dispose()
| Improve this Doc View Source

GetEnumerator()

Gets the enumerator for the collection.

Declaration
public override IEnumerator<IGraph> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T><IGraph>
Overrides
BaseGraphCollection.GetEnumerator()
| Improve this Doc View Source

Remove(Uri)

Removes a Graph from the collection.

Declaration
[Obsolete("Replaced by Remove(IRefNode)")]
public override bool Remove(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri

Graph URI.

Returns
Type Description
System.Boolean
Overrides
BaseGraphCollection.Remove(Uri)
| Improve this Doc View Source

Remove(IRefNode)

Removes a graph from the collection.

Declaration
public override bool Remove(IRefNode graphName)
Parameters
Type Name Description
IRefNode graphName

Name of the Graph to remove.

Returns
Type Description
System.Boolean
Overrides
BaseGraphCollection.Remove(IRefNode)
Remarks

The null value is used to reference the Default Graph.

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
    • WrapperGraphCollection()
    • WrapperGraphCollection(BaseGraphCollection)
  • Fields
    • _graphs
  • Properties
    • Count
    • GraphNames
    • GraphUris
    • this[Uri]
    • this[IRefNode]
  • Methods
    • Add(IGraph, bool)
    • Contains(Uri)
    • Contains(IRefNode)
    • Dispose()
    • GetEnumerator()
    • Remove(Uri)
    • Remove(IRefNode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX