Search in sources :

Example 1 with FunctionFactory

use of org.apache.jena.sparql.function.FunctionFactory in project jena by apache.

the class E_Function method bindFunction.

private void bindFunction(Context cxt) {
    if (functionBound)
        return;
    if (function == null) {
        FunctionFactory ff = functionFactory(cxt);
        if (ff == null) {
            functionBound = true;
            throw new ExprUndefFunction("URI <" + functionIRI + "> not found as a function", functionIRI);
        }
        function = ff.create(functionIRI);
    }
    function.build(functionIRI, args);
    functionBound = true;
}
Also used : FunctionFactory(org.apache.jena.sparql.function.FunctionFactory)

Example 2 with FunctionFactory

use of org.apache.jena.sparql.function.FunctionFactory in project jena by apache.

the class E_Function method functionFactory.

private FunctionFactory functionFactory(Context cxt) {
    FunctionRegistry registry = chooseRegistry(cxt);
    FunctionFactory ff = registry.get(functionIRI);
    return ff;
}
Also used : FunctionRegistry(org.apache.jena.sparql.function.FunctionRegistry) FunctionFactory(org.apache.jena.sparql.function.FunctionFactory)

Aggregations

FunctionFactory (org.apache.jena.sparql.function.FunctionFactory)2 FunctionRegistry (org.apache.jena.sparql.function.FunctionRegistry)1