public class TupleAndGraphQueryEvaluator extends Object
Constructor and Description |
---|
TupleAndGraphQueryEvaluator(ConsoleIO consoleIO,
ConsoleState state,
Map<String,ConsoleSetting> settings)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
evaluateBooleanQuery(QueryLanguage queryLn,
String queryString,
QueryResultWriter writer)
Evaluate a boolean SPARQL or SERQL query
|
protected void |
evaluateGraphQuery(QueryLanguage queryLn,
String queryString,
RDFWriter writer,
Collection<Namespace> namespaces)
Evaluate SPARQL or SERQL graph query
|
protected void |
evaluateTupleQuery(QueryLanguage queryLn,
String queryString,
QueryResultWriter writer)
Evaluate SPARQL or SERQL tuple query and send the output to a writer.
|
protected void |
executeUpdate(QueryLanguage queryLn,
String queryString)
Execute a SPARQL or SERQL update
|
protected ConsoleIO |
getConsoleIO()
Get console IO
|
protected Map<String,ConsoleSetting> |
getConsoleSettings()
Get console settings
|
protected ConsoleState |
getConsoleState()
Get console State
|
public TupleAndGraphQueryEvaluator(ConsoleIO consoleIO, ConsoleState state, Map<String,ConsoleSetting> settings)
consoleIO
- state
- settings
- protected ConsoleIO getConsoleIO()
protected ConsoleState getConsoleState()
protected Map<String,ConsoleSetting> getConsoleSettings()
protected void evaluateTupleQuery(QueryLanguage queryLn, String queryString, QueryResultWriter writer) throws UnsupportedQueryLanguageException, MalformedQueryException, QueryEvaluationException, RepositoryException
queryLn
- query languagequeryString
- query stringwriter
- result writer or nullUnsupportedQueryLanguageException
MalformedQueryException
QueryEvaluationException
RepositoryException
protected void evaluateGraphQuery(QueryLanguage queryLn, String queryString, RDFWriter writer, Collection<Namespace> namespaces) throws UnsupportedQueryLanguageException, MalformedQueryException, QueryEvaluationException, RepositoryException
queryLn
- query languagequeryString
- query stringwriter
- RDFWriter to write the results tonamespaces
- namespaces to write to the RDFWriterUnsupportedQueryLanguageException
MalformedQueryException
QueryEvaluationException
RepositoryException
protected void evaluateBooleanQuery(QueryLanguage queryLn, String queryString, QueryResultWriter writer) throws UnsupportedQueryLanguageException, MalformedQueryException, QueryEvaluationException, RepositoryException
queryLn
- query languagequeryString
- query stringwriter
- UnsupportedQueryLanguageException
MalformedQueryException
QueryEvaluationException
RepositoryException
protected void executeUpdate(QueryLanguage queryLn, String queryString) throws RepositoryException, UpdateExecutionException, MalformedQueryException
queryLn
- query languagequeryString
- query stringRepositoryException
UpdateExecutionException
MalformedQueryException
Copyright © 2015-2022 Eclipse Foundation. All Rights Reserved.