Class SparqlVariable
Class of Sparql Variables.
Inherited Members
Namespace: VDS.RDF.Query
Assembly: dotNetRdf.dll
Syntax
public class SparqlVariable
Constructors
| Edit this page View SourceSparqlVariable(string)
Creates a new Sparql Variable.
Declaration
public SparqlVariable(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | Variable Name (with leading ?/$ removed). |
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?. |
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.
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 SourceAggregate
Gets the Aggregate Function for this Variable.
Declaration
public ISparqlAggregate Aggregate { get; }
Property Value
Type | Description |
---|---|
ISparqlAggregate |
IsAggregate
Gets whether the Variable is an Aggregate.
Declaration
public bool IsAggregate { get; }
Property Value
Type | Description |
---|---|
bool |
IsProjection
Gets whether the Variable is a Projection Expression.
Declaration
public bool IsProjection { get; }
Property Value
Type | Description |
---|---|
bool |
IsResultVariable
Gets whether the Variable appears in the Result Set.
Declaration
public bool IsResultVariable { get; }
Property Value
Type | Description |
---|---|
bool |
Name
Variable Name.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Projection
Gets the Projection Expression for this Variable.
Declaration
public ISparqlExpression Projection { get; }
Property Value
Type | Description |
---|---|
ISparqlExpression |
Methods
| Edit this page View SourceToString()
Get the String representation of the Variable.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |