|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.smi.protegex.owl.model.query.SPARQLQueryResults
Field Summary | |
private OWLModel |
owlModel
|
private com.hp.hpl.jena.query.Query |
query
|
private com.hp.hpl.jena.query.ResultSet |
results
|
Constructor Summary | |
SPARQLQueryResults(OWLModel owlModel,
com.hp.hpl.jena.query.Query query,
com.hp.hpl.jena.query.ResultSet results)
|
Method Summary | |
static SPARQLQueryResults |
create(OWLModel owlModel,
String queryString)
Creates QueryResults from a given query string (which should already include prefix declarations). |
static String |
createPrefixDeclarations(OWLModel owlModel)
Creates the SPARQL PREFIX and BASE declarations for a given OWLModel. |
List |
getVariables()
Gets a list of all variables that have been declared in the query. |
boolean |
hasNext()
Checks if there are more results available. |
Map |
next()
Gets the next results, where each result is a Map from variables to bindings. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private OWLModel owlModel
private com.hp.hpl.jena.query.Query query
private com.hp.hpl.jena.query.ResultSet results
Constructor Detail |
public SPARQLQueryResults(OWLModel owlModel, com.hp.hpl.jena.query.Query query, com.hp.hpl.jena.query.ResultSet results)
Method Detail |
public static SPARQLQueryResults create(OWLModel owlModel, String queryString) throws Exception
owlModel
- the OWLModel to operate onqueryString
- a string in the SPARQL query language syntax (SELECT...)
Exception
public static String createPrefixDeclarations(OWLModel owlModel)
owlModel
- the OWLModel to get the prefixes of
public List getVariables()
QueryResults
next()
method.
getVariables
in interface QueryResults
QueryResults.next()
public boolean hasNext()
QueryResults
hasNext
in interface QueryResults
public Map next()
QueryResults
hasNext()
delivers true.
next
in interface QueryResults
getVariables()
call).QueryResults.getVariables()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |