Class QueryEvaluator
java.lang.Object
org.eclipse.rdf4j.console.command.ConsoleCommand
org.eclipse.rdf4j.console.command.QueryEvaluator
- Direct Known Subclasses:
Sparql
Abstract query evaluator command
- Author:
- Dale Visser, Bart Hanssens
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.console.command.ConsoleCommand
LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addQueryPrefixes
(StringBuffer result, Collection<Namespace> namespaces) Add namespace prefixes to queryvoid
executeQuery
(String command, String operation) Execute a SPARQL queryprotected abstract boolean
hasQueryPrefixes
(String query) Check if query string already contains query prefixesString[]
Return the names of the settings used.Methods inherited from class org.eclipse.rdf4j.console.command.ConsoleCommand
askProceed, execute, getConsoleIO, getConsoleSettings, getConsoleState, getHelpLong, getHelpShort, write, writeError, writeError, writeInfo, writeln, writeUnopenedError
-
Constructor Details
-
QueryEvaluator
Constructor- Parameters:
evaluator
-
-
-
Method Details
-
hasQueryPrefixes
Check if query string already contains query prefixes- Parameters:
query
- query string- Returns:
- true if namespaces are already used
-
addQueryPrefixes
Add namespace prefixes to query- Parameters:
result
-namespaces
- collection of known namespaces
-
usesSettings
Description copied from interface:Command
Return the names of the settings used.- Specified by:
usesSettings
in interfaceCommand
- Overrides:
usesSettings
in classConsoleCommand
- Returns:
- string array of settings
-
executeQuery
Execute a SPARQL query- Parameters:
command
- to executeoperation
- "sparql", "base" or SPARQL query form
-