Class FN_MapComputeIfAbsent

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

public class FN_MapComputeIfAbsent extends org.apache.jena.sparql.function.FunctionBase3
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:map.computeIfAbsent('mapId', ?key, lambda) AS ?value)
 
Author:
raven
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static org.apache.jena.sparql.util.Symbol
    Symbol for a guava table in the exec cxt
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.jena.sparql.expr.NodeValue
    exec(List<org.apache.jena.sparql.expr.NodeValue> args, org.apache.jena.sparql.function.FunctionEnv env)
     
    org.apache.jena.sparql.expr.NodeValue
    exec(org.apache.jena.sparql.expr.NodeValue v1, org.apache.jena.sparql.expr.NodeValue v2, org.apache.jena.sparql.expr.NodeValue v3)
     
    static com.google.common.collect.Table<org.apache.jena.sparql.expr.NodeValue,org.apache.jena.sparql.expr.NodeValue,org.apache.jena.sparql.expr.NodeValue>
    getOrCreateTable(org.apache.jena.sparql.util.Context cxt)
     

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

    checkBuild, exec

    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
  • Field Details

    • symTable

      public static org.apache.jena.sparql.util.Symbol symTable
      Symbol for a guava table in the exec cxt
  • Constructor Details

    • FN_MapComputeIfAbsent

      public FN_MapComputeIfAbsent()
  • Method Details

    • getOrCreateTable

      public static com.google.common.collect.Table<org.apache.jena.sparql.expr.NodeValue,org.apache.jena.sparql.expr.NodeValue,org.apache.jena.sparql.expr.NodeValue> getOrCreateTable(org.apache.jena.sparql.util.Context cxt)
    • exec

      protected org.apache.jena.sparql.expr.NodeValue exec(List<org.apache.jena.sparql.expr.NodeValue> args, org.apache.jena.sparql.function.FunctionEnv env)
      Overrides:
      exec in class org.apache.jena.sparql.function.FunctionBase
    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.expr.NodeValue v1, org.apache.jena.sparql.expr.NodeValue v2, org.apache.jena.sparql.expr.NodeValue v3)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase3