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 SourceSparqlVariable(String)
Creates a new Sparql Variable.
Declaration
public SparqlVariable(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Variable Name (with leading ?/$ removed). |
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?. |
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 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 |
---|---|
System.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 |
---|---|
System.String |
Overrides
System.Object.ToString()