|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openanzo.model.impl.query.QueryResult
public class QueryResult
QueryResult contains the results of a SPARQL query.
| Constructor Summary | |
|---|---|
QueryResult(java.lang.Boolean result)
Create an ASK QueryResult object based on boolean value |
|
QueryResult(java.util.Collection<org.openrdf.model.Statement> result,
boolean isConstruct)
Create a CONSTRUCT or DESCRIBE QueryResult object based on set of statements |
|
QueryResult(QueryResults results)
Create a new QueryResult object based on contents from QueryResults from Glitter * |
|
QueryResult(org.openrdf.query.TupleQueryResult result)
Create a Select QueryResult object based on boolean value |
|
| Method Summary | |
|---|---|
java.lang.Boolean |
getAskResult()
Get results from ASK query |
java.util.Collection<org.openrdf.model.Statement> |
getConstructResult()
Get results from CONSTRUCT query |
java.util.Collection<org.openrdf.model.Statement> |
getDescribeResult()
Get results from DESCRIBE query |
QueryType |
getQueryType()
Get the type of results this object holds |
org.openrdf.query.TupleQueryResult |
getSelectResult()
Get results from SELECT query |
boolean |
isAskResult()
Returns true if this is an ASK query |
boolean |
isConstructResult()
Returns true if this is an CONSTRUCT query |
boolean |
isDescribeResult()
Returns true if this is an DESCRIBE query |
boolean |
isSelectResult()
Returns true if this is an SELECT query |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryResult(QueryResults results)
results - QueryResults object from Glitterpublic QueryResult(java.lang.Boolean result)
result - boolean result from ASK querypublic QueryResult(org.openrdf.query.TupleQueryResult result)
result - boolean result from ASK query
public QueryResult(java.util.Collection<org.openrdf.model.Statement> result,
boolean isConstruct)
result - Set of statements that hold result valuesisConstruct - flag to specify CONSTRUCT or DESCRIBE results| Method Detail |
|---|
public java.lang.Boolean getAskResult()
public org.openrdf.query.TupleQueryResult getSelectResult()
public java.util.Collection<org.openrdf.model.Statement> getConstructResult()
public java.util.Collection<org.openrdf.model.Statement> getDescribeResult()
public QueryType getQueryType()
public boolean isAskResult()
public boolean isSelectResult()
public boolean isConstructResult()
public boolean isDescribeResult()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||