Class SPARQLMultiFunction
- java.lang.Object
-
- org.topbraid.shacl.multifunctions.AbstractMultiFunction
-
- org.topbraid.shacl.multifunctions.SPARQLMultiFunction
-
- All Implemented Interfaces:
MultiFunction
public class SPARQLMultiFunction extends AbstractMultiFunction
A MultiFunction based on a dash:SPARQLMultiFunction. This essentially wraps a SPARQL SELECT query, iterating over its result bindings on demand, making sure that it gets closed.- Author:
- Holger Knublauch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SPARQLMultiFunctioncreate(org.apache.jena.rdf.model.Resource declaration)org.apache.jena.sparql.engine.QueryIteratorexecute(List<org.apache.jena.graph.Node> args, org.apache.jena.graph.Graph activeGraph, org.apache.jena.sparql.core.DatasetGraph dataset)Executes the multi-function for a given list of arguments.-
Methods inherited from class org.topbraid.shacl.multifunctions.AbstractMultiFunction
getAPIStatus, getDescription, getParameters, getResultVars, getURI, initFrom
-
-
-
-
Method Detail
-
create
public static SPARQLMultiFunction create(org.apache.jena.rdf.model.Resource declaration) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
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:MultiFunctionExecutes the multi-function for a given list of arguments.- Parameters:
args- the argument values, matching the declared parameters from left to rightactiveGraph- the currently active query graphdataset- the DatasetGraph to operate on- Returns:
- a QueryIterator with name-value pairs
-
-