Class QueryExecutionUtils

java.lang.Object
org.aksw.jena_sparql_api.core.utils.QueryExecutionUtils

public class QueryExecutionUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.apache.jena.sparql.core.Var
     
    static final org.apache.jena.sparql.core.Var
     
    static final org.apache.jena.sparql.core.Var
     
    static final org.apache.jena.sparql.core.Var
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    abortAfterFirstRow(org.apache.jena.query.QueryExecution qe)
     
    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
    static long
    countQuery(org.apache.jena.query.Query query, org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
     
    static long
    countQueryOld(org.apache.jena.query.Query query, org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
    Deprecated.
    static Set<org.apache.jena.sparql.core.Quad>
    createDumpNQuads(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
     
    static void
    createDumpNQuads(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.atlas.lib.Sink<org.apache.jena.sparql.core.Quad> sink)
     
    static Iterator<org.apache.jena.sparql.core.Quad>
    createIteratorDumpQuads(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
     
    static Iterator<org.apache.jena.graph.Triple>
    createIteratorDumpTriples(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
     
    static org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple>
    execConstruct(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query)
    Exec construct with wrapper to extended iterator
    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)
     
    static org.apache.jena.sparql.algebra.Table
    execSelectTable(Supplier<org.apache.jena.query.QueryExecution> qeSupp)
     
    static List<org.apache.jena.graph.Node>
    executeList(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query)
     
    static List<org.apache.jena.graph.Node>
    executeList(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query, org.apache.jena.sparql.core.Var var)
     
    static org.apache.jena.graph.Node
    executeSingle(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query)
     
    static org.apache.jena.graph.Node
    executeSingle(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query, org.apache.jena.sparql.core.Var var)
     
    static org.apache.jena.sparql.core.Var
    extractProjectVar(org.apache.jena.query.Query query)
     
    static long
    fetchBindingCount(String serviceUrl, org.apache.jena.query.Query query)
     
    static Iterator<org.apache.jena.sparql.core.Quad>
    findQuads(org.aksw.jenax.dataaccess.sparql.factory.execution.query.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 void
     
    static boolean
    validate(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, boolean suppressException)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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(org.aksw.jenax.dataaccess.sparql.factory.execution.query.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

      public static void tryClose(Object obj)
    • execConstruct

      public static org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.graph.Triple> execConstruct(org.aksw.jenax.dataaccess.sparql.factory.execution.query.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

      public static boolean validate(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, boolean suppressException)
    • createIteratorDumpQuads

      public static Iterator<org.apache.jena.sparql.core.Quad> createIteratorDumpQuads(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
    • createDumpNQuads

      public static void createDumpNQuads(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.atlas.lib.Sink<org.apache.jena.sparql.core.Quad> sink)
    • createDumpNQuads

      public static Set<org.apache.jena.sparql.core.Quad> createDumpNQuads(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
    • createIteratorDumpTriples

      public static Iterator<org.apache.jena.graph.Triple> createIteratorDumpTriples(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
    • fetchBindingCount

      public static long fetchBindingCount(String serviceUrl, org.apache.jena.query.Query query)
    • countQuery

      public static long countQuery(org.apache.jena.query.Query query, org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef)
    • countQueryOld

      @Deprecated public static long countQueryOld(org.apache.jena.query.Query query, org.aksw.jenax.dataaccess.sparql.factory.execution.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(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query)
    • executeSingle

      public static org.apache.jena.graph.Node executeSingle(org.aksw.jenax.dataaccess.sparql.factory.execution.query.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(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query)
    • executeList

      public static List<org.apache.jena.graph.Node> executeList(org.aksw.jenax.dataaccess.sparql.factory.execution.query.QueryExecutionFactory qef, org.apache.jena.query.Query query, org.apache.jena.sparql.core.Var var)