All Implemented Interfaces:
IteratorFunction

public class ITER_regex extends IteratorFunctionBase
Iterator function iter:regex iterates over the input subsequences captured by the ith groups of every regex matches.

See Live example

  • Param 1 (string) is the input string;
  • Param 2 (string) is a regular expression;
  • Param 3..N (integers) are the numbers of the groups to capture.
Author:
Noorani Bakerally <noorani.bakerally at emse.fr>, Maxime Lefrançois
  • Field Details

  • Constructor Details

    • ITER_regex

      public ITER_regex()
  • Method Details

    • exec

      public List<List<org.apache.jena.sparql.expr.NodeValue>> exec(List<org.apache.jena.sparql.expr.NodeValue> args)
      Description copied from class: IteratorFunctionBase
      IteratorFunction call to a list of evaluated argument values.
      Specified by:
      exec in class IteratorFunctionBase
      Parameters:
      args - -
      Returns:
      -
    • checkBuild

      public void checkBuild(org.apache.jena.sparql.expr.ExprList args)
      Description copied from class: IteratorStreamFunctionBase
      Partially checks if the iterator function can be executed with the given arguments.
      Specified by:
      checkBuild in class IteratorStreamFunctionBase
      Parameters:
      args - -