Class Set
Represents one possible set of values which is a solution to the query.
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRDF.dll
Syntax
public sealed class Set : BaseSet, ISet, IEquatable<ISet>, IEquatable<Set>
Constructors
| Improve this Doc View SourceSet()
Creates a new Set.
Declaration
public Set()
Properties
| Improve this Doc View SourceItem[String]
Retrieves the Value in this set for the given Variable.
Declaration
public override INode this[string variable] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.String | variable | Variable. |
Property Value
Type | Description |
---|---|
INode | Either a Node or a null. |
Overrides
| Improve this Doc View SourceValues
Gets the Values in the Set.
Declaration
public override IEnumerable<INode> Values { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<INode> |
Overrides
| Improve this Doc View SourceVariables
Gets the Variables in the Set.
Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Overrides
Methods
| Improve this Doc 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 |
---|---|---|
System.String | variable | Variable. |
INode | value | Value. |
Overrides
| Improve this Doc View SourceContainsVariable(String)
Checks whether the Set contains a given Variable.
Declaration
public override bool ContainsVariable(string variable)
Parameters
Type | Name | Description |
---|---|---|
System.String | variable | Variable. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc View SourceCopy()
Copies the Set.
Declaration
public override ISet Copy()
Returns
Type | Description |
---|---|
ISet |
Overrides
| Improve this Doc 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 |
---|---|
System.Boolean |
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. |
System.Collections.Generic.IEnumerable<System.String> | vars | Variables. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc 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. |
System.Collections.Generic.IEnumerable<System.String> | vars | Variables. |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
| Improve this Doc 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
| Improve this Doc View SourceRemove(String)
Removes a Value for a Variable from the Set.
Declaration
public override void Remove(string variable)
Parameters
Type | Name | Description |
---|---|---|
System.String | variable | Variable. |
Overrides
Implements
System.IEquatable<T>
System.IEquatable<T>