Show / Hide Table of Contents

Class Multiset

Represents a Multiset of possible solutions.

Inheritance
object
BaseMultiset
Multiset
GroupMultiset
Inherited Members
BaseMultiset._orderedIDs
BaseMultiset.VirtualCount
BaseMultiset.UsePLinqEvaluation
BaseMultiset.Join(BaseMultiset)
BaseMultiset.LeftJoin(BaseMultiset, ISparqlExpression, SparqlEvaluationContext, ISparqlExpressionProcessor<IValuedNode, SparqlEvaluationContext, int>)
BaseMultiset.ExistsJoin(BaseMultiset, bool)
BaseMultiset.MinusJoin(BaseMultiset)
BaseMultiset.Product(BaseMultiset)
BaseMultiset.Union(BaseMultiset)
BaseMultiset.Merge(BaseMultiset)
BaseMultiset.Sort(IComparer<ISet>)
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 Multiset : BaseMultiset

Constructors

| Edit this page View Source

Multiset()

Creates a new Empty Multiset.

Declaration
public Multiset()
| Edit this page View Source

Multiset(IEnumerable<string>)

Creates a new Empty Mutliset that has the list of given Variables.

Declaration
public Multiset(IEnumerable<string> variables)
Parameters
Type Name Description
IEnumerable<string> variables

Fields

| Edit this page View Source

_counter

Counter used to assign Set IDs.

Declaration
protected int _counter
Field Value
Type Description
int
| Edit this page View Source

_sets

Dictionary of Sets in the Multiset.

Declaration
protected Dictionary<int, ISet> _sets
Field Value
Type Description
Dictionary<int, ISet>
| Edit this page View Source

_variables

Variables contained in the Multiset.

Declaration
protected List<string> _variables
Field Value
Type Description
List<string>

Properties

| Edit this page View Source

Count

Gets the number of Sets in the Multiset.

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

IsEmpty

Gets whether the Multiset is empty.

Declaration
public override bool IsEmpty { get; }
Property Value
Type Description
bool
Overrides
BaseMultiset.IsEmpty
| Edit this page View Source

this[int]

Gets a Set from the Multiset.

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

Set ID.

Property Value
Type Description
ISet
Overrides
BaseMultiset.this[int]
| Edit this page View Source

SetIDs

Gets the IDs of Sets in the Multiset.

Declaration
public override IEnumerable<int> SetIDs { get; }
Property Value
Type Description
IEnumerable<int>
Overrides
BaseMultiset.SetIDs
| Edit this page View Source

Sets

Gets the Sets in the Multiset.

Declaration
public override IEnumerable<ISet> Sets { get; }
Property Value
Type Description
IEnumerable<ISet>
Overrides
BaseMultiset.Sets
| Edit this page View Source

Variables

Gets the Variables in the Multiset.

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

Methods

| Edit this page 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)
| Edit this page View Source

AddVariable(string)

Adds a Variable to the list of Variables present in this Multiset.

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

Variable.

Overrides
BaseMultiset.AddVariable(string)
| Edit this page View Source

ContainsValue(string, INode)

Determines whether a given Value is present for a given Variable in any Set in this Multiset.

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

Variable.

INode n

Value.

Returns
Type Description
bool
Overrides
BaseMultiset.ContainsValue(string, INode)
| Edit this page View Source

ContainsVariable(string)

Returns whether a given Variable is present in any Set in this Multiset.

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

Variable.

Returns
Type Description
bool
Overrides
BaseMultiset.ContainsVariable(string)
| Edit this page View Source

ContainsVariables(IEnumerable<string>)

Returns whether the given Variables are all present (together or separately) in any Set in this Multiset.

Declaration
public override bool ContainsVariables(IEnumerable<string> vars)
Parameters
Type Name Description
IEnumerable<string> vars

Variables.

Returns
Type Description
bool
Overrides
BaseMultiset.ContainsVariables(IEnumerable<string>)
| Edit this page View Source

IsDisjointWith(BaseMultiset)

Determines whether this Multiset is disjoint with another Multiset.

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

Other Multiset.

Returns
Type Description
bool
Overrides
BaseMultiset.IsDisjointWith(BaseMultiset)
| Edit this page View Source

Remove(int)

Removes a Set from the Multiset.

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

Set ID.

Overrides
BaseMultiset.Remove(int)
| Edit this page View Source

SetVariableOrder(IEnumerable<string>)

Sets the variable ordering for the multiset.

Declaration
public override void SetVariableOrder(IEnumerable<string> variables)
Parameters
Type Name Description
IEnumerable<string> variables

Variable Ordering.

Overrides
BaseMultiset.SetVariableOrder(IEnumerable<string>)
| Edit this page View Source

Trim()

Trims the Multiset to remove Temporary Variables.

Declaration
public override void Trim()
Overrides
BaseMultiset.Trim()
| Edit this page View Source

Trim(string)

Trims the Multiset to remove the given Variable.

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

Variable.

Overrides
BaseMultiset.Trim(string)

Extension Methods

Extensions.ToSafeString(object)
AlgebraExtensions.ProductWithTimeout(BaseMultiset, BaseMultiset, long)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • Multiset()
    • Multiset(IEnumerable<string>)
  • Fields
    • _counter
    • _sets
    • _variables
  • Properties
    • Count
    • IsEmpty
    • this[int]
    • SetIDs
    • Sets
    • Variables
  • Methods
    • Add(ISet)
    • AddVariable(string)
    • ContainsValue(string, INode)
    • ContainsVariable(string)
    • ContainsVariables(IEnumerable<string>)
    • IsDisjointWith(BaseMultiset)
    • Remove(int)
    • SetVariableOrder(IEnumerable<string>)
    • Trim()
    • Trim(string)
  • Extension Methods
Back to top Generated by DocFX