Show / Hide Table of Contents

Class DatasetGraphCollection

A Graph Collection which wraps an ISparqlDataset implementation so it can be used as if it was a Graph Collection.
Inheritance
System.Object
BaseGraphCollection
DatasetGraphCollection
Implements
System.Collections.Generic.IEnumerable<IGraph>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
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.Query.Datasets
Assembly: dotNetRDF.dll
Syntax
public class DatasetGraphCollection : BaseGraphCollection, IEnumerable<IGraph>, IEnumerable, IDisposable

Constructors

| Improve this Doc View Source

DatasetGraphCollection(ISparqlDataset)

Creates a new Dataset Graph collection.
Declaration
public DatasetGraphCollection(ISparqlDataset dataset)
Parameters
Type Name Description
ISparqlDataset dataset SPARQL Dataset.

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
System.Int32
Overrides
BaseGraphCollection.Count
| Improve this Doc View Source

GraphUris

Gets the URIs of Graphs in the Collection.
Declaration
public override IEnumerable<Uri> GraphUris { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Uri>
Overrides
BaseGraphCollection.GraphUris
| Improve this Doc View Source

Item[Uri]

Gets the Graph with the given URI.
Declaration
public override IGraph this[Uri graphUri] { get; }
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Property Value
Type Description
IGraph
Overrides
BaseGraphCollection.Item[Uri]

Methods

| Improve this Doc View Source

Add(IGraph, Boolean)

Adds a Graph to the Collection.
Declaration
protected override bool Add(IGraph g, bool mergeIfExists)
Parameters
Type Name Description
IGraph g Graph to add.
System.Boolean mergeIfExists Whether to merge the given Graph with any existing Graph with the same URI.
Returns
Type Description
System.Boolean
Overrides
BaseGraphCollection.Add(IGraph, Boolean)
Exceptions
Type Condition
RdfException Thrown if a Graph with the given URI already exists and the mergeIfExists is set to false.
| Improve this Doc View Source

Contains(Uri)

Gets whether the Collection contains a Graph with the given URI.
Declaration
public override bool Contains(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri Graph URI.
Returns
Type Description
System.Boolean
Overrides
BaseGraphCollection.Contains(Uri)
| Improve this Doc View Source

Dispose()

Disposes of the Graph Collection.
Declaration
public override void Dispose()
Overrides
BaseGraphCollection.Dispose()
| Improve this Doc View Source

GetEnumerator()

Gets the enumeration of Graphs in this Collection.
Declaration
public override IEnumerator<IGraph> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<IGraph>
Overrides
BaseGraphCollection.GetEnumerator()
| Improve this Doc View Source

Remove(Uri)

Removes a Graph from the Collection.
Declaration
protected override bool Remove(Uri graphUri)
Parameters
Type Name Description
System.Uri graphUri URI of the Graph to removed.
Returns
Type Description
System.Boolean
Overrides
BaseGraphCollection.Remove(Uri)

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
    • DatasetGraphCollection(ISparqlDataset)
  • Properties
    • Count
    • GraphUris
    • Item[Uri]
  • Methods
    • Add(IGraph, Boolean)
    • Contains(Uri)
    • Dispose()
    • GetEnumerator()
    • Remove(Uri)
  • Implements
  • Extension Methods
Back to top Generated by DocFX