|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QueryResult
QueryResult contains the result set of an executed query with all bindings. This class also provides some methods to export the result set in different formats like SPARQL-XML or JSON.
Method Summary | |
---|---|
boolean |
ask()
Ask if the query had a solution. |
QueryBinding |
get(int index)
Returns the QueryBinding at the specified position of the result. |
Query |
getQuery()
Get the query that belongs to this result. |
boolean |
isEmpty()
Check whether the result set is empty. |
java.util.Iterator<QueryBinding> |
iterator()
An iterator over the result set. |
int |
size()
Get the size of the result set. |
java.lang.String |
toJSON()
Output query results in JSON format as standardized in http://www.w3.org/TR/rdf-sparql-json-res/. |
java.lang.String |
toString()
Use this method for debugging purposes. |
Document |
toXML()
Output query results as JDOM XML document containing the standard SPARQL query results XML format (http://www.w3.org/TR/rdf-sparql-XMLres/). |
Method Detail |
---|
Query getQuery()
java.util.Iterator<QueryBinding> iterator()
iterator
in interface java.lang.Iterable<QueryBinding>
QueryBinding get(int index)
index
-
int size()
boolean isEmpty()
boolean ask()
Document toXML()
java.lang.String toJSON()
java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |