Class Sparql
java.lang.Object
org.eclipse.rdf4j.console.command.ConsoleCommand
org.eclipse.rdf4j.console.command.QueryEvaluator
org.eclipse.rdf4j.console.command.Sparql
-
Field Summary
Fields inherited from class ConsoleCommand
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddQueryPrefixes(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 booleanhasQueryPrefixes(String qry) Check if query string already contains query prefixesMethods inherited from class QueryEvaluator
executeQuery, usesSettingsModifier and TypeMethodDescriptionvoidexecuteQuery(String command, String operation) Execute a SPARQL queryString[]Return the names of the settings used.Methods inherited from class ConsoleCommand
askProceed, execute, getConsoleIO, getConsoleSettings, getConsoleState, write, writeError, writeError, writeInfo, writeln, writeUnopenedErrorModifier and TypeMethodDescriptionprotected booleanaskProceed(String str, boolean defVal) Ask user to proceedvoidExecute the given parameters.Get console IOGet console settings mapGet console stateprotected voidWrite a string to the consoleprotected voidwriteError(String str) Write a string + newline to the console and to the log as an errorprotected voidwriteError(String str, Exception e) Write a string + message of exception + newline to the console and to the log as an errorprotected voidWrite a string + newline to the console and to the log at level INFOprotected voidWrite a string + newline to the consoleprotected voidWrite repository not opened error
-
Constructor Details
-
Sparql
-
-
Method Details
-
getName
-
getHelpShort
Description copied from class:ConsoleCommandGet short description, small enough to fit on one console row- Specified by:
getHelpShortin interfaceHelp- Overrides:
getHelpShortin classConsoleCommand- Returns:
- help string
-
getHelpLong
Description copied from class:ConsoleCommandGet long description- Specified by:
getHelpLongin interfaceHelp- Overrides:
getHelpLongin classConsoleCommand- Returns:
- string, can be multiple lines
-
hasQueryPrefixes
Description copied from class:QueryEvaluatorCheck if query string already contains query prefixes- Specified by:
hasQueryPrefixesin classQueryEvaluator- Parameters:
qry- query string- Returns:
- true if namespaces are already used
-
addQueryPrefixes
Description copied from class:QueryEvaluatorAdd namespace prefixes to query- Specified by:
addQueryPrefixesin classQueryEvaluator- Parameters:
result-namespaces- collection of known namespaces
-