Class WrapperTripleCollection
Abstract decorator for Triple Collections to make it easier to add additional functionality to existing collections.
Inherited Members
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public abstract class WrapperTripleCollection : BaseTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
Constructors
| Edit this page 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
| Edit this page View Source_triples
Underlying Triple Collection.
Declaration
protected readonly BaseTripleCollection _triples
Field Value
Type | Description |
---|---|
BaseTripleCollection |
Properties
| Edit this page View SourceCount
Counts the triples in the collection.
Declaration
public override int Count { get; }
Property Value
Type | Description |
---|---|
int |
Overrides
| Edit this page 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
| Edit this page View SourceObjectNodes
Gets the object nodes.
Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Overrides
| Edit this page View SourcePredicateNodes
Gets the predicate nodes.
Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Overrides
| Edit this page View SourceSubjectNodes
Gets the subject nodes.
Declaration
public override IEnumerable<INode> SubjectNodes { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Overrides
Methods
| Edit this page 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 |
---|---|
bool |
Overrides
| Edit this page 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 |
---|---|
bool |
Overrides
| Edit this page 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 |
---|---|
bool |
Overrides
| Edit this page View SourceDispose()
Disposes of the collection.
Declaration
public override void Dispose()
Overrides
| Edit this page View SourceGetEnumerator()
Gets the enumerator for the collection.
Declaration
public override IEnumerator<Triple> GetEnumerator()
Returns
Type | Description |
---|---|
IEnumerator<Triple> |
Overrides
| Edit this page 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 |
---|---|
IEnumerable<Triple> |
Overrides
| Edit this page 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 |
---|---|
IEnumerable<Triple> |
Overrides
| Edit this page 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 |
---|---|
IEnumerable<Triple> |
Overrides
| Edit this page 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 |
---|---|
IEnumerable<Triple> |
Overrides
| Edit this page 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 |
---|---|
IEnumerable<Triple> |
Overrides
| Edit this page 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 |
---|---|
IEnumerable<Triple> |