Show / Hide Table of Contents

Class Set

Represents one possible set of values which is a solution to the query.

Inheritance
object
BaseSet
Set
Implements
ISet
IEquatable<ISet>
IEquatable<Set>
Inherited Members
BaseSet.ID
BaseSet.BindsAll(IEnumerable<string>)
BaseSet.Equals(ISet)
BaseSet.Equals(object)
BaseSet.GetHashCode()
BaseSet.ToString()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public sealed class Set : BaseSet, ISet, IEquatable<ISet>, IEquatable<Set>

Constructors

| Edit this page View Source

Set()

Creates a new Set.

Declaration
public Set()

Properties

| Edit this page View Source

this[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
BaseSet.this[string]
| Edit this page View Source

Values

Gets the Values in the Set.

Declaration
public override IEnumerable<INode> Values { get; }
Property Value
Type Description
IEnumerable<INode>
Overrides
BaseSet.Values
| Edit this page View Source

Variables

Gets the Variables in the Set.

Declaration
public override IEnumerable<string> Variables { get; }
Property Value
Type Description
IEnumerable<string>
Overrides
BaseSet.Variables

Methods

| Edit this page View Source

Add(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
BaseSet.Add(string, INode)
| Edit this page View Source

ContainsVariable(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
BaseSet.ContainsVariable(string)
| Edit this page View Source

Copy()

Copies the Set.

Declaration
public override ISet Copy()
Returns
Type Description
ISet
Overrides
BaseSet.Copy()
| Edit this page View Source

Equals(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
| Edit this page View Source

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
BaseSet.IsCompatibleWith(ISet, IEnumerable<string>)
| Edit this page View Source

IsMinusCompatibleWith(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
BaseSet.IsMinusCompatibleWith(ISet, IEnumerable<string>)
| Edit this page View Source

Join(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
BaseSet.Join(ISet)
| Edit this page View Source

Remove(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
BaseSet.Remove(string)
| Edit this page View Source

ToSparqlResult()

Create a new ISparqlResult instance that contains the values in this set.

Declaration
public ISparqlResult ToSparqlResult()
Returns
Type Description
ISparqlResult

Implements

ISet
IEquatable<T>
IEquatable<T>

Extension Methods

Extensions.ToSafeString(object)
SetExtensions.AsSparqlResult(ISet)
SetExtensions.AsSparqlResult(ISet, IEnumerable<string>)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • Set()
  • Properties
    • this[string]
    • Values
    • Variables
  • Methods
    • Add(string, INode)
    • ContainsVariable(string)
    • Copy()
    • Equals(Set)
    • IsCompatibleWith(ISet, IEnumerable<string>)
    • IsMinusCompatibleWith(ISet, IEnumerable<string>)
    • Join(ISet)
    • Remove(string)
    • ToSparqlResult()
  • Implements
  • Extension Methods
Back to top Generated by DocFX