Show / Hide Table of Contents

Class SparqlVariable

Class of Sparql Variables.
Inheritance
System.Object
SparqlVariable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: VDS.RDF.Query
Assembly: dotNetRDF.dll
Syntax
public class SparqlVariable

Constructors

| Improve this Doc View Source

SparqlVariable(String)

Creates a new Sparql Variable.
Declaration
public SparqlVariable(string name)
Parameters
Type Name Description
System.String name Variable Name (with leading ?/$ removed).
| Improve this Doc View Source

SparqlVariable(String, Boolean)

Creates a new Sparql Variable.
Declaration
public SparqlVariable(string name, bool isResultVar)
Parameters
Type Name Description
System.String name Variable Name.
System.Boolean isResultVar Does this Variable appear in the Result Set?.
| Improve this Doc 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
System.String name Variable Name (with leading ?/$ removed).
ISparqlAggregate aggregate Aggregate Function.
Remarks
All Aggregate Variables are automatically considered as Result Variables.
| Improve this Doc 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
System.String name Variable Name (with leading ?/$ removed).
ISparqlExpression expr Projection Expression.

Properties

| Improve this Doc View Source

Aggregate

Gets the Aggregate Function for this Variable.
Declaration
public ISparqlAggregate Aggregate { get; }
Property Value
Type Description
ISparqlAggregate
| Improve this Doc View Source

IsAggregate

Gets whether the Variable is an Aggregate.
Declaration
public bool IsAggregate { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsProjection

Gets whether the Variable is a Projection Expression.
Declaration
public bool IsProjection { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

IsResultVariable

Gets whether the Variable appears in the Result Set.
Declaration
public bool IsResultVariable { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Name

Variable Name.
Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Projection

Gets the Projection Expression for this Variable.
Declaration
public ISparqlExpression Projection { get; }
Property Value
Type Description
ISparqlExpression

Methods

| Improve this Doc View Source

ToString()

Get the String representation of the Variable.
Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Constructors
    • SparqlVariable(String)
    • SparqlVariable(String, Boolean)
    • SparqlVariable(String, ISparqlAggregate)
    • SparqlVariable(String, ISparqlExpression)
  • Properties
    • Aggregate
    • IsAggregate
    • IsProjection
    • IsResultVariable
    • Name
    • Projection
  • Methods
    • ToString()
  • Extension Methods
Back to top Generated by DocFX