java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.apache.jena.sparql.function.FunctionBase1
fr.mines_stetienne.ci.sparql_generate.function.library.FUN_bnode
All Implemented Interfaces:
org.apache.jena.sparql.function.Function

public final class FUN_bnode extends org.apache.jena.sparql.function.FunctionBase1
Binding function fun:bnode takes a string and returns a blank node: the same blank node for the same string during one execution of a query, sub-queries included.

The SPARQL function BNODE(str) returns the same blank node for the same string only within one solution. fun:bnode(str) is useful to identify a resource by a key across solutions, like the blank node templates of RML.

Author:
Maxime Lefrançois
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • 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 label)
     

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

    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

  • Constructor Details

    • FUN_bnode

      public FUN_bnode()
  • Method Details

    • 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 label)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase1