Show / Hide Table of Contents

Class Set

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

Inheritance
System.Object
BaseSet
Set
Implements
ISet
System.IEquatable<T><ISet>
System.IEquatable<T><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

| Improve this Doc View Source

Set()

Creates a new Set.

Declaration
public Set()

Properties

| Improve this Doc 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]
| Improve this Doc View Source

Values

Gets the Values in the Set.

Declaration
public override IEnumerable<INode> Values { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><INode>
Overrides
BaseSet.Values
| Improve this Doc View Source

Variables

Gets the Variables in the Set.

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

Methods

| Improve this Doc 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)
| Improve this Doc 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
System.Boolean
Overrides
BaseSet.ContainsVariable(string)
| Improve this Doc View Source

Copy()

Copies the Set.

Declaration
public override ISet Copy()
Returns
Type Description
ISet
Overrides
BaseSet.Copy()
| Improve this Doc 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
System.Boolean
| Improve this Doc 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.

System.Collections.Generic.IEnumerable<T><string> vars

Variables.

Returns
Type Description
System.Boolean
Overrides
BaseSet.IsCompatibleWith(ISet, IEnumerable<string>)
| Improve this Doc 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.

System.Collections.Generic.IEnumerable<T><string> vars

Variables.

Returns
Type Description
System.Boolean
Overrides
BaseSet.IsMinusCompatibleWith(ISet, IEnumerable<string>)
| Improve this Doc 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)
| Improve this Doc 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)
| Improve this Doc View Source

ToSparqlResult()

Declaration
public ISparqlResult ToSparqlResult()
Returns
Type Description
ISparqlResult

Implements

ISet
System.IEquatable<T>
System.IEquatable<T>

Extension Methods

Extensions.ToSafeString(object)
SetExtensions.AsSparqlResult(ISet)
SetExtensions.AsSparqlResult(ISet, IEnumerable<string>)
Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • 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