Class WrapperTripleCollection
Abstract decorator for Triple Collections to make it easier to add additional functionality to existing collections.
Implements
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public abstract class WrapperTripleCollection : BaseTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
Constructors
| Improve this Doc View SourceWrapperTripleCollection()
Creates a new decorator over the default TreeIndexedTripleCollection.
Declaration
public WrapperTripleCollection()
WrapperTripleCollection(BaseTripleCollection)
Creates a new decorator around the given triple collection.
Declaration
public WrapperTripleCollection(BaseTripleCollection tripleCollection)
Parameters
Type | Name | Description |
---|---|---|
BaseTripleCollection | tripleCollection | Triple Collection. |
Fields
| Improve this Doc View Source_triples
Underlying Triple Collection.
Declaration
protected readonly BaseTripleCollection _triples
Field Value
Type | Description |
---|---|
BaseTripleCollection |
Properties
| Improve this Doc View SourceCount
Counts the triples in the collection.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
| Improve this Doc View Sourcethis[Triple]
Gets the specific instance of a Triple from 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<T><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<T><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<T><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)
Gets whether the collection contains the 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<T><Triple> |
Overrides
| Improve this Doc View SourceWithObject(INode)
Gets all the triples with the 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
| Improve this Doc View SourceWithPredicate(INode)
Gets all the triples with the 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
| Improve this Doc View SourceWithPredicateObject(INode, INode)
Gets all the triples with the 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
| Improve this Doc View SourceWithSubject(INode)
Gets all the triples with the 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
| Improve this Doc View SourceWithSubjectObject(INode, INode)
Gets all the triples with the 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
| Improve this Doc View SourceWithSubjectPredicate(INode, INode)
Gets all the triples with the 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> |