Class IdentityMultiset
Represents the Identity Multiset.
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class IdentityMultiset : BaseMultiset
Properties
| Edit this page View SourceIsEmpty
Returns false as the Identity Multiset is not considered empty.
Declaration
public override bool IsEmpty { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View Sourcethis[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
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown since the Identity Multiset contains no Sets. |
SetIDs
Returns an empty enumerable as the Identity Multiset contains no Sets.
Declaration
public override IEnumerable<int> SetIDs { get; }
Property Value
Type | Description |
---|---|
IEnumerable<int> |
Overrides
| Edit this page View SourceSets
Returns an empty enumerable as the Identity Multiset contains no Sets.
Declaration
public override IEnumerable<ISet> Sets { get; }
Property Value
Type | Description |
---|---|
IEnumerable<ISet> |
Overrides
| Edit this page View SourceVariables
Returns an empty enumerable as the Identity Multiset contains no Variables.
Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Overrides
Methods
| Edit this page View SourceAdd(ISet)
Adds a Set to the Multiset.
Declaration
public override void Add(ISet s)
Parameters
Type | Name | Description |
---|---|---|
ISet | s | Set. |
Overrides
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown since this operation is invalid on an Identity Multiset. |
AddVariable(string)
Adds a Variable to the Multiset.
Declaration
public override void AddVariable(string variable)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
Overrides
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown since this operation is invalid on an Identity Multiset. |
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 |
---|---|
bool |
Overrides
| Edit this page View SourceContainsVariable(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 |
---|---|
bool |
Overrides
| Edit this page View SourceContainsVariables(IEnumerable<string>)
Returns False since the Identity Multiset contains no Variables.
Declaration
public override bool ContainsVariables(IEnumerable<string> vars)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | vars | Variable. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceExistsJoin(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. |
bool | mustExist | Whether solutions must exist in the Other Multiset for the Join to succeed. |
Returns
Type | Description |
---|---|
BaseMultiset |
Overrides
| Edit this page View SourceIsDisjointWith(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 |
---|---|
bool |
Overrides
| Edit this page View SourceJoin(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
| Edit this page View SourceLeftJoin(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 | The processor to use when evaluating the join. |
Returns
Type | Description |
---|---|
BaseMultiset | The other Multiset. |
Overrides
| Edit this page View SourceMinusJoin(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
| Edit this page View SourceProduct(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
| Edit this page View SourceRemove(int)
Removes a Set to the Multiset.
Declaration
public override void Remove(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | Set ID. |
Overrides
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown since this operation is invalid on an Identity Multiset. |
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
| Edit this page View SourceUnion(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. |