Show / Hide Table of Contents

Class IdentityMultiset

Represents the Identity Multiset.

Inheritance
System.Object
BaseMultiset
IdentityMultiset
Inherited Members
BaseMultiset._orderedIDs
BaseMultiset.VirtualCount
BaseMultiset.UsePLinqEvaluation
BaseMultiset.Merge(BaseMultiset)
BaseMultiset.Sort(IComparer<ISet>)
BaseMultiset.Count
BaseMultiset.Trim()
BaseMultiset.Trim(string)
BaseMultiset.ToString()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class IdentityMultiset : BaseMultiset

Properties

| Improve this Doc View Source

IsEmpty

Returns false as the Identity Multiset is not considered empty.

Declaration
public override bool IsEmpty { get; }
Property Value
Type Description
System.Boolean
Overrides
BaseMultiset.IsEmpty
| Improve this Doc View Source

this[int]

Gets the Set with the given ID.

Declaration
public override ISet this[int index] { get; }
Parameters
Type Name Description
int index

Set ID.

Property Value
Type Description
ISet
Overrides
BaseMultiset.this[int]
Exceptions
Type Condition
RdfQueryException

Thrown since the Identity Multiset contains no Sets.

| Improve this Doc View Source

SetIDs

Returns an empty enumerable as the Identity Multiset contains no Sets.

Declaration
public override IEnumerable<int> SetIDs { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><int>
Overrides
BaseMultiset.SetIDs
| Improve this Doc View Source

Sets

Returns an empty enumerable as the Identity Multiset contains no Sets.

Declaration
public override IEnumerable<ISet> Sets { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><ISet>
Overrides
BaseMultiset.Sets
| Improve this Doc View Source

Variables

Returns an empty enumerable as the Identity Multiset contains no Variables.

Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><string>
Overrides
BaseMultiset.Variables

Methods

| Improve this Doc View Source

Add(ISet)

Adds a Set to the Multiset.

Declaration
public override void Add(ISet s)
Parameters
Type Name Description
ISet s

Set.

Overrides
BaseMultiset.Add(ISet)
Exceptions
Type Condition
RdfQueryException

Thrown since this operation is invalid on an Identity Multiset.

| Improve this Doc View Source

AddVariable(string)

Adds a Variable to the Multiset.

Declaration
public override void AddVariable(string variable)
Parameters
Type Name Description
string variable

Variable.

Overrides
BaseMultiset.AddVariable(string)
Exceptions
Type Condition
RdfQueryException

Thrown since this operation is invalid on an Identity Multiset.

| Improve this Doc View Source

ContainsValue(string, INode)

Returns True since the Identity Multiset is considered to contain all values.

Declaration
public override bool ContainsValue(string var, INode n)
Parameters
Type Name Description
string var

Variable.

INode n

Value.

Returns
Type Description
System.Boolean
Overrides
BaseMultiset.ContainsValue(string, INode)
| Improve this Doc View Source

ContainsVariable(string)

Returns False since the Identity Multiset contains no Variables.

Declaration
public override bool ContainsVariable(string var)
Parameters
Type Name Description
string var

Variable.

Returns
Type Description
System.Boolean
Overrides
BaseMultiset.ContainsVariable(string)
| Improve this Doc View Source

ContainsVariables(IEnumerable<string>)

Declaration
public override bool ContainsVariables(IEnumerable<string> vars)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><string> vars
Returns
Type Description
System.Boolean
Overrides
BaseMultiset.ContainsVariables(IEnumerable<string>)
| Improve this Doc View Source

ExistsJoin(BaseMultiset, bool)

Exists Joins the Multiset to another Multiset.

Declaration
public override BaseMultiset ExistsJoin(BaseMultiset other, bool mustExist)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

System.Boolean mustExist

Whether solutions must exist in the Other Multiset for the Join to succeed.

Returns
Type Description
BaseMultiset
Overrides
BaseMultiset.ExistsJoin(BaseMultiset, bool)
| Improve this Doc View Source

IsDisjointWith(BaseMultiset)

Returns False since the Identity Multiset is not disjoint with anything.

Declaration
public override bool IsDisjointWith(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
System.Boolean
Overrides
BaseMultiset.IsDisjointWith(BaseMultiset)
| Improve this Doc View Source

Join(BaseMultiset)

Joins the Multiset to another Multiset.

Declaration
public override BaseMultiset Join(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset

The other Multiset.

Overrides
BaseMultiset.Join(BaseMultiset)
| Improve this Doc View Source

LeftJoin(BaseMultiset, ISparqlExpression, SparqlEvaluationContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int>)

Left Joins the Multiset to another Multiset.

Declaration
public override BaseMultiset LeftJoin(BaseMultiset other, ISparqlExpression expr, SparqlEvaluationContext baseContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int> expressionProcessor)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

ISparqlExpression expr

Expression which the Join is predicated on.

SparqlEvaluationContext baseContext

The parent context for the evaluation of the join.

ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int> expressionProcessor
Returns
Type Description
BaseMultiset

The other Multiset.

Overrides
BaseMultiset.LeftJoin(BaseMultiset, ISparqlExpression, SparqlEvaluationContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int>)
| Improve this Doc View Source

MinusJoin(BaseMultiset)

Minus Joins this Multiset to another Multiset.

Declaration
public override BaseMultiset MinusJoin(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset
Overrides
BaseMultiset.MinusJoin(BaseMultiset)
| Improve this Doc View Source

Product(BaseMultiset)

Generates the Product of this Set and another Multiset.

Declaration
public override BaseMultiset Product(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset

The other Multiset.

Overrides
BaseMultiset.Product(BaseMultiset)
| Improve this Doc View Source

Remove(int)

Removes a Set to the Multiset.

Declaration
public override void Remove(int id)
Parameters
Type Name Description
int id

Set ID.

Overrides
BaseMultiset.Remove(int)
Exceptions
Type Condition
RdfQueryException

Thrown since this operation is invalid on an Identity Multiset.

| Improve this Doc View Source

SetVariableOrder(IEnumerable<string>)

Sets the variable ordering for the multiset.

Declaration
public override void SetVariableOrder(IEnumerable<string> variables)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<T><string> variables

Variable Ordering.

Overrides
BaseMultiset.SetVariableOrder(IEnumerable<string>)
| Improve this Doc View Source

Union(BaseMultiset)

Generates the Union of this Set and another Multiset.

Declaration
public override BaseMultiset Union(BaseMultiset other)
Parameters
Type Name Description
BaseMultiset other

Other Multiset.

Returns
Type Description
BaseMultiset

The other Multiset.

Overrides
BaseMultiset.Union(BaseMultiset)

Extension Methods

Extensions.ToSafeString(object)
AlgebraExtensions.ProductWithTimeout(BaseMultiset, BaseMultiset, long)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • IsEmpty
    • this[int]
    • SetIDs
    • Sets
    • Variables
  • Methods
    • Add(ISet)
    • AddVariable(string)
    • ContainsValue(string, INode)
    • ContainsVariable(string)
    • ContainsVariables(IEnumerable<string>)
    • ExistsJoin(BaseMultiset, bool)
    • IsDisjointWith(BaseMultiset)
    • Join(BaseMultiset)
    • LeftJoin(BaseMultiset, ISparqlExpression, SparqlEvaluationContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int>)
    • MinusJoin(BaseMultiset)
    • Product(BaseMultiset)
    • Remove(int)
    • SetVariableOrder(IEnumerable<string>)
    • Union(BaseMultiset)
  • Extension Methods
Back to top Generated by DocFX