Show / Hide Table of Contents

Class SubTreeIndexedTripleCollection

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
SubTreeIndexedTripleCollection
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 SubTreeIndexedTripleCollection : AbstractIndexedTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
Remarks

A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.

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 triples with a given object.

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

Object.

Returns
Type Description
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithObject(INode)
| Edit this page 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
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithPredicate(INode)
| Edit this page 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
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithPredicateObject(INode, INode)
| Edit this page 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
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubject(INode)
| Edit this page 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
IEnumerable<Triple>
Overrides
BaseTripleCollection.WithSubjectObject(INode, INode)
| Edit this page 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
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
  • 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