|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Sparqlable
Interface for SPARQL and other query languages.
| Method Summary | |
|---|---|
ClosableIterable<Statement> |
queryConstruct(java.lang.String query,
java.lang.String querylanguage)
|
QueryResultTable |
querySelect(java.lang.String query,
java.lang.String querylanguage)
returns results for queries in other query languages as a QueryResultTable as supported by underlying implementation. |
boolean |
sparqlAsk(java.lang.String query)
SPARQL ask queries |
ClosableIterable<Statement> |
sparqlConstruct(java.lang.String query)
|
ClosableIterable<Statement> |
sparqlDescribe(java.lang.String query)
Iterator must be auto-close, i.e. when last element is fetched, the implementation must call close(). |
QueryResultTable |
sparqlSelect(java.lang.String queryString)
returns results for SPARQL Select queries, as supported by underlying implementation. |
| Method Detail |
|---|
QueryResultTable sparqlSelect(java.lang.String queryString)
throws MalformedQueryException,
ModelRuntimeException
queryString - The SPARQL select query string
ModelRuntimeException - if an error happens when executing the query
MalformedQueryException - if the query is not a valid SPARQL SELECT query
QueryResultTable querySelect(java.lang.String query,
java.lang.String querylanguage)
throws QueryLanguageNotSupportedException,
MalformedQueryException,
ModelRuntimeException
queryString - The select query string
ModelRuntimeException - if the execution throws an exception
QueryLanguageNotSupportedException - if the given query langauge is not supported
MalformedQueryException - if the query is not a valid query in the given query language
ClosableIterable<Statement> sparqlConstruct(java.lang.String query)
throws ModelRuntimeException,
MalformedQueryException
ModelRuntimeException - if the execution throws an exception
MalformedQueryException - if the query is not a valid SPARQL CONSTRUCT query
ClosableIterable<Statement> queryConstruct(java.lang.String query,
java.lang.String querylanguage)
throws QueryLanguageNotSupportedException,
MalformedQueryException,
ModelRuntimeException
query - querylanguage -
ModelRuntimeException - if the execution throws an exception
QueryLanguageNotSupportedException - if the adapter can't understand the given query language
MalformedQueryException - if the query is not a valid construct query in the given
query language
boolean sparqlAsk(java.lang.String query)
throws ModelRuntimeException,
MalformedQueryException
query - a SPARQL AKS query
ModelRuntimeException - if the execution throws an exception
MalformedQueryException - if the query is not a valid SPARQL ASK query
ClosableIterable<Statement> sparqlDescribe(java.lang.String query)
throws ModelRuntimeException
query -
ModelRuntimeException - if the execution throws an exception
MalformedQueryException - if the query is not a valid SPARQL DESCRIBE query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||