Class GroupMultiset
Multiset which represents a Grouping of Sets from another Multiset.
Inherited Members
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 GroupMultiset : Multiset
Constructors
| Improve this Doc View SourceGroupMultiset(BaseMultiset)
Creates a new Group Multiset.
Declaration
public GroupMultiset(BaseMultiset contents)
Parameters
Type | Name | Description |
---|---|---|
BaseMultiset | contents | Multiset which contains the sets that are being grouped. |
Properties
| Improve this Doc View SourceContents
Gets the Multiset which contains the Sets who are the members of the Groups this Multiset represents.
Declaration
public BaseMultiset Contents { get; }
Property Value
Type | Description |
---|---|
BaseMultiset |
Groups
Gets the enumeration of the Groups in the Multiset.
Declaration
public IEnumerable<BindingGroup> Groups { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><BindingGroup> |
Methods
| Improve this Doc View SourceAdd(ISet)
Adds a Set to the Group Multiset.
Declaration
public override void Add(ISet s)
Parameters
Type | Name | Description |
---|---|---|
ISet | s | Set. |
Overrides
Exceptions
Type | Condition |
---|---|
RdfQueryException | Thrown since this action is invalid on a Group Multiset. |
AddGroup(BindingGroup)
Adds a Group to the Multiset.
Declaration
public void AddGroup(BindingGroup group)
Parameters
Type | Name | Description |
---|---|---|
BindingGroup | group |
Group(int)
Gets the Group with the given ID.
Declaration
public BindingGroup Group(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | Group ID. |
Returns
Type | Description |
---|---|
BindingGroup |
GroupSetIDs(int)
Gets the enumeration of the IDs of Sets in the group with the given ID.
Declaration
public IEnumerable<int> GroupSetIDs(int id)
Parameters
Type | Name | Description |
---|---|---|
int | id | Group ID. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<T><int> |