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<TKey, TValue> implementations under the hood for the index structures.

Inheritance
object
BaseTripleCollection
AbstractIndexedTripleCollection
TreeIndexedTripleCollection
Implements
IEnumerable<Triple>
IEnumerable
IDisposable
Inherited Members
AbstractIndexedTripleCollection.Triples
AbstractIndexedTripleCollection.Count
AbstractIndexedTripleCollection.QuotedCount
AbstractIndexedTripleCollection.Contains(Triple)
AbstractIndexedTripleCollection.ContainsQuoted(Triple)
AbstractIndexedTripleCollection.GetEnumerator()
AbstractIndexedTripleCollection.Asserted
AbstractIndexedTripleCollection.Quoted
AbstractIndexedTripleCollection.Add(Triple)
AbstractIndexedTripleCollection.Delete(Triple)
AbstractIndexedTripleCollection.AddQuoted(ITripleNode)
AbstractIndexedTripleCollection.RemoveQuoted(ITripleNode)
BaseTripleCollection.this[(INode s, INode p, INode o)]
BaseTripleCollection.TripleAdded
BaseTripleCollection.TripleRemoved
BaseTripleCollection.RaiseTripleAdded(Triple)
BaseTripleCollection.RaiseTripleRemoved(Triple)
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 class TreeIndexedTripleCollection : AbstractIndexedTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable

Constructors

| Edit this page View Source

TreeIndexedTripleCollection()

Creates a new Tree Indexed triple collection.

Declaration
public TreeIndexedTripleCollection()
| Edit this page View Source

TreeIndexedTripleCollection(bool)

Creates a new Tree Indexed triple collection.

Declaration
public TreeIndexedTripleCollection(bool fullTripleIndexing)
Parameters
Type Name Description
bool fullTripleIndexing

Whether to create subject-predicate, subject-object and subject-predicate indexes in addition to the basic subject, predicate and object indexes. Defaults to true.

| Edit this page View Source

TreeIndexedTripleCollection(bool, bool, bool, bool, bool, bool, bool, 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, bool indexQuoted, MultiDictionaryMode compoundIndexMode)
Parameters
Type Name Description
bool subjIndex

Whether to create a subject index.

bool predIndex

Whether to create a predicate index.

bool objIndex

Whether to create an object index.

bool subjPredIndex

Whether to create a subject predicate index.

bool subjObjIndex

Whether to create a subject object index.

bool predObjIndex

Whether to create a predicate object index.

bool indexQuoted

Whether to create the same set of indexes for quoted triples.

MultiDictionaryMode compoundIndexMode

Mode to use for compound indexes.

| Edit this page View Source

TreeIndexedTripleCollection(bool, bool, bool, bool, bool, bool, 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
bool subjIndex

Whether to create a subject index.

bool predIndex

Whether to create a predicate index.

bool objIndex

Whether to create an object index.

bool subjPredIndex

Whether to create a subject predicate index.

bool subjObjIndex

Whether to create a subject object index.

bool predObjIndex

Whether to create a predicate object index.

MultiDictionaryMode compoundIndexMode

Mode to use for compound indexes.

| Edit this page View Source

TreeIndexedTripleCollection(MultiDictionaryMode, bool)

Creates a new Tree Indexed triple collection.

Declaration
public TreeIndexedTripleCollection(MultiDictionaryMode compoundIndexMode, bool fullTripleIndexing = true)
Parameters
Type Name Description
MultiDictionaryMode compoundIndexMode

Mode to use for compound indexes.

bool fullTripleIndexing

Whether to create subject-predicate, subject-object and subject-predicate indexes in addition to the basic subject, predicate and object indexes. Defaults to true.

Properties

| Edit this page View Source

this[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.this[Triple]
| Edit this page View Source

ObjectNodes

Gets all the nodes which are objects of asserted triples in the triple collection.

Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.ObjectNodes
| Edit this page View Source

PredicateNodes

Gets all the nodes which are predicates of asserted triples in the triple collection.

Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.PredicateNodes
| Edit this page View Source

QuotedObjectNodes

Gets all the nodes which are subjects of quoted triples in the triple collection.

Declaration
public override IEnumerable<INode> QuotedObjectNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.QuotedObjectNodes
| Edit this page View Source

QuotedPredicateNodes

Gets all the nodes which are predicates of quoted triples in the triple collection.

Declaration
public override IEnumerable<INode> QuotedPredicateNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.QuotedPredicateNodes
| Edit this page View Source

QuotedSubjectNodes

Gets all the nodes which are objects of quoted triples in the triple collection.

Declaration
public override IEnumerable<INode> QuotedSubjectNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.QuotedSubjectNodes
| Edit this page View Source

SubjectNodes

Gets all the nodes which are subjects of asserted triples in the triple collection.

Declaration
public override IEnumerable<INode> SubjectNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.SubjectNodes

Methods

| Edit this page View Source

Dispose()

Disposes of the collection.

Declaration
public override void Dispose()
Overrides
BaseTripleCollection.Dispose()
| Edit this page View Source

IndexAsserted(Triple)

Indexes a Triple.

Declaration
protected override void IndexAsserted(Triple t)
Parameters
Type Name Description
Triple t

Triple.

Overrides
AbstractIndexedTripleCollection.IndexAsserted(Triple)
| Edit this page View Source

IndexQuoted(Triple)

Override in derived classes to add a quoted triple to the index.

Declaration
protected override void IndexQuoted(Triple t)
Parameters
Type Name Description
Triple t

Triple to add.

Overrides
AbstractIndexedTripleCollection.IndexQuoted(Triple)
| Edit this page View Source

QuotedWithObject(INode)

Gets all the quoted triples with the given Object.

Declaration
public override IEnumerable<Triple> QuotedWithObject(INode obj)
Parameters
Type Name Description
INode obj

Object to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.QuotedWithObject(INode)
| Edit this page View Source

QuotedWithPredicate(INode)

Gets all the quoted triples with the given Predicate.

Declaration
public override IEnumerable<Triple> QuotedWithPredicate(INode pred)
Parameters
Type Name Description
INode pred

Predicate to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.QuotedWithPredicate(INode)
| Edit this page View Source

QuotedWithPredicateObject(INode, INode)

Gets all the quoted triples with the given Predicate Object pair.

Declaration
public override IEnumerable<Triple> QuotedWithPredicateObject(INode pred, INode obj)
Parameters
Type Name Description
INode pred

Predicate to lookup.

INode obj

Object to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.QuotedWithPredicateObject(INode, INode)
| Edit this page View Source

QuotedWithSubject(INode)

Gets all quoted triples with the given subject.

Declaration
public override IEnumerable<Triple> QuotedWithSubject(INode subj)
Parameters
Type Name Description
INode subj

Subject to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.QuotedWithSubject(INode)
| Edit this page View Source

QuotedWithSubjectObject(INode, INode)

Gets all the quoted triples with the given Subject Object pair.

Declaration
public override IEnumerable<Triple> QuotedWithSubjectObject(INode subj, INode obj)
Parameters
Type Name Description
INode subj

Subject to lookup.

INode obj

Object to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.QuotedWithSubjectObject(INode, INode)
| Edit this page View Source

QuotedWithSubjectPredicate(INode, INode)

Gets all the quoted triples with the given Subject Predicate pair.

Declaration
public override IEnumerable<Triple> QuotedWithSubjectPredicate(INode subj, INode pred)
Parameters
Type Name Description
INode subj

Subject to lookup.

INode pred

Predicate to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.QuotedWithSubjectPredicate(INode, INode)
| Edit this page View Source

UnindexAsserted(Triple)

Unindexes a triple.

Declaration
protected override void UnindexAsserted(Triple t)
Parameters
Type Name Description
Triple t

Triple.

Overrides
AbstractIndexedTripleCollection.UnindexAsserted(Triple)
| Edit this page View Source

UnindexQuoted(Triple)

Override in derived classes to remove a quoted triple from the index.

Declaration
protected override void UnindexQuoted(Triple t)
Parameters
Type Name Description
Triple t
Overrides
AbstractIndexedTripleCollection.UnindexQuoted(Triple)
| Edit this page View Source

WithObject(INode)

Gets all the asserted triples with the given object.

Declaration
public override IEnumerable<Triple> WithObject(INode obj)
Parameters
Type Name Description
INode obj

Object to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithObject(INode)
| Edit this page View Source

WithPredicate(INode)

Gets all the asserted triples with the given predicate.

Declaration
public override IEnumerable<Triple> WithPredicate(INode pred)
Parameters
Type Name Description
INode pred

Predicate to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithPredicate(INode)
| Edit this page View Source

WithPredicateObject(INode, INode)

Gets all the Triples with the given Predicate Object pair.

Declaration
public override IEnumerable<Triple> WithPredicateObject(INode pred, INode obj)
Parameters
Type Name Description
INode pred

Predicate to lookup.

INode obj

Object to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithPredicateObject(INode, INode)
| Edit this page View Source

WithSubject(INode)

Gets all the asserted triples with the given subject.

Declaration
public override IEnumerable<Triple> WithSubject(INode subj)
Parameters
Type Name Description
INode subj

Subject to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubject(INode)
| Edit this page View Source

WithSubjectObject(INode, INode)

Gets all the Triples with the given Subject Object pair.

Declaration
public override IEnumerable<Triple> WithSubjectObject(INode subj, INode obj)
Parameters
Type Name Description
INode subj

Subject to lookup.

INode obj

Object to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubjectObject(INode, INode)
| Edit this page View Source

WithSubjectPredicate(INode, INode)

Gets all the asserted triples with the given subject/predicate pair.

Declaration
public override IEnumerable<Triple> WithSubjectPredicate(INode subj, INode pred)
Parameters
Type Name Description
INode subj

Subject to lookup.

INode pred

Predicate to lookup.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubjectPredicate(INode, INode)

Implements

IEnumerable<T>
IEnumerable
IDisposable

Extension Methods

Extensions.ChunkBy<T>(IEnumerable<T>, int)
Extensions.IsDisjoint<T>(IEnumerable<T>, IEnumerable<T>)
Extensions.WithObject(IEnumerable<Triple>, INode)
Extensions.WithPredicate(IEnumerable<Triple>, INode)
Extensions.WithSubject(IEnumerable<Triple>, INode)
LiteralExtensions.ToTripleCollection(IEnumerable<Triple>, bool)
Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • TreeIndexedTripleCollection()
    • TreeIndexedTripleCollection(bool)
    • TreeIndexedTripleCollection(bool, bool, bool, bool, bool, bool, bool, MultiDictionaryMode)
    • TreeIndexedTripleCollection(bool, bool, bool, bool, bool, bool, MultiDictionaryMode)
    • TreeIndexedTripleCollection(MultiDictionaryMode, bool)
  • Properties
    • this[Triple]
    • ObjectNodes
    • PredicateNodes
    • QuotedObjectNodes
    • QuotedPredicateNodes
    • QuotedSubjectNodes
    • SubjectNodes
  • Methods
    • Dispose()
    • IndexAsserted(Triple)
    • IndexQuoted(Triple)
    • QuotedWithObject(INode)
    • QuotedWithPredicate(INode)
    • QuotedWithPredicateObject(INode, INode)
    • QuotedWithSubject(INode)
    • QuotedWithSubjectObject(INode, INode)
    • QuotedWithSubjectPredicate(INode, INode)
    • UnindexAsserted(Triple)
    • UnindexQuoted(Triple)
    • WithObject(INode)
    • WithPredicate(INode)
    • WithPredicateObject(INode, INode)
    • WithSubject(INode)
    • WithSubjectObject(INode, INode)
    • WithSubjectPredicate(INode, INode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX