Class FN_LambdaOf

java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.aksw.jena_sparql_api.sparql.ext.sys.FN_LambdaOf
All Implemented Interfaces:
org.apache.jena.sparql.function.Function

public class FN_LambdaOf extends org.apache.jena.sparql.function.FunctionBase
A function that returns an RDF term that encapsulates a lambda. The last argument of fn.of is the expression, all prior arguments are considered parameter variable declarations.
 BIND(norse:fn.of(?x, ?x + 1) AS ?lambda)
 BIND(norse:fn.call(?lambda, 1) AS ?y) # expected: ?y == 2
 
Author:
raven
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkBuild(String uri, org.apache.jena.sparql.expr.ExprList args)
     
    org.apache.jena.sparql.expr.NodeValue
    exec(List<org.apache.jena.sparql.expr.NodeValue> args)
     
    org.apache.jena.sparql.expr.NodeValue
    exec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.expr.ExprList args, String uri, org.apache.jena.sparql.function.FunctionEnv env)
     
    static void
    main(String[] args)
     

    Methods inherited from class org.apache.jena.sparql.function.FunctionBase

    build, exec

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FN_LambdaOf

      public FN_LambdaOf()
  • Method Details

    • main

      public static void main(String[] args)
    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.engine.binding.Binding binding, org.apache.jena.sparql.expr.ExprList args, String uri, org.apache.jena.sparql.function.FunctionEnv env)
      Specified by:
      exec in interface org.apache.jena.sparql.function.Function
      Overrides:
      exec in class org.apache.jena.sparql.function.FunctionBase
    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(List<org.apache.jena.sparql.expr.NodeValue> args)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase
    • checkBuild

      public void checkBuild(String uri, org.apache.jena.sparql.expr.ExprList args)
      Specified by:
      checkBuild in class org.apache.jena.sparql.function.FunctionBase