Interface ISet
Interface for Sets which represents a possible solution during SPARQL evaluation.
Inherited Members
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public interface ISet : IEquatable<ISet>
Properties
| Edit this page View SourceID
Gets/Sets the ID of the Set.
Declaration
int ID { get; set; }
Property Value
Type | Description |
---|---|
int |
this[string]
Retrieves the Value in this set for the given Variable.
Declaration
INode this[string variable] { get; }
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
Property Value
Type | Description |
---|---|
INode | Either a Node or a null. |
Values
Gets the Values in the Set.
Declaration
IEnumerable<INode> Values { get; }
Property Value
Type | Description |
---|---|
IEnumerable<INode> |
Variables
Gets the Variables in the Set.
Declaration
IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Methods
| Edit this page View SourceAdd(string, INode)
Adds a Value for a Variable to the Set.
Declaration
void Add(string variable, INode value)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
INode | value | Value. |
BindsAll(IEnumerable<string>)
Return true if this set contains a non-null value for all of the specified variables.
Declaration
bool BindsAll(IEnumerable<string> vars)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<string> | vars | Variable names. |
Returns
Type | Description |
---|---|
bool |
ContainsVariable(string)
Checks whether the Set contains a given Variable.
Declaration
bool ContainsVariable(string variable)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |
Returns
Type | Description |
---|---|
bool |
Copy()
Copies the Set.
Declaration
ISet Copy()
Returns
Type | Description |
---|---|
ISet |
IsCompatibleWith(ISet, IEnumerable<string>)
Gets whether the Set is compatible with a given set based on the given variables.
Declaration
bool IsCompatibleWith(ISet s, IEnumerable<string> vars)
Parameters
Type | Name | Description |
---|---|---|
ISet | s | Set. |
IEnumerable<string> | vars | Variables. |
Returns
Type | Description |
---|---|
bool |
IsMinusCompatibleWith(ISet, IEnumerable<string>)
Gets whether the Set is minus compatible with a given set based on the given variables.
Declaration
bool IsMinusCompatibleWith(ISet s, IEnumerable<string> vars)
Parameters
Type | Name | Description |
---|---|---|
ISet | s | Set. |
IEnumerable<string> | vars | Variables. |
Returns
Type | Description |
---|---|
bool |
Join(ISet)
Joins the set to another set.
Declaration
ISet Join(ISet other)
Parameters
Type | Name | Description |
---|---|---|
ISet | other | Other Set. |
Returns
Type | Description |
---|---|
ISet |
Remove(string)
Removes a Value for a Variable from the Set.
Declaration
void Remove(string variable)
Parameters
Type | Name | Description |
---|---|---|
string | variable | Variable. |