Class TripleCollection
Basic Triple Collection which is not indexed.
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<Triple>
System.Collections.IEnumerable
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 TripleCollection : BaseTripleCollection, IDisposable, IEnumerable<Triple>, IEnumerable
Constructors
| Improve this Doc View SourceTripleCollection()
Creates a new Triple Collection.
Declaration
public TripleCollection()
Fields
| Improve this Doc View Source_triples
Underlying Storage of the Triple Collection.
Declaration
protected readonly MultiDictionary<Triple, object> _triples
Field Value
Type | Description |
---|---|
VDS.Common.Collections.MultiDictionary<Triple, System.Object> |
Properties
| Improve this Doc View SourceCount
Gets the Number of Triples in the Triple Collection.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
| Improve this Doc View SourceItem[Triple]
Gets the given Triple.
Declaration
public override Triple this[Triple t] { get; }
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple to retrieve. |
Property Value
Type | Description |
---|---|
Triple |
Overrides
Exceptions
Type | Condition |
---|---|
System.Collections.Generic.KeyNotFoundException | Thrown if the given Triple does not exist in the Triple Collection. |
ObjectNodes
Gets all the Nodes which are Objects of Triples in the Triple Collectio.
Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INode> |
Overrides
| Improve this Doc View SourcePredicateNodes
Gets all the Nodes which are Predicates of Triples in the Triple Collection.
Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INode> |
Overrides
| Improve this Doc View SourceSubjectNodes
Gets all the Nodes which are Subjects of Triples in the Triple Collection.
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 to add. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceContains(Triple)
Determines whether a given Triple is in the Triple Collection.
Declaration
public override bool Contains(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | The Triple to test. |
Returns
Type | Description |
---|---|
System.Boolean | True if the Triple already exists in the Triple Collection. |
Overrides
| Improve this Doc View SourceDelete(Triple)
Deletes a Triple from the Colleciton.
Declaration
protected override bool Delete(Triple t)
Parameters
Type | Name | Description |
---|---|---|
Triple | t | Triple to remove. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
Remarks
Deleting something that doesn't exist has no effect and gives no error.
|
Improve this Doc
View Source
Dispose()
Disposes of a Triple 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
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable.GetEnumerator()
Gets the Enumerator for the Collection.
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.IDisposable
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable