com.hp.hpl.jena.sparql.util
Class QueryExecUtils

java.lang.Object
  extended by com.hp.hpl.jena.sparql.util.QueryExecUtils

public class QueryExecUtils
extends Object

Some utilities for query processing.


Constructor Summary
QueryExecUtils()
           
 
Method Summary
static void execute(Op op, DatasetGraph dsg)
           
static void execute(Op op, DatasetGraph dsg, ResultsFormat outputFormat)
           
static void executeAlgebra(Op op, DatasetGraph dsg)
          Deprecated. Use execute(Op, DatasetGraph)
static void executeAlgebra(Op op, DatasetGraph dsg, ResultsFormat outputFormat)
          Deprecated. Use execute(Op, DatasetGraph)
static void executeQuery(Query query, QueryExecution queryExecution)
           
static void executeQuery(Query query, QueryExecution queryExecution, ResultsFormat outputFormat)
           
static com.hp.hpl.jena.rdf.model.RDFNode getExactlyOne(QueryExecution qExec, String varname)
          Execute, expecting the result to be one row, one column.
static com.hp.hpl.jena.rdf.model.RDFNode getExactlyOne(String qs, Dataset ds)
          Execute a query, expecting the result to be one row, one column.
static com.hp.hpl.jena.rdf.model.RDFNode getExactlyOne(String qs, com.hp.hpl.jena.rdf.model.Model model)
          Execute a query, expecting the result to be one row, one column.
static com.hp.hpl.jena.rdf.model.RDFNode getOne(QueryExecution qExec, String varname)
          Execute, expecting the result to be one row, one column.
static void outputResultSet(ResultSet results, Prologue prologue, ResultsFormat outputFormat)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryExecUtils

public QueryExecUtils()
Method Detail

executeQuery

public static void executeQuery(Query query,
                                QueryExecution queryExecution)

executeQuery

public static void executeQuery(Query query,
                                QueryExecution queryExecution,
                                ResultsFormat outputFormat)

executeAlgebra

@Deprecated
public static void executeAlgebra(Op op,
                                             DatasetGraph dsg)
Deprecated. Use execute(Op, DatasetGraph)


executeAlgebra

@Deprecated
public static void executeAlgebra(Op op,
                                             DatasetGraph dsg,
                                             ResultsFormat outputFormat)
Deprecated. Use execute(Op, DatasetGraph)


execute

public static void execute(Op op,
                           DatasetGraph dsg)

execute

public static void execute(Op op,
                           DatasetGraph dsg,
                           ResultsFormat outputFormat)

outputResultSet

public static void outputResultSet(ResultSet results,
                                   Prologue prologue,
                                   ResultsFormat outputFormat)

getExactlyOne

public static com.hp.hpl.jena.rdf.model.RDFNode getExactlyOne(String qs,
                                                              com.hp.hpl.jena.rdf.model.Model model)
Execute a query, expecting the result to be one row, one column. Return that one RDFNode


getExactlyOne

public static com.hp.hpl.jena.rdf.model.RDFNode getExactlyOne(String qs,
                                                              Dataset ds)
Execute a query, expecting the result to be one row, one column. Return that one RDFNode


getExactlyOne

public static com.hp.hpl.jena.rdf.model.RDFNode getExactlyOne(QueryExecution qExec,
                                                              String varname)
Execute, expecting the result to be one row, one column. Return that one RDFNode or throw an exception


getOne

public static com.hp.hpl.jena.rdf.model.RDFNode getOne(QueryExecution qExec,
                                                       String varname)
Execute, expecting the result to be one row, one column. Return that one RDFNode or null Throw excpetion if more than one.



Licenced under the Apache License, Version 2.0