java.lang.Object
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase3
fr.mines_stetienne.ci.sparql_generate.iterator.library.ITER_for
All Implemented Interfaces:
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunction

public class ITER_for extends fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase3
Iterator function iter:for iterates over numeric values that start at the first argument, increment by the second argument (positive or negatice), and stops whenever it goes beyond the third argument.

See Live example

  • Param 1: (a decimal) the first value;
  • Param 2: (a decimal) the increment (positive or negative);
  • Param 3: (a decimal) the threshold that defines the condition for stopping.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    List<List<org.apache.jena.sparql.expr.NodeValue>>
    exec​(org.apache.jena.sparql.expr.NodeValue start, org.apache.jena.sparql.expr.NodeValue incr, org.apache.jena.sparql.expr.NodeValue stop)
     

    Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase3

    checkBuild, exec

    Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase

    exec

    Methods inherited from class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase

    build, exec, getContext

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ITER_for

      public ITER_for()
  • Method Details

    • exec

      public List<List<org.apache.jena.sparql.expr.NodeValue>> exec(org.apache.jena.sparql.expr.NodeValue start, org.apache.jena.sparql.expr.NodeValue incr, org.apache.jena.sparql.expr.NodeValue stop)
      Specified by:
      exec in class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase3