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