Details
Description
Per my suggestion to the SPARQL Working Group I am proposing a new built in CALL() which can be used in SPARQL queries for dynamic function invocation.
CALL with no argument returns null
CALL with some arguments evaluates the first argument, sees if the result is a URI (if not errors) and if so tries to generate a function from it and invoke it with the arguments to that invocation being the remaining arguments to CALL
I have implemented a prototype implementation of this in the ARQ language which I have committed to Trunk, others with more knowledge of expression and function evaluation in ARQ may have suggestions on how to improve the implementation