Class Set
Represents one possible set of values which is a solution to the query.
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public sealed class Set : BaseSet, ISet, IEquatable<ISet>, IEquatable<Set>
Constructors
| Edit this page View SourceSet()
Creates a new Set.
Declaration
public Set()
Properties
| Edit this page View Sourcethis[string]
Retrieves the Value in this set for the given Variable.
Declaration
public override INode this[string variable] { get; }
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
Property Value
Type | Description |
---|---|
INode | Either a Node or a null. |
Overrides
| Edit this page View SourceValues
Gets the Values in the Set.
Declaration
public override IEnumerable<INode> Values { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Overrides
| Edit this page View SourceVariables
Gets the Variables in the Set.
Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Overrides
Methods
| Edit this page View SourceAdd(string, INode)
Adds a Value for a Variable to the Set.
Declaration
public override void Add(string variable, INode value)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
INode | value | Value. |
Overrides
| Edit this page View SourceContainsVariable(string)
Checks whether the Set contains a given Variable.
Declaration
public override bool ContainsVariable(string variable)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceCopy()
Copies the Set.
Declaration
public override ISet Copy()
Returns
Type | Description |
---|---|
ISet |
Overrides
| Edit this page View SourceEquals(Set)
Gets whether the Set is equal to another set.
Declaration
public bool Equals(Set other)
Parameters
Type | Name | Description |
---|---|---|
Set | other | Set to compare with. |
Returns
Type | Description |
---|---|
bool |
IsCompatibleWith(ISet, IEnumerable<string>)
Gets whether the Set is compatible with a given set based on the given variables.
Declaration
public override bool IsCompatibleWith(ISet s, IEnumerable<string> vars)
Parameters
Type | Name | Description |
---|---|---|
ISet | s | Set. |
IEnumerable<string> | vars | Variables. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceIsMinusCompatibleWith(ISet, IEnumerable<string>)
Gets whether the Set is minus compatible with a given set based on the given variables.
Declaration
public override bool IsMinusCompatibleWith(ISet s, IEnumerable<string> vars)
Parameters
Type | Name | Description |
---|---|---|
ISet | s | Set. |
IEnumerable<string> | vars | Variables. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceJoin(ISet)
Joins the set to another set.
Declaration
public override ISet Join(ISet other)
Parameters
Type | Name | Description |
---|---|---|
ISet | other | Other Set. |
Returns
Type | Description |
---|---|
ISet |
Overrides
| Edit this page View SourceRemove(string)
Removes a Value for a Variable from the Set.
Declaration
public override void Remove(string variable)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
Overrides
| Edit this page View SourceToSparqlResult()
Create a new ISparqlResult instance that contains the values in this set.
Declaration
public ISparqlResult ToSparqlResult()
Returns
Type | Description |
---|---|
ISparqlResult |