Class Sparql
java.lang.Object
org.eclipse.rdf4j.console.command.ConsoleCommand
org.eclipse.rdf4j.console.command.QueryEvaluator
org.eclipse.rdf4j.console.command.Sparql
SPARQL query command
- Author:
- Bart Hanssens
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.console.command.ConsoleCommand
LOGGER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addQueryPrefixes
(StringBuffer result, Collection<Namespace> namespaces) Add namespace prefixes to queryGet long descriptionGet short description, small enough to fit on one console rowgetName()
Get the name of the commandprotected boolean
hasQueryPrefixes
(String qry) Check if query string already contains query prefixesMethods inherited from class org.eclipse.rdf4j.console.command.QueryEvaluator
executeQuery, usesSettings
Methods inherited from class org.eclipse.rdf4j.console.command.ConsoleCommand
askProceed, execute, getConsoleIO, getConsoleSettings, getConsoleState, write, writeError, writeError, writeInfo, writeln, writeUnopenedError
-
Constructor Details
-
Sparql
Constructor- Parameters:
evaluator
-
-
-
Method Details
-
getName
Description copied from interface:Help
Get the name of the command- Returns:
- string
-
getHelpShort
Description copied from class:ConsoleCommand
Get short description, small enough to fit on one console row- Specified by:
getHelpShort
in interfaceHelp
- Overrides:
getHelpShort
in classConsoleCommand
- Returns:
- help string
-
getHelpLong
Description copied from class:ConsoleCommand
Get long description- Specified by:
getHelpLong
in interfaceHelp
- Overrides:
getHelpLong
in classConsoleCommand
- Returns:
- string, can be multiple lines
-
hasQueryPrefixes
Description copied from class:QueryEvaluator
Check if query string already contains query prefixes- Specified by:
hasQueryPrefixes
in classQueryEvaluator
- Parameters:
qry
- query string- Returns:
- true if namespaces are already used
-
addQueryPrefixes
Description copied from class:QueryEvaluator
Add namespace prefixes to query- Specified by:
addQueryPrefixes
in classQueryEvaluator
- Parameters:
result
-namespaces
- collection of known namespaces
-