Class AbstractMultiFunction1

All Implemented Interfaces:
MultiFunction
Direct Known Subclasses:
TargetContainsMultiFunction

public abstract class AbstractMultiFunction1 extends AbstractNativeMultiFunction
Base class for MultiFunctions that return one result variable. Provides a convenient way that merely needs to return an iterator of Nodes.
Author:
Holger Knublauch
  • Constructor Details

    • AbstractMultiFunction1

      protected AbstractMultiFunction1(String uri, List<String> argVarNames, String resultVarName)
  • Method Details

    • executeIterator

      protected abstract Iterator<org.apache.jena.graph.Node> executeIterator(List<org.apache.jena.graph.Node> args, org.apache.jena.graph.Graph activeGraph, org.apache.jena.sparql.core.DatasetGraph dataset)
      Produces the actual result values.
      Parameters:
      args - the arguments from left to right (individual values may be null if optional)
      activeGraph - the currently active query graph
      dataset - the dataset
      Returns:
      the iterator of results
    • doExecute

      public org.apache.jena.sparql.engine.QueryIterator doExecute(List<org.apache.jena.graph.Node> args, org.apache.jena.graph.Graph activeGraph, org.apache.jena.sparql.core.DatasetGraph dataset)
      Specified by:
      doExecute in class AbstractNativeMultiFunction