Class TreeIndexedTripleCollection
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.
Implements
System.Collections.Generic.IEnumerable<Triple>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRDF.dll
Syntax
public class TreeIndexedTripleCollection : BaseTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
Remarks
Constructors
| Improve this Doc View SourceTreeIndexedTripleCollection()
Creates a new Tree Indexed triple collection.
Declaration
public TreeIndexedTripleCollection()
TreeIndexedTripleCollection(Boolean, Boolean, Boolean, Boolean, Boolean, Boolean, 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 |
---|---|---|
System.Boolean | subjIndex | Whether to create a subject index. |
System.Boolean | predIndex | Whether to create a predicate index. |
System.Boolean | objIndex | Whether to create an object index. |
System.Boolean | subjPredIndex | Whether to create a subject predicate index. |
System.Boolean | subjObjIndex | Whether to create a subject object index. |
System.Boolean | predObjIndex | Whether to create a predicate object index. |
VDS.Common.Collections.MultiDictionaryMode | compoundIndexMode | Mode to use for compound indexes. |
TreeIndexedTripleCollection(MultiDictionaryMode)
Creates a new Tree Indexed triple collection.
Declaration
public TreeIndexedTripleCollection(MultiDictionaryMode compoundIndexMode)
Parameters
Type | Name | Description |
---|---|---|
VDS.Common.Collections.MultiDictionaryMode | compoundIndexMode | Mode to use for compound indexes. |
Properties
| Improve this Doc View SourceCount
Gets the count of triples in the collection.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceItem[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
| Improve this Doc View SourceObjectNodes
Gets the Object Nodes.
Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INode> |
Overrides
| Improve this Doc View SourcePredicateNodes
Gets the Predicate Nodes.
Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INode> |
Overrides
| Improve this Doc View SourceSubjectNodes
Gets the Subject Nodes.
Declaration
public override IEnumerable<INode> SubjectNodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INode> |
Overrides
Methods
| Improve this Doc View SourceAdd(Triple)
Adds a Triple to the collection.
Declaration
protected override bool Add(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceContains(Triple)
Checks whether the collection contains a given Triple.
Declaration
public override bool Contains(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceDelete(Triple)
Deletes a triple from the collection.
Declaration
protected override bool Delete(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceDispose()
Disposes of the collection.
Declaration
public override void Dispose()
Overrides
| Improve this Doc View SourceGetEnumerator()
Gets the enumerator for the collection.
Declaration
public override IEnumerator<Triple> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<Triple> |
Overrides
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<Triple> |
Overrides
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<Triple> |
Overrides
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<Triple> |
Overrides
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<Triple> |
Overrides
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<Triple> |
Overrides
| Improve this Doc 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 |
---|---|
System.Collections.Generic.IEnumerable<Triple> |
Overrides
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.IDisposable