Interface IExpressionEvaluator

An evaluator for RDF expressions.

interface IExpressionEvaluator {
    context: IActionContext;
    evaluate: ((mapping: Bindings) => Promise<Term>);
    evaluateAsEBV: ((mapping: Bindings) => Promise<boolean>);
    evaluateAsEvaluatorExpression: ((mapping: Bindings) => Promise<TermExpression>);
    evaluatorExpressionEvaluation: ((expr: Expression, mapping: Bindings) => Promise<TermExpression>);
}

Hierarchy (view full)

Properties

evaluate: ((mapping: Bindings) => Promise<Term>)

Evaluates the provided bindings in terms of the context the evaluator was created.

Type declaration

    • (mapping): Promise<Term>
    • Parameters

      • mapping: Bindings

        the RDF bindings to evaluate against.

      Returns Promise<Term>

evaluateAsEBV: ((mapping: Bindings) => Promise<boolean>)

Evaluates the provided bindings in terms of the context the evaluator was created, returning the effective boolean value.

Type declaration

    • (mapping): Promise<boolean>
    • Parameters

      • mapping: Bindings

        the RDF bindings to evaluate against.

      Returns Promise<boolean>

evaluateAsEvaluatorExpression: ((mapping: Bindings) => Promise<TermExpression>)
evaluatorExpressionEvaluation: ((expr: Expression, mapping: Bindings) => Promise<TermExpression>)