Class SparqlCastBuilder
Provides methods for casting expressions to XPath types.
Inherited Members
Namespace: VDS.RDF.Query.Builder
Assembly: dotNetRdf.dll
Syntax
public sealed class SparqlCastBuilder
Methods
| Edit this page View SourceAsBoolean()
Creates a cast to xsd:boolean.
Declaration
public BooleanExpression AsBoolean()
Returns
Type | Description |
---|---|
BooleanExpression |
AsDateTime()
Creates a cast to xsd:dateTime.
Declaration
public LiteralExpression AsDateTime()
Returns
Type | Description |
---|---|
LiteralExpression |
AsDecimal()
Creates a cast to xsd:decimal.
Declaration
public NumericExpression<decimal> AsDecimal()
Returns
Type | Description |
---|---|
NumericExpression<decimal> |
AsDouble()
Creates a cast to xsd:double.
Declaration
public NumericExpression<double> AsDouble()
Returns
Type | Description |
---|---|
NumericExpression<double> |
AsFloat()
Creates a cast to xsd:float.
Declaration
public NumericExpression<float> AsFloat()
Returns
Type | Description |
---|---|
NumericExpression<float> |
AsInteger()
Creates a cast to xsd:integer.
Declaration
public NumericExpression<int> AsInteger()
Returns
Type | Description |
---|---|
NumericExpression<int> |
AsString()
Creates a cast to xsd:string.
Declaration
public LiteralExpression AsString()
Returns
Type | Description |
---|---|
LiteralExpression |