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
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
| 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()
Disposes of the collection.
Declaration
public override void Dispose()
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 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
| Edit this page View SourceWithPredicate(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
| Edit this page View SourceWithPredicateObject(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
| Edit this page View SourceWithSubject(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
| Edit this page View SourceWithSubjectObject(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
| Edit this page View SourceWithSubjectPredicate(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> |