Class QueryExecutionUtils
java.lang.Object
org.aksw.jena_sparql_api.core.utils.QueryExecutionUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidabortAfterFirstRow(org.apache.jena.query.QueryExecution qe) static longconsume(org.apache.jena.query.QueryExecution qe) Consumes the full response (result set or triples) of a QueryExecution Only uses the iterator-based methods to avoid cluttering up the heapstatic longcountQuery(org.apache.jena.query.Query query, QueryExecutionFactory qef) static longcountQueryOld(org.apache.jena.query.Query query, QueryExecutionFactory qef) Deprecated.static Set<org.apache.jena.sparql.core.Quad>static voidcreateDumpNQuads(QueryExecutionFactory qef, org.apache.jena.atlas.lib.Sink<org.apache.jena.sparql.core.Quad> sink) static Iterator<org.apache.jena.sparql.core.Quad>static Iterator<org.apache.jena.graph.Triple>static org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>execConstruct(QueryExecutionFactory qef, org.apache.jena.query.Query query) Exec construct with wrapper to extended iteratorstatic org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>execConstruct(org.apache.jena.query.QueryExecution qe, org.apache.jena.query.Query query) static org.apache.jena.sparql.algebra.TableexecSelectTable(Supplier<org.apache.jena.query.QueryExecution> qeSupp) static List<org.apache.jena.graph.Node>executeList(QueryExecutionFactory qef, org.apache.jena.query.Query query) static List<org.apache.jena.graph.Node>executeList(QueryExecutionFactory qef, org.apache.jena.query.Query query, org.apache.jena.sparql.core.Var var) static org.apache.jena.graph.NodeexecuteSingle(QueryExecutionFactory qef, org.apache.jena.query.Query query) static org.apache.jena.graph.NodeexecuteSingle(QueryExecutionFactory qef, org.apache.jena.query.Query query, org.apache.jena.sparql.core.Var var) static org.apache.jena.sparql.core.VarextractProjectVar(org.apache.jena.query.Query query) static longfetchBindingCount(String serviceUrl, org.apache.jena.query.Query query) static Iterator<org.apache.jena.sparql.core.Quad>findQuads(QueryExecutionFactory qef, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) static voidstatic booleanvalidate(QueryExecutionFactory qef, boolean suppressException)
-
Field Details
-
vg
public static final org.apache.jena.sparql.core.Var vg -
vs
public static final org.apache.jena.sparql.core.Var vs -
vp
public static final org.apache.jena.sparql.core.Var vp -
vo
public static final org.apache.jena.sparql.core.Var vo
-
-
Constructor Details
-
QueryExecutionUtils
public QueryExecutionUtils()
-
-
Method Details
-
execSelectTable
public static org.apache.jena.sparql.algebra.Table execSelectTable(Supplier<org.apache.jena.query.QueryExecution> qeSupp) -
abortAfterFirstRow
public static void abortAfterFirstRow(org.apache.jena.query.QueryExecution qe) -
consume
public static long consume(org.apache.jena.query.QueryExecution qe) Consumes the full response (result set or triples) of a QueryExecution Only uses the iterator-based methods to avoid cluttering up the heap- Parameters:
qe-
-
findQuads
public static Iterator<org.apache.jena.sparql.core.Quad> findQuads(QueryExecutionFactory qef, org.apache.jena.graph.Node g, org.apache.jena.graph.Node s, org.apache.jena.graph.Node p, org.apache.jena.graph.Node o) -
tryClose
-
execConstruct
public static org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> execConstruct(QueryExecutionFactory qef, org.apache.jena.query.Query query) Exec construct with wrapper to extended iterator- Parameters:
qef-query-- Returns:
-
execConstruct
public static org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> execConstruct(org.apache.jena.query.QueryExecution qe, org.apache.jena.query.Query query) -
validate
-
createIteratorDumpQuads
public static Iterator<org.apache.jena.sparql.core.Quad> createIteratorDumpQuads(QueryExecutionFactory qef) -
createDumpNQuads
public static void createDumpNQuads(QueryExecutionFactory qef, org.apache.jena.atlas.lib.Sink<org.apache.jena.sparql.core.Quad> sink) -
createDumpNQuads
-
createIteratorDumpTriples
public static Iterator<org.apache.jena.graph.Triple> createIteratorDumpTriples(QueryExecutionFactory qef) -
fetchBindingCount
-
countQuery
-
countQueryOld
@Deprecated public static long countQueryOld(org.apache.jena.query.Query query, QueryExecutionFactory qef) Deprecated. -
extractProjectVar
public static org.apache.jena.sparql.core.Var extractProjectVar(org.apache.jena.query.Query query) -
executeSingle
public static org.apache.jena.graph.Node executeSingle(QueryExecutionFactory qef, org.apache.jena.query.Query query) -
executeSingle
public static org.apache.jena.graph.Node executeSingle(QueryExecutionFactory qef, org.apache.jena.query.Query query, org.apache.jena.sparql.core.Var var) -
executeList
public static List<org.apache.jena.graph.Node> executeList(QueryExecutionFactory qef, org.apache.jena.query.Query query) -
executeList
public static List<org.apache.jena.graph.Node> executeList(QueryExecutionFactory qef, org.apache.jena.query.Query query, org.apache.jena.sparql.core.Var var)
-