|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aksw.commons.sparql.api.compare.QueryExecutionCompare
public class QueryExecutionCompare
| Constructor Summary | |
|---|---|
QueryExecutionCompare(com.hp.hpl.jena.query.QueryExecution a,
com.hp.hpl.jena.query.QueryExecution b,
boolean isOrdered)
|
|
| Method Summary | |
|---|---|
void |
abort()
Stop in mid execution. |
void |
close()
Close the query execution and stop query evaluation as soon as convenient. |
static ModelDiff |
compareModel(com.hp.hpl.jena.rdf.model.Model a,
com.hp.hpl.jena.rdf.model.Model b)
|
static ListDiff<com.hp.hpl.jena.query.QuerySolution> |
compareOrdered(com.hp.hpl.jena.query.ResultSet a,
com.hp.hpl.jena.query.ResultSet b)
Traverse the resultset in order, and write out the missing items on each side: 1 2 --- a a b c d d gives: [c] [b] (1 lacks c, 2 lacks b) |
static ListDiff<com.hp.hpl.jena.query.QuerySolution> |
compareUnordered(com.hp.hpl.jena.query.ResultSet a,
com.hp.hpl.jena.query.ResultSet b)
|
boolean |
execAsk()
Execute an ASK query |
com.hp.hpl.jena.rdf.model.Model |
execConstruct()
Execute a CONSTRUCT query |
com.hp.hpl.jena.rdf.model.Model |
execConstruct(com.hp.hpl.jena.rdf.model.Model model)
Execute a CONSTRUCT query, putting the statements into 'model'. |
com.hp.hpl.jena.rdf.model.Model |
execDescribe()
Execute a DESCRIBE query |
com.hp.hpl.jena.rdf.model.Model |
execDescribe(com.hp.hpl.jena.rdf.model.Model model)
Execute a DESCRIBE query, putting the statements into 'model'. |
com.hp.hpl.jena.query.ResultSet |
execSelect()
Execute a SELECT query |
com.hp.hpl.jena.sparql.util.Context |
getContext()
The properties associated with a query execution - implementation specific parameters This includes Java objects (so it is not an RDF graph). |
com.hp.hpl.jena.query.Dataset |
getDataset()
The dataset against which the query will execute. |
com.hp.hpl.jena.query.Query |
getQuery()
The query associated with a query execution. |
boolean |
isDifference()
|
void |
setFileManager(com.hp.hpl.jena.util.FileManager fm)
Set the FileManger that might be used to load files. |
void |
setInitialBinding(com.hp.hpl.jena.query.QuerySolution binding)
Set the initial association of variables and values. |
void |
setTimeout(long timeout)
Set time, in milliseconds |
void |
setTimeout(long timeout1,
long timeout2)
Set time, in milliseconds |
void |
setTimeout(long timeout,
TimeUnit timeoutUnits)
Set a timeout on the query execution. |
void |
setTimeout(long timeout1,
TimeUnit timeUnit1,
long timeout2,
TimeUnit timeUnit2)
Set timeouts on the query execution; the first timeout refers to time to first result, the second refers to overall query execution after the first result. |
static com.google.common.collect.Multiset<com.hp.hpl.jena.query.QuerySolution> |
toMultiset(com.hp.hpl.jena.query.ResultSet rs)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryExecutionCompare(com.hp.hpl.jena.query.QueryExecution a,
com.hp.hpl.jena.query.QueryExecution b,
boolean isOrdered)
| Method Detail |
|---|
public static com.google.common.collect.Multiset<com.hp.hpl.jena.query.QuerySolution> toMultiset(com.hp.hpl.jena.query.ResultSet rs)
public static ListDiff<com.hp.hpl.jena.query.QuerySolution> compareOrdered(com.hp.hpl.jena.query.ResultSet a,
com.hp.hpl.jena.query.ResultSet b)
a - b -
public static ListDiff<com.hp.hpl.jena.query.QuerySolution> compareUnordered(com.hp.hpl.jena.query.ResultSet a,
com.hp.hpl.jena.query.ResultSet b)
public static ModelDiff compareModel(com.hp.hpl.jena.rdf.model.Model a,
com.hp.hpl.jena.rdf.model.Model b)
public boolean isDifference()
public void setFileManager(com.hp.hpl.jena.util.FileManager fm)
setFileManager in interface com.hp.hpl.jena.query.QueryExecutionpublic void setInitialBinding(com.hp.hpl.jena.query.QuerySolution binding)
setInitialBinding in interface com.hp.hpl.jena.query.QueryExecutionbinding - public com.hp.hpl.jena.query.Dataset getDataset()
getDataset in interface com.hp.hpl.jena.query.QueryExecutionpublic com.hp.hpl.jena.sparql.util.Context getContext()
getContext in interface com.hp.hpl.jena.query.QueryExecutionpublic com.hp.hpl.jena.query.Query getQuery()
getQuery in interface com.hp.hpl.jena.query.QueryExecutionpublic com.hp.hpl.jena.query.ResultSet execSelect()
execSelect in interface com.hp.hpl.jena.query.QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execConstruct()
execConstruct in interface com.hp.hpl.jena.query.QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execConstruct(com.hp.hpl.jena.rdf.model.Model model)
execConstruct in interface com.hp.hpl.jena.query.QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execDescribe()
execDescribe in interface com.hp.hpl.jena.query.QueryExecutionpublic com.hp.hpl.jena.rdf.model.Model execDescribe(com.hp.hpl.jena.rdf.model.Model model)
execDescribe in interface com.hp.hpl.jena.query.QueryExecutionpublic boolean execAsk()
execAsk in interface com.hp.hpl.jena.query.QueryExecutionpublic void abort()
abort in interface com.hp.hpl.jena.query.QueryExecutionpublic void close()
close in interface com.hp.hpl.jena.query.QueryExecution
public void setTimeout(long timeout,
TimeUnit timeoutUnits)
setTimeout in interface com.hp.hpl.jena.query.QueryExecutionpublic void setTimeout(long timeout)
setTimeout in interface com.hp.hpl.jena.query.QueryExecutionsetTimeout(long, java.util.concurrent.TimeUnit)
public void setTimeout(long timeout1,
TimeUnit timeUnit1,
long timeout2,
TimeUnit timeUnit2)
setTimeout in interface com.hp.hpl.jena.query.QueryExecution
public void setTimeout(long timeout1,
long timeout2)
setTimeout in interface com.hp.hpl.jena.query.QueryExecutionsetTimeout(long, java.util.concurrent.TimeUnit, long, java.util.concurrent.TimeUnit)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||