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.library.ITER_regex
All Implemented Interfaces:
fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunction

public class ITER_regex extends fr.mines_stetienne.ci.sparql_generate.iterator.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.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    checkBuild​(org.apache.jena.sparql.expr.ExprList args)
     
    List<List<org.apache.jena.sparql.expr.NodeValue>>
    exec​(List<org.apache.jena.sparql.expr.NodeValue> args)
     

    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_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)
      Specified by:
      exec in class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase
    • checkBuild

      public void checkBuild(org.apache.jena.sparql.expr.ExprList args)
      Specified by:
      checkBuild in class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorStreamFunctionBase