Show / Hide Table of Contents

Class TreeIndexedTripleCollection

An indexed triple collection that uses our VDS.Common.Collections.MultiDictionary<TKey, TValue> and VDS.Common.Trees.BinaryTree`2 implementations under the hood for the index structures.
Inheritance
System.Object
BaseTripleCollection
TreeIndexedTripleCollection
Implements
System.Collections.Generic.IEnumerable<Triple>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
BaseTripleCollection.IEnumerable.GetEnumerator()
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 TreeIndexedTripleCollection : BaseTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
Remarks

Constructors

| Improve this Doc View Source

TreeIndexedTripleCollection()

Creates a new Tree Indexed triple collection.
Declaration
public TreeIndexedTripleCollection()
| Improve this Doc View Source

TreeIndexedTripleCollection(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, MultiDictionaryMode)

Creates a new Tree Indexed triple collection with the given Indexing options.
Declaration
public TreeIndexedTripleCollection(bool subjIndex, bool predIndex, bool objIndex, bool subjPredIndex, bool subjObjIndex, bool predObjIndex, MultiDictionaryMode compoundIndexMode)
Parameters
Type Name Description
System.Boolean subjIndex Whether to create a subject index.
System.Boolean predIndex Whether to create a predicate index.
System.Boolean objIndex Whether to create an object index.
System.Boolean subjPredIndex Whether to create a subject predicate index.
System.Boolean subjObjIndex Whether to create a subject object index.
System.Boolean predObjIndex Whether to create a predicate object index.
VDS.Common.Collections.MultiDictionaryMode compoundIndexMode Mode to use for compound indexes.
| Improve this Doc View Source

TreeIndexedTripleCollection(MultiDictionaryMode)

Creates a new Tree Indexed triple collection.
Declaration
public TreeIndexedTripleCollection(MultiDictionaryMode compoundIndexMode)
Parameters
Type Name Description
VDS.Common.Collections.MultiDictionaryMode compoundIndexMode Mode to use for compound indexes.

Properties

| Improve this Doc View Source

Count

Gets the count of triples in the 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 specific instance of a Triple in the collection.
Declaration
public override Triple this[Triple t] { get; }
Parameters
Type Name Description
Triple t Triple.
Property Value
Type Description
Triple
Overrides
BaseTripleCollection.Item[Triple]
| Improve this Doc View Source

ObjectNodes

Gets the Object Nodes.
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 the Predicate Nodes.
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 the Subject Nodes.
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.
Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Add(Triple)
| Improve this Doc View Source

Contains(Triple)

Checks whether the collection contains a given Triple.
Declaration
public override bool Contains(Triple t)
Parameters
Type Name Description
Triple t Triple.
Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Contains(Triple)
| Improve this Doc View Source

Delete(Triple)

Deletes a triple from the collection.
Declaration
protected override bool Delete(Triple t)
Parameters
Type Name Description
Triple t Triple.
Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Delete(Triple)
| Improve this Doc View Source

Dispose()

Disposes of the 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()
| Improve this Doc View Source

WithObject(INode)

Gets all the triples with a given object.
Declaration
public override IEnumerable<Triple> WithObject(INode obj)
Parameters
Type Name Description
INode obj Object.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
Overrides
BaseTripleCollection.WithObject(INode)
| Improve this Doc View Source

WithPredicate(INode)

Gets all the triples with a given predicate.
Declaration
public override IEnumerable<Triple> WithPredicate(INode pred)
Parameters
Type Name Description
INode pred Predicate.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
Overrides
BaseTripleCollection.WithPredicate(INode)
| Improve this Doc View Source

WithPredicateObject(INode, INode)

Gets all the triples with a given predicate and object.
Declaration
public override IEnumerable<Triple> WithPredicateObject(INode pred, INode obj)
Parameters
Type Name Description
INode pred Predicate.
INode obj Object.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
Overrides
BaseTripleCollection.WithPredicateObject(INode, INode)
| Improve this Doc View Source

WithSubject(INode)

Gets all the triples with a given subject.
Declaration
public override IEnumerable<Triple> WithSubject(INode subj)
Parameters
Type Name Description
INode subj Subject.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubject(INode)
| Improve this Doc View Source

WithSubjectObject(INode, INode)

Gets all the triples with a given subject and object.
Declaration
public override IEnumerable<Triple> WithSubjectObject(INode subj, INode obj)
Parameters
Type Name Description
INode subj Subject.
INode obj Object.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubjectObject(INode, INode)
| Improve this Doc View Source

WithSubjectPredicate(INode, INode)

Gets all the triples with a given subject and predicate.
Declaration
public override IEnumerable<Triple> WithSubjectPredicate(INode subj, INode pred)
Parameters
Type Name Description
INode subj Subject.
INode pred Predicate.
Returns
Type Description
System.Collections.Generic.IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubjectPredicate(INode, INode)

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)
Extensions.WithSubject(IEnumerable<Triple>, INode)
Extensions.WithPredicate(IEnumerable<Triple>, INode)
Extensions.WithObject(IEnumerable<Triple>, INode)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • TreeIndexedTripleCollection()
    • TreeIndexedTripleCollection(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, MultiDictionaryMode)
    • TreeIndexedTripleCollection(MultiDictionaryMode)
  • Properties
    • Count
    • Item[Triple]
    • ObjectNodes
    • PredicateNodes
    • SubjectNodes
  • Methods
    • Add(Triple)
    • Contains(Triple)
    • Delete(Triple)
    • Dispose()
    • GetEnumerator()
    • WithObject(INode)
    • WithPredicate(INode)
    • WithPredicateObject(INode, INode)
    • WithSubject(INode)
    • WithSubjectObject(INode, INode)
    • WithSubjectPredicate(INode, INode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX