|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.query.QueryResultUtil
public class QueryResultUtil
Class offering utility methods related to query results.
| Constructor Summary | |
|---|---|
QueryResultUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
bindingSetsCompatible(BindingSet bs1,
BindingSet bs2)
Check whether two BindingSets are compatible. |
static boolean |
equals(GraphQueryResult result1,
GraphQueryResult result2)
|
static boolean |
equals(TupleQueryResult tqr1,
TupleQueryResult tqr2)
Compares the two query results by converting them to graphs and returns true if they are equal. |
static void |
report(GraphQueryResult gqr,
RDFHandler rdfHandler)
Reports a graph query result to an RDFHandler. |
static void |
report(TupleQueryResult tqr,
TupleQueryResultHandler handler)
Reports a tuple query result to a TupleQueryResultHandler. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResultUtil()
| Method Detail |
|---|
public static void report(TupleQueryResult tqr,
TupleQueryResultHandler handler)
throws TupleQueryResultHandlerException,
QueryEvaluationException
TupleQueryResultHandler.
tqr - The query result to report.handler - The handler to report the query result to.
TupleQueryResultHandlerException - If such an exception is thrown by the used query result writer.
QueryEvaluationException
public static void report(GraphQueryResult gqr,
RDFHandler rdfHandler)
throws RDFHandlerException,
QueryEvaluationException
RDFHandler.
gqr - The query result to report.rdfHandler - The handler to report the query result to.
RDFHandlerException - If such an exception is thrown by the used RDF writer.
QueryEvaluationException
public static boolean equals(TupleQueryResult tqr1,
TupleQueryResult tqr2)
throws QueryEvaluationException
QueryEvaluationException
public static boolean equals(GraphQueryResult result1,
GraphQueryResult result2)
throws QueryEvaluationException
QueryEvaluationException
public static boolean bindingSetsCompatible(BindingSet bs1,
BindingSet bs2)
BindingSets are compatible. Two binding sets
are compatible if they have equal values for each binding name that occurs
in both binding sets.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||