Interface ISparqlExpression
Interface for SPARQL Expression Terms that can be used in Expression Trees while evaluating Sparql Queries.
Namespace: VDS.RDF.Query.Expressions
Assembly: dotNetRDF.dll
Syntax
public interface ISparqlExpression
Properties
| Improve this Doc View SourceArguments
Gets the Arguments of this Expression.
Declaration
IEnumerable<ISparqlExpression> Arguments { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ISparqlExpression> |
CanParallelise
Gets whether an expression can safely be evaluated in parallel.
Declaration
bool CanParallelise { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Functor
Gets the Function Name or Operator Symbol - function names may be URIs of Keywords or the empty string in the case of primary expressions.
Declaration
string Functor { get; }
Property Value
Type | Description |
---|---|
System.String |
Type
Gets the SPARQL Expression Type.
Declaration
SparqlExpressionType Type { get; }
Property Value
Type | Description |
---|---|
SparqlExpressionType |
Variables
Gets an enumeration of all the Variables used in an expression.
Declaration
IEnumerable<string> Variables { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Methods
| Improve this Doc View SourceEvaluate(SparqlEvaluationContext, Int32)
Evalutes a SPARQL Expression for the given binding in a given context.
Declaration
IValuedNode Evaluate(SparqlEvaluationContext context, int bindingID)
Parameters
Type | Name | Description |
---|---|---|
SparqlEvaluationContext | context | Evaluation Context. |
System.Int32 | bindingID | Binding ID. |
Returns
Type | Description |
---|---|
IValuedNode |
Remarks
Newly introduced in Version 0.6.0 to replace the variety of functions that were used previously for numeric vs non-numeric versions to allow our code to be simplified and improve performance.
Transform(IExpressionTransformer)
Transforms the arguments of the expression using the given transformer.
Declaration
ISparqlExpression Transform(IExpressionTransformer transformer)
Parameters
Type | Name | Description |
---|---|---|
IExpressionTransformer | transformer | Expression Transformer. |
Returns
Type | Description |
---|---|
ISparqlExpression |