Class GroupMultiset
Multiset which represents a Grouping of Sets from another Multiset.
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public class GroupMultiset : Multiset
Constructors
| Edit this page 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
| Edit this page 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 |
---|---|
IEnumerable<BindingGroup> |
Methods
| Edit this page 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 |
---|---|
IEnumerable<int> |