Show / Hide Table of Contents

Class BaseSet

Abstract Base Class for implementations of the ISet interface.

Inheritance
object
BaseSet
Set
Implements
ISet
IEquatable<ISet>
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query.Algebra
Assembly: dotNetRdf.dll
Syntax
public abstract class BaseSet : ISet, IEquatable<ISet>

Properties

| Edit this page View Source

ID

Gets/Sets the ID of the Set.

Declaration
public int ID { get; set; }
Property Value
Type Description
int
| Edit this page View Source

this[string]

Retrieves the Value in this set for the given Variable.

Declaration
public abstract INode this[string variable] { get; }
Parameters
Type Name Description
string variable

Variable.

Property Value
Type Description
INode

Either a Node or a null.

| Edit this page View Source

Values

Gets the Values in the Set.

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

Variables

Gets the Variables in the Set.

Declaration
public abstract IEnumerable<string> Variables { get; }
Property Value
Type Description
IEnumerable<string>

Methods

| Edit this page View Source

Add(string, INode)

Adds a Value for a Variable to the Set.

Declaration
public abstract void Add(string variable, INode value)
Parameters
Type Name Description
string variable

Variable.

INode value

Value.

| Edit this page View Source

BindsAll(IEnumerable<string>)

Return true if this set contains a non-null value for all of the specified variables.

Declaration
public virtual bool BindsAll(IEnumerable<string> variables)
Parameters
Type Name Description
IEnumerable<string> variables
Returns
Type Description
bool
| Edit this page View Source

ContainsVariable(string)

Checks whether the Set contains a given Variable.

Declaration
public abstract bool ContainsVariable(string variable)
Parameters
Type Name Description
string variable

Variable.

Returns
Type Description
bool
| Edit this page View Source

Copy()

Copies the Set.

Declaration
public abstract ISet Copy()
Returns
Type Description
ISet
| Edit this page View Source

Equals(object)

Gets whether the Set is equal to another object.

Declaration
public override sealed bool Equals(object obj)
Parameters
Type Name Description
object obj

Object to compare with.

Returns
Type Description
bool
Overrides
object.Equals(object)
| Edit this page View Source

Equals(ISet)

Gets whether the Set is equal to another set.

Declaration
public bool Equals(ISet other)
Parameters
Type Name Description
ISet other

Set to compare with.

Returns
Type Description
bool
| Edit this page View Source

GetHashCode()

Gets the Hash Code of the Set.

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
| 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 abstract bool IsCompatibleWith(ISet s, IEnumerable<string> vars)
Parameters
Type Name Description
ISet s

Set.

IEnumerable<string> vars

Variables.

Returns
Type Description
bool
| 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 abstract bool IsMinusCompatibleWith(ISet s, IEnumerable<string> vars)
Parameters
Type Name Description
ISet s

Set.

IEnumerable<string> vars

Variables.

Returns
Type Description
bool
| Edit this page View Source

Join(ISet)

Joins the set to another set.

Declaration
public abstract ISet Join(ISet other)
Parameters
Type Name Description
ISet other

Other Set.

Returns
Type Description
ISet
| Edit this page View Source

Remove(string)

Removes a Value for a Variable from the Set.

Declaration
public abstract void Remove(string variable)
Parameters
Type Name Description
string variable

Variable.

| Edit this page View Source

ToString()

Gets the String representation of the Set.

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

ISet
IEquatable<T>

Extension Methods

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