Show / Hide Table of Contents

Class UnionTripleCollection

Represents a union of multiple Triple Collections.

Inheritance
System.Object
BaseTripleCollection
UnionTripleCollection
Implements
System.Collections.Generic.IEnumerable<T><Triple>
System.Collections.IEnumerable
System.IDisposable
Inherited Members
BaseTripleCollection.WithSubject(INode)
BaseTripleCollection.QuotedWithSubject(INode)
BaseTripleCollection.WithPredicate(INode)
BaseTripleCollection.QuotedWithPredicate(INode)
BaseTripleCollection.WithObject(INode)
BaseTripleCollection.QuotedWithObject(INode)
BaseTripleCollection.WithSubjectPredicate(INode, INode)
BaseTripleCollection.QuotedWithSubjectPredicate(INode, INode)
BaseTripleCollection.WithPredicateObject(INode, INode)
BaseTripleCollection.QuotedWithPredicateObject(INode, INode)
BaseTripleCollection.WithSubjectObject(INode, INode)
BaseTripleCollection.QuotedWithSubjectObject(INode, INode)
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 class UnionTripleCollection : BaseTripleCollection, IEnumerable<Triple>, IEnumerable, IDisposable
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

Constructors

| Improve this Doc View Source

UnionTripleCollection(BaseTripleCollection, IEnumerable<BaseTripleCollection>)

Creates a new Union Triple Collection which is a union of any number of collections.

Declaration
public UnionTripleCollection(BaseTripleCollection baseTriples, IEnumerable<BaseTripleCollection> additionalTriples)
Parameters
Type Name Description
BaseTripleCollection baseTriples

Base Triple Collection.

System.Collections.Generic.IEnumerable<T><BaseTripleCollection> additionalTriples

Additional Triple Collection(s).

Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

UnionTripleCollection(BaseTripleCollection, BaseTripleCollection)

Creates a new Union Triple Collection which is a union of two collections.

Declaration
public UnionTripleCollection(BaseTripleCollection baseTriples, BaseTripleCollection additionalTriples)
Parameters
Type Name Description
BaseTripleCollection baseTriples

Base Triple Collection.

BaseTripleCollection additionalTriples

Additional Triple Collection.

Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

Properties

| Improve this Doc View Source

Asserted

Gets the triples that are asserted in the collection.

Declaration
public override IEnumerable<Triple> Asserted { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><Triple>
Overrides
BaseTripleCollection.Asserted
Remarks

This returns the same set of triples as the enumerator on this class, but as an System.Collections.Generic.IEnumerable<T> instance.

| Improve this Doc View Source

Count

Gets the count of Triples in this union.

Declaration
public override int Count { get; }
Property Value
Type Description
int
Overrides
BaseTripleCollection.Count
Remarks

The Count is the total number of Triples, this may be different from the number of distinct triples.

| Improve this Doc View Source

this[Triple]

Retrieves a Triple from the union.

Declaration
public override Triple this[Triple t] { get; }
Parameters
Type Name Description
Triple t

Triple to retrieve.

Property Value
Type Description
Triple
Overrides
BaseTripleCollection.this[Triple]
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

Exceptions
Type Condition
System.Collections.Generic.KeyNotFoundException

Thrown if the Triple is not contained in any of the collections this union comprises.

| Improve this Doc View Source

ObjectNodes

Gets the enumeration of distinct objects of Triples.

Declaration
public override IEnumerable<INode> ObjectNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><INode>
Overrides
BaseTripleCollection.ObjectNodes
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

PredicateNodes

Gets the enumeration of distinct predicates of Triples.

Declaration
public override IEnumerable<INode> PredicateNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><INode>
Overrides
BaseTripleCollection.PredicateNodes
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

Quoted

Gets the triples that are quoted in the collection.

Declaration
public override IEnumerable<Triple> Quoted { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><Triple>
Overrides
BaseTripleCollection.Quoted
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

QuotedCount

Gets the number of quoted triples in the triple collection.

Declaration
public override int QuotedCount { get; }
Property Value
Type Description
int
Overrides
BaseTripleCollection.QuotedCount
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

QuotedObjectNodes

Gets all the nodes which are subjects of quoted triples in the triple collection.

Declaration
public override IEnumerable<INode> QuotedObjectNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><INode>
Overrides
BaseTripleCollection.QuotedObjectNodes
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

QuotedPredicateNodes

Gets all the nodes which are predicates of quoted triples in the triple collection.

Declaration
public override IEnumerable<INode> QuotedPredicateNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><INode>
Overrides
BaseTripleCollection.QuotedPredicateNodes
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

QuotedSubjectNodes

Gets all the nodes which are objects of quoted triples in the triple collection.

Declaration
public override IEnumerable<INode> QuotedSubjectNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><INode>
Overrides
BaseTripleCollection.QuotedSubjectNodes
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

SubjectNodes

Gets the enumeration of distinct subjects of Triples.

Declaration
public override IEnumerable<INode> SubjectNodes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><INode>
Overrides
BaseTripleCollection.SubjectNodes
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

Methods

| Improve this Doc View Source

Add(Triple)

Adds a Triple to the base collection.

Declaration
protected override bool Add(Triple t)
Parameters
Type Name Description
Triple t

Triple to add.

Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Add(Triple)
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

Contains(Triple)

Checks whether the union contains this Triple in any of the collections it comprises.

Declaration
public override bool Contains(Triple t)
Parameters
Type Name Description
Triple t

Triple to test.

Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Contains(Triple)
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

ContainsQuoted(Triple)

Checks whether the specified triple is quoted in any of the collections of the union.

Declaration
public override bool ContainsQuoted(Triple t)
Parameters
Type Name Description
Triple t

Triple to test.

Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.ContainsQuoted(Triple)
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

Delete(Triple)

Deletes a Triple from the base collection.

Declaration
protected override bool Delete(Triple t)
Parameters
Type Name Description
Triple t

Triple to delete.

Returns
Type Description
System.Boolean
Overrides
BaseTripleCollection.Delete(Triple)
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

| Improve this Doc View Source

Dispose()

Disposes of the collection.

Declaration
public override void Dispose()
Overrides
BaseTripleCollection.Dispose()
Remarks

This does nothing since we don't know where and how the collections we are the union of are being used and therefore to dispose of them could have unwanted/unexpected results.

| Improve this Doc View Source

GetEnumerator()

Gets the enumeration of Triples in the union.

Declaration
public override IEnumerator<Triple> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T><Triple>
Overrides
BaseTripleCollection.GetEnumerator()
Remarks

The union consists of a Base collection which is the collection that Triples can actually be added to and deleted from and any number of additional collections which are read-only as far as the union is concerned (this does not mean they cannot be altered elsewhere by other code).

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
System.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)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • UnionTripleCollection(BaseTripleCollection, IEnumerable<BaseTripleCollection>)
    • UnionTripleCollection(BaseTripleCollection, BaseTripleCollection)
  • Properties
    • Asserted
    • Count
    • this[Triple]
    • ObjectNodes
    • PredicateNodes
    • Quoted
    • QuotedCount
    • QuotedObjectNodes
    • QuotedPredicateNodes
    • QuotedSubjectNodes
    • SubjectNodes
  • Methods
    • Add(Triple)
    • Contains(Triple)
    • ContainsQuoted(Triple)
    • Delete(Triple)
    • Dispose()
    • GetEnumerator()
  • Implements
  • Extension Methods
Back to top Generated by DocFX