public interface Sparqlable
Modifier and Type | Method and Description |
---|---|
ClosableIterable<Statement> |
queryConstruct(String query,
String querylanguage) |
QueryResultTable |
querySelect(String query,
String querylanguage)
returns results for queries in other query languages as a
QueryResultTable as supported by underlying implementation.
|
boolean |
sparqlAsk(String query)
SPARQL ask queries
|
ClosableIterable<Statement> |
sparqlConstruct(String query) |
ClosableIterable<Statement> |
sparqlDescribe(String query)
Iterator must be auto-close, i.e.
|
QueryResultTable |
sparqlSelect(String queryString)
returns results for SPARQL Select queries, as supported by underlying
implementation.
|
ClosableIterable<Statement> queryConstruct(String query, String querylanguage) throws QueryLanguageNotSupportedException, MalformedQueryException, ModelRuntimeException
query
- querylanguage
- ModelRuntimeException
- if the execution throws an exceptionQueryLanguageNotSupportedException
- if the adapter can't
understand the given query languageMalformedQueryException
- if the query is not a valid construct
query in the given query languageQueryResultTable querySelect(String query, String querylanguage) throws QueryLanguageNotSupportedException, MalformedQueryException, ModelRuntimeException
queryString
- The select query stringModelRuntimeException
- if the execution throws an exceptionQueryLanguageNotSupportedException
- if the given query langauge is
not supportedMalformedQueryException
- if the query is not a valid query in the
given query languageboolean sparqlAsk(String query) throws ModelRuntimeException, MalformedQueryException
query
- a SPARQL AKS queryModelRuntimeException
- if the execution throws an exceptionMalformedQueryException
- if the query is not a valid SPARQL ASK
queryClosableIterable<Statement> sparqlConstruct(String query) throws ModelRuntimeException, MalformedQueryException
ModelRuntimeException
- if the execution throws an exceptionMalformedQueryException
- if the query is not a valid SPARQL
CONSTRUCT queryClosableIterable<Statement> sparqlDescribe(String query) throws ModelRuntimeException
query
- ModelRuntimeException
- if the execution throws an exceptionMalformedQueryException
- if the query is not a valid SPARQL
DESCRIBE queryQueryResultTable sparqlSelect(String queryString) throws MalformedQueryException, ModelRuntimeException
queryString
- The SPARQL select query stringModelRuntimeException
- if an error happens when executing the
queryMalformedQueryException
- if the query is not a valid SPARQL SELECT
queryCopyright © 2005–2017 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.