Show / Hide Table of Contents

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 Source

Arguments

Gets the Arguments of this Expression.
Declaration
IEnumerable<ISparqlExpression> Arguments { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<ISparqlExpression>
| Improve this Doc View Source

CanParallelise

Gets whether an expression can safely be evaluated in parallel.
Declaration
bool CanParallelise { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

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
| Improve this Doc View Source

Type

Gets the SPARQL Expression Type.
Declaration
SparqlExpressionType Type { get; }
Property Value
Type Description
SparqlExpressionType
| Improve this Doc View Source

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 Source

Evaluate(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.

| Improve this Doc View Source

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

Extension Methods

Extensions.AsEnumerable<T>(T)
  • Improve this Doc
  • View Source
In This Article
  • Properties
    • Arguments
    • CanParallelise
    • Functor
    • Type
    • Variables
  • Methods
    • Evaluate(SparqlEvaluationContext, Int32)
    • Transform(IExpressionTransformer)
  • Extension Methods
Back to top Generated by DocFX