Class ITER_Split

  • All Implemented Interfaces:
    IteratorFunction

    public class ITER_Split
    extends 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;
    Author:
    Noorani Bakerally
    • Constructor Detail

      • ITER_Split

        public ITER_Split()
    • Method Detail

      • exec

        public java.util.List<java.util.List<NodeValue>> exec​(NodeValue stringValue,
                                                              NodeValue delimeterValue)
        Description copied from class: IteratorFunctionBase2
        Specified by:
        exec in class 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