Show / Hide Table of Contents

Class WrapperTripleCollection

Abstract decorator for Triple Collections to make it easier to add additional functionality to existing collections.

Inheritance
object
BaseTripleCollection
WrapperTripleCollection
ThreadSafeTripleCollection
Implements
IEnumerable<Triple>
IEnumerable
IDisposable
Inherited Members
BaseTripleCollection.ContainsQuoted(Triple)
BaseTripleCollection.QuotedCount
BaseTripleCollection.this[(INode s, INode p, INode o)]
BaseTripleCollection.QuotedObjectNodes
BaseTripleCollection.QuotedPredicateNodes
BaseTripleCollection.QuotedSubjectNodes
BaseTripleCollection.QuotedWithSubject(INode)
BaseTripleCollection.QuotedWithPredicate(INode)
BaseTripleCollection.QuotedWithObject(INode)
BaseTripleCollection.QuotedWithSubjectPredicate(INode, INode)
BaseTripleCollection.QuotedWithPredicateObject(INode, INode)
BaseTripleCollection.QuotedWithSubjectObject(INode, INode)
BaseTripleCollection.Asserted
BaseTripleCollection.Quoted
BaseTripleCollection.TripleAdded
BaseTripleCollection.TripleRemoved
BaseTripleCollection.RaiseTripleAdded(Triple)
BaseTripleCollection.RaiseTripleRemoved(Triple)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: VDS.RDF
Assembly: dotNetRdf.dll
Syntax
public abstract class WrapperTripleCollection : BaseTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable

Constructors

| Edit this page View Source

WrapperTripleCollection()

Creates a new decorator over the default TreeIndexedTripleCollection.

Declaration
public WrapperTripleCollection()
| Edit this page View Source

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 Source

Count

Counts the triples in the collection.

Declaration
public override int Count { get; }
Property Value
Type Description
int
Overrides
BaseTripleCollection.Count
| Edit this page View Source

this[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
BaseTripleCollection.this[Triple]
| Edit this page View Source

ObjectNodes

Gets the object nodes.

Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.ObjectNodes
| Edit this page View Source

PredicateNodes

Gets the predicate nodes.

Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.PredicateNodes
| Edit this page View Source

SubjectNodes

Gets the subject nodes.

Declaration
public override IEnumerable<INode> SubjectNodes { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseTripleCollection.SubjectNodes

Methods

| Edit this page View Source

Add(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
BaseTripleCollection.Add(Triple)
| Edit this page View Source

Contains(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
BaseTripleCollection.Contains(Triple)
| Edit this page View Source

Delete(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
BaseTripleCollection.Delete(Triple)
| Edit this page View Source

Dispose()

Disposes of the collection.

Declaration
public override void Dispose()
Overrides
BaseTripleCollection.Dispose()
| Edit this page View Source

GetEnumerator()

Gets the enumerator for the collection.

Declaration
public override IEnumerator<Triple> GetEnumerator()
Returns
Type Description
IEnumerator<Triple>
Overrides
BaseTripleCollection.GetEnumerator()
| Edit this page View Source

WithObject(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
BaseTripleCollection.WithObject(INode)
| Edit this page View Source

WithPredicate(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
BaseTripleCollection.WithPredicate(INode)
| Edit this page View Source

WithPredicateObject(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
BaseTripleCollection.WithPredicateObject(INode, INode)
| Edit this page View Source

WithSubject(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
BaseTripleCollection.WithSubject(INode)
| Edit this page View Source

WithSubjectObject(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
BaseTripleCollection.WithSubjectObject(INode, INode)
| Edit this page View Source

WithSubjectPredicate(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>
Overrides
BaseTripleCollection.WithSubjectPredicate(INode, INode)

Implements

IEnumerable<T>
IEnumerable
IDisposable

Extension Methods

Extensions.ChunkBy<T>(IEnumerable<T>, int)
Extensions.IsDisjoint<T>(IEnumerable<T>, IEnumerable<T>)
Extensions.WithObject(IEnumerable<Triple>, INode)
Extensions.WithPredicate(IEnumerable<Triple>, INode)
Extensions.WithSubject(IEnumerable<Triple>, INode)
LiteralExtensions.ToTripleCollection(IEnumerable<Triple>, bool)
Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • WrapperTripleCollection()
    • WrapperTripleCollection(BaseTripleCollection)
  • Fields
    • _triples
  • Properties
    • Count
    • this[Triple]
    • ObjectNodes
    • PredicateNodes
    • SubjectNodes
  • Methods
    • Add(Triple)
    • Contains(Triple)
    • Delete(Triple)
    • Dispose()
    • GetEnumerator()
    • WithObject(INode)
    • WithPredicate(INode)
    • WithPredicateObject(INode, INode)
    • WithSubject(INode)
    • WithSubjectObject(INode, INode)
    • WithSubjectPredicate(INode, INode)
  • Implements
  • Extension Methods
Back to top Generated by DocFX