Show / Hide Table of Contents

Class TripleCollection

Basic Triple Collection which is not indexed.
Inheritance
System.Object
BaseTripleCollection
TripleCollection
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<Triple>
System.Collections.IEnumerable
Inherited Members
BaseTripleCollection.WithSubject(INode)
BaseTripleCollection.WithPredicate(INode)
BaseTripleCollection.WithObject(INode)
BaseTripleCollection.WithSubjectPredicate(INode, INode)
BaseTripleCollection.WithPredicateObject(INode, INode)
BaseTripleCollection.WithSubjectObject(INode, INode)
BaseTripleCollection.TripleAdded
BaseTripleCollection.TripleRemoved
BaseTripleCollection.RaiseTripleAdded(Triple)
BaseTripleCollection.RaiseTripleRemoved(Triple)
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 class TripleCollection : BaseTripleCollection, IDisposable, IEnumerable<Triple>, IEnumerable

Constructors

| Improve this Doc View Source

TripleCollection()

Creates a new Triple Collection.
Declaration
public TripleCollection()

Fields

| Improve this Doc View Source

_triples

Underlying Storage of the Triple Collection.
Declaration
protected readonly MultiDictionary<Triple, object> _triples
Field Value
Type Description
VDS.Common.Collections.MultiDictionary<Triple, System.Object>

Properties

| Improve this Doc View Source

Count

Gets the Number of Triples in the Triple Collection.
Declaration
public override int Count { get; }
Property Value
Type Description
System.Int32
Overrides
BaseTripleCollection.Count
| Improve this Doc View Source

Item[Triple]

Gets the given Triple.
Declaration
public override Triple this[Triple t] { get; }
Parameters
Type Name Description
Triple t Triple to retrieve.
Property Value
Type Description
Triple
Overrides
BaseTripleCollection.Item[Triple]
Exceptions
Type Condition
System.Collections.Generic.KeyNotFoundException Thrown if the given Triple does not exist in the Triple Collection.
| Improve this Doc View Source

ObjectNodes

Gets all the Nodes which are Objects of Triples in the Triple Collectio.
Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<INode>
Overrides
BaseTripleCollection.ObjectNodes
| Improve this Doc View Source

PredicateNodes

Gets all the Nodes which are Predicates of Triples in the Triple Collection.
Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<INode>
Overrides
BaseTripleCollection.PredicateNodes
| Improve this Doc View Source

SubjectNodes

Gets all the Nodes which are Subjects of Triples in the Triple Collection.
Declaration
public override IEnumerable<INode> SubjectNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<INode>
Overrides
BaseTripleCollection.SubjectNodes

Methods

| Improve this Doc View Source

Add(Triple)

Adds a Triple to the Collection.
Declaration
protected override bool Add(Triple t)
Parameters
Type Name Description
Triple t Triple to add.
Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Add(Triple)
| Improve this Doc View Source

Contains(Triple)

Determines whether a given Triple is in the Triple Collection.
Declaration
public override bool Contains(Triple t)
Parameters
Type Name Description
Triple t The Triple to test.
Returns
Type Description
System.Boolean True if the Triple already exists in the Triple Collection.
Overrides
BaseTripleCollection.Contains(Triple)
| Improve this Doc View Source

Delete(Triple)

Deletes a Triple from the Colleciton.
Declaration
protected override bool Delete(Triple t)
Parameters
Type Name Description
Triple t Triple to remove.
Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Delete(Triple)
Remarks
Deleting something that doesn't exist has no effect and gives no error.
| Improve this Doc View Source

Dispose()

Disposes of a Triple Collection.
Declaration
public override void Dispose()
Overrides
BaseTripleCollection.Dispose()
| Improve this Doc View Source

GetEnumerator()

Gets the Enumerator for the Collection.
Declaration
public override IEnumerator<Triple> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<Triple>
Overrides
BaseTripleCollection.GetEnumerator()

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Gets the Enumerator for the Collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.IDisposable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable

Extension Methods

Extensions.AsEnumerable<T>(T)
Extensions.IsDisjoint<T>(IEnumerable<T>, IEnumerable<T>)
Extensions.ChunkBy<T>(IEnumerable<T>, Int32)
Extensions.WithSubject(IEnumerable<Triple>, INode)
Extensions.WithPredicate(IEnumerable<Triple>, INode)
Extensions.WithObject(IEnumerable<Triple>, INode)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • TripleCollection()
  • Fields
    • _triples
  • Properties
    • Count
    • Item[Triple]
    • ObjectNodes
    • PredicateNodes
    • SubjectNodes
  • Methods
    • Add(Triple)
    • Contains(Triple)
    • Delete(Triple)
    • Dispose()
    • GetEnumerator()
  • Explicit Interface Implementations
    • IEnumerable.GetEnumerator()
  • Implements
  • Extension Methods
Back to top Generated by DocFX