public abstract class QueryEvaluator extends ConsoleCommand
LOGGER
Constructor and Description |
---|
QueryEvaluator(TupleAndGraphQueryEvaluator evaluator)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addQueryPrefixes(StringBuffer result,
Collection<Namespace> namespaces)
Add namespace prefixes to query
|
void |
executeQuery(String command,
String operation)
Execute a SPARQL or SERQL query, defaults to SPARQL
|
protected abstract boolean |
hasQueryPrefixes(String query)
Check if query string already contains query prefixes
|
String[] |
usesSettings()
Return the names of the settings used.
|
askProceed, execute, getConsoleIO, getConsoleSettings, getConsoleState, getHelpLong, getHelpShort, write, writeError, writeError, writeInfo, writeln, writeUnopenedError
public QueryEvaluator(TupleAndGraphQueryEvaluator evaluator)
evaluator
- protected abstract boolean hasQueryPrefixes(String query)
query
- query stringprotected abstract void addQueryPrefixes(StringBuffer result, Collection<Namespace> namespaces)
result
- namespaces
- collection of known namespacespublic String[] usesSettings()
Command
usesSettings
in interface Command
usesSettings
in class ConsoleCommand
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.