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

public class ITER_Split extends fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase2
Iterator function iter:Split iterates over the array of strings resulting from spliting the input string around matches of the given regular expression.
  • Param 1: (input) is the input string;
  • Param 2: (regex) is a regular expression;
  • 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 stringValue, org.apache.jena.sparql.expr.NodeValue delimeterValue)
     

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

    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_Split

      public ITER_Split()
  • Method Details

    • exec

      public List<List<org.apache.jena.sparql.expr.NodeValue>> exec(org.apache.jena.sparql.expr.NodeValue stringValue, org.apache.jena.sparql.expr.NodeValue delimeterValue)
      Specified by:
      exec in class fr.mines_stetienne.ci.sparql_generate.iterator.IteratorFunctionBase2
      Parameters:
      stringValue - a RDF Literal with datatype xsd:string representing the source string
      delimeterValue - a RDF Literal with datatype xsd:string representing the delimeter which can be regular expression
      Returns:
      a list of RDF Literal with datatype xsd:string