Show / Hide Table of Contents

Class SparqlVariable

Class of Sparql Variables.

Inheritance
object
SparqlVariable
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public class SparqlVariable

Constructors

| Edit this page View Source

SparqlVariable(string)

Creates a new Sparql Variable.

Declaration
public SparqlVariable(string name)
Parameters
Type Name Description
string name

Variable Name (with leading ?/$ removed).

| Edit this page View Source

SparqlVariable(string, bool)

Creates a new Sparql Variable.

Declaration
public SparqlVariable(string name, bool isResultVar)
Parameters
Type Name Description
string name

Variable Name.

bool isResultVar

Does this Variable appear in the Result Set?.

| Edit this page View Source

SparqlVariable(string, ISparqlAggregate)

Creates a new Sparql Variable which is an Aggregate.

Declaration
public SparqlVariable(string name, ISparqlAggregate aggregate)
Parameters
Type Name Description
string name

Variable Name (with leading ?/$ removed).

ISparqlAggregate aggregate

Aggregate Function.

Remarks

All Aggregate Variables are automatically considered as Result Variables.

| Edit this page View Source

SparqlVariable(string, ISparqlExpression)

Creates a new Sparql Variable which is a Projection Expression.

Declaration
public SparqlVariable(string name, ISparqlExpression expr)
Parameters
Type Name Description
string name

Variable Name (with leading ?/$ removed).

ISparqlExpression expr

Projection Expression.

Properties

| Edit this page View Source

Aggregate

Gets the Aggregate Function for this Variable.

Declaration
public ISparqlAggregate Aggregate { get; }
Property Value
Type Description
ISparqlAggregate
| Edit this page View Source

IsAggregate

Gets whether the Variable is an Aggregate.

Declaration
public bool IsAggregate { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsProjection

Gets whether the Variable is a Projection Expression.

Declaration
public bool IsProjection { get; }
Property Value
Type Description
bool
| Edit this page View Source

IsResultVariable

Gets whether the Variable appears in the Result Set.

Declaration
public bool IsResultVariable { get; }
Property Value
Type Description
bool
| Edit this page View Source

Name

Variable Name.

Declaration
public string Name { get; }
Property Value
Type Description
string
| Edit this page View Source

Projection

Gets the Projection Expression for this Variable.

Declaration
public ISparqlExpression Projection { get; }
Property Value
Type Description
ISparqlExpression

Methods

| Edit this page View Source

ToString()

Get the String representation of the Variable.

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

Extension Methods

Extensions.ToSafeString(object)
Extensions.AsEnumerable<T>(T)
  • Edit this page
  • View Source
In this article
  • Constructors
    • SparqlVariable(string)
    • SparqlVariable(string, bool)
    • SparqlVariable(string, ISparqlAggregate)
    • SparqlVariable(string, ISparqlExpression)
  • Properties
    • Aggregate
    • IsAggregate
    • IsProjection
    • IsResultVariable
    • Name
    • Projection
  • Methods
    • ToString()
  • Extension Methods
Back to top Generated by DocFX