Class SubTreeIndexedTripleCollection
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
Implements
Inherited Members
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
| Improve this Doc 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
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><INode> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><INode> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><INode> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><INode> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><INode> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><INode> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
Methods
| Improve this Doc View SourceDispose()
Disposes of the collection.
Declaration
public override void Dispose()
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
IndexAsserted(Triple)
Indexes a Triple.
Declaration
protected override void IndexAsserted(Triple t)
Parameters
| Type | Name | Description |
|---|---|---|
| Triple | t | Triple. |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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 |
|---|---|
| System.Collections.Generic.IEnumerable<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
UnindexAsserted(Triple)
Unindexes a triple.
Declaration
protected override void UnindexAsserted(Triple t)
Parameters
| Type | Name | Description |
|---|---|---|
| Triple | t | Triple. |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.
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<T><Triple> |
Overrides
Remarks
A variation on TreeIndexedTripleCollection which structures the indexes slightly differently, this may give differing performance and reduced memory usage in some scenarios.