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.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public class TreeIndexedTripleCollection : AbstractIndexedTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
  Constructors
| Edit this page View SourceTreeIndexedTripleCollection()
Creates a new Tree Indexed triple collection.
Declaration
public TreeIndexedTripleCollection()
  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.  | 
      
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.  | 
      
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.  | 
      
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 Sourcethis[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
| Edit this page View SourceObjectNodes
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
| Edit this page View SourcePredicateNodes
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
| Edit this page View SourceQuotedObjectNodes
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
| Edit this page View SourceQuotedPredicateNodes
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
| Edit this page View SourceQuotedSubjectNodes
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
| Edit this page View SourceSubjectNodes
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
Methods
| Edit this page View SourceDispose(bool)
Disposes of the collection.
Declaration
protected override void Dispose(bool disposing)
  Parameters
| Type | Name | Description | 
|---|---|---|
| bool | disposing | 
Overrides
| Edit this page View SourceIndexAsserted(Triple)
Indexes a Triple.
Declaration
protected override void IndexAsserted(Triple t)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Triple | t | Triple.  | 
      
Overrides
| Edit this page View SourceIndexQuoted(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
| Edit this page View SourceQuotedWithObject(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
| Edit this page View SourceQuotedWithPredicate(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
| Edit this page View SourceQuotedWithPredicateObject(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
| Edit this page View SourceQuotedWithSubject(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
| Edit this page View SourceQuotedWithSubjectObject(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
| Edit this page View SourceQuotedWithSubjectPredicate(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
| Edit this page View SourceUnindexAsserted(Triple)
Unindexes a triple.
Declaration
protected override void UnindexAsserted(Triple t)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Triple | t | Triple.  | 
      
Overrides
| Edit this page View SourceUnindexQuoted(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
| Edit this page View SourceWithObject(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
| Edit this page View SourceWithPredicate(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
| Edit this page View SourceWithPredicateObject(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
| Edit this page View SourceWithSubject(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
| Edit this page View SourceWithSubjectObject(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
| Edit this page View SourceWithSubjectPredicate(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> |