Class BaseMultiset
Abstract Base Class for representing Multisets.
Inheritance
System.Object
BaseMultiset
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: dotNetRDF.dll
Syntax
public abstract class BaseMultiset
Fields
|
Improve this Doc
View Source
_orderedIDs
List of IDs that is used to return the Sets in order if the Multiset has been sorted.
Declaration
protected List<int> _orderedIDs
Field Value
Type |
Description |
System.Collections.Generic.List<System.Int32> |
|
Properties
|
Improve this Doc
View Source
Count
Gets the Count of Sets in the Multiset.
Declaration
public virtual int Count { get; }
Property Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
IsEmpty
Returns whether the Multiset is Empty.
Declaration
public abstract bool IsEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Item[Int32]
Retrieves the Set with the given ID.
Declaration
public abstract ISet this[int id] { get; }
Parameters
Type |
Name |
Description |
System.Int32 |
id |
ID. |
Property Value
|
Improve this Doc
View Source
SetIDs
Gets the IDs of Sets in the Multiset.
Declaration
public abstract IEnumerable<int> SetIDs { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Int32> |
|
|
Improve this Doc
View Source
Sets
Gets the Sets in the Multiset.
Declaration
public abstract IEnumerable<ISet> Sets { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<ISet> |
|
|
Improve this Doc
View Source
Variables
Gets the Variables in the Multiset.
Declaration
public abstract IEnumerable<string> Variables { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
|
Improve this Doc
View Source
VirtualCount
The number of results that would be returned without any limit clause to a query or -1 if not supported. Defaults to the same value as the Count member.
Declaration
public int VirtualCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
|
Improve this Doc
View Source
Add(ISet)
Adds a Set to the Mutliset.
Declaration
public abstract void Add(ISet s)
Parameters
Type |
Name |
Description |
ISet |
s |
Set to add. |
|
Improve this Doc
View Source
AddVariable(String)
Adds a Variable to the Multiset.
Declaration
public abstract void AddVariable(string variable)
Parameters
Type |
Name |
Description |
System.String |
variable |
Variable. |
|
Improve this Doc
View Source
ContainsValue(String, INode)
Determines whether the Multiset contains the given Value for the given Variable.
Declaration
public abstract bool ContainsValue(string var, INode n)
Parameters
Type |
Name |
Description |
System.String |
var |
Variable. |
INode |
n |
Value. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ContainsVariable(String)
Determines whether the Multiset contains the given Variable.
Declaration
public abstract bool ContainsVariable(string var)
Parameters
Type |
Name |
Description |
System.String |
var |
Variable. |
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ExistsJoin(BaseMultiset, Boolean)
Does an Exists Join of this Multiset to another Multiset where the Join is predicated on the existence/non-existence of a joinable solution on the RHS.
Declaration
public virtual BaseMultiset ExistsJoin(BaseMultiset other, bool mustExist)
Parameters
Type |
Name |
Description |
BaseMultiset |
other |
Other Multiset. |
System.Boolean |
mustExist |
Whether a solution must exist in the Other Multiset for the join to be made. |
Returns
|
Improve this Doc
View Source
IsDisjointWith(BaseMultiset)
Determines whether the Mutliset is disjoint with the given Multiset.
Declaration
public abstract bool IsDisjointWith(BaseMultiset other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Join(BaseMultiset)
Joins this Multiset to another Multiset.
Declaration
public virtual BaseMultiset Join(BaseMultiset other)
Parameters
Returns
|
Improve this Doc
View Source
LeftJoin(BaseMultiset, ISparqlExpression)
Does a Left Join of this Multiset to another Multiset where the Join is predicated on the given Expression.
Declaration
public virtual BaseMultiset LeftJoin(BaseMultiset other, ISparqlExpression expr)
Parameters
Returns
|
Improve this Doc
View Source
Merge(BaseMultiset)
Does a merge of this multiset and another multiset, avoiding adding duplicate sets to this multiset.
Declaration
public virtual BaseMultiset Merge(BaseMultiset other)
Parameters
Type |
Name |
Description |
BaseMultiset |
other |
The multiset to be merged into this multiset. |
Returns
|
Improve this Doc
View Source
MinusJoin(BaseMultiset)
Does a Minus Join of this Multiset to another Multiset where any joinable results are subtracted from this Multiset to give the resulting Multiset.
Declaration
public virtual BaseMultiset MinusJoin(BaseMultiset other)
Parameters
Returns
|
Improve this Doc
View Source
Product(BaseMultiset)
Does a Product of this Multiset and another Multiset.
Declaration
public virtual BaseMultiset Product(BaseMultiset other)
Parameters
Returns
|
Improve this Doc
View Source
Remove(Int32)
Removes a Set (by ID) from the Multiset.
Declaration
public abstract void Remove(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
ID. |
|
Improve this Doc
View Source
SetVariableOrder(IEnumerable<String>)
Sets the variable ordering for the multiset.
Declaration
public abstract void SetVariableOrder(IEnumerable<string> variables)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
variables |
Variable Ordering. |
|
Improve this Doc
View Source
Sort(IComparer<ISet>)
Sorts a Set based on the given Comparer.
Declaration
public virtual void Sort(IComparer<ISet> comparer)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IComparer<ISet> |
comparer |
Comparer on Sets. |
|
Improve this Doc
View Source
ToString()
Gets the string representation of the multiset (intended for debugging only).
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
Trim()
Trims the Multiset of Temporary Variables.
Declaration
public virtual void Trim()
|
Improve this Doc
View Source
Trim(String)
Trims the Multiset by removing all Values for the given Variable.
Declaration
public virtual void Trim(string variable)
Parameters
Type |
Name |
Description |
System.String |
variable |
Variable. |
|
Improve this Doc
View Source
Union(BaseMultiset)
Does a Union of this Multiset and another Multiset.
Declaration
public virtual BaseMultiset Union(BaseMultiset other)
Parameters
Returns
Extension Methods