Class AbstractNativeMultiFunction

  • All Implemented Interfaces:
    MultiFunction
    Direct Known Subclasses:
    AbstractMultiFunction1

    public abstract class AbstractNativeMultiFunction
    extends AbstractMultiFunction
    Base class for all natively (Java) implemented MultiFunctions. They are initialized without the metadata (parameter declarations etc) but that will be added once the corresponding .api. file will be reached.
    Author:
    Holger Knublauch
    • Constructor Detail

      • AbstractNativeMultiFunction

        protected AbstractNativeMultiFunction​(String uri,
                                              List<String> argVarNames,
                                              List<String> resultVarNames)
    • Method Detail

      • execute

        public org.apache.jena.sparql.engine.QueryIterator execute​(List<org.apache.jena.graph.Node> args,
                                                                   org.apache.jena.graph.Graph activeGraph,
                                                                   org.apache.jena.sparql.core.DatasetGraph dataset)
        Description copied from interface: MultiFunction
        Executes the multi-function for a given list of arguments.
        Parameters:
        args - the argument values, matching the declared parameters from left to right
        activeGraph - the currently active query graph
        dataset - the DatasetGraph to operate on
        Returns:
        a QueryIterator with name-value pairs
      • doExecute

        protected abstract 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)