Skip to main content

evaluate_function_expression

Function evaluate_function_expression 

Source
pub fn evaluate_function_expression(
    shapes: &Loaded,
    expr: &str,
) -> Result<Option<Term>, String>
Expand description

Evaluate a SPARQL expression (a dash:expression function-call string such as ex:fn("A", "B")) against the sh:SPARQLFunctions declared in shapes, returning the result term. Drives dash:FunctionTestCases and exposes SHACL functions as a standalone capability. The document’s prefixes and base form the query prologue so prefixed function names resolve.