Package org.eclipse.rdf4j.console
Class Console
java.lang.Object
org.eclipse.rdf4j.console.Console
The RDF4J Console is a command-line application for interacting with RDF4J. It reads commands from standard input and
prints feedback to standard output. Available options include loading and querying of data in repositories,
repository creation and verification of RDF files.
- Author:
- Jeen Broekstra, Arjohn Kampman, Bart Hanssens
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet console IOgetState()
Get console statestatic void
Mainfinal void
register
(ConsoleCommand cmd) Add command to register of known commandsfinal void
register
(ConsoleSetting setting) Add setting to register of known settingsprotected void
setExitOnError
(boolean mode) Set exit on error modevoid
start()
Start the interactive console, return error code on exit
-
Constructor Details
-
Console
Constructor- Throws:
IOException
-
-
Method Details
-
getState
Get console state- Returns:
- basic console state
-
getConsoleIO
Get console IO- Returns:
- console
-
setExitOnError
protected void setExitOnError(boolean mode) Set exit on error mode- Parameters:
mode
- true when error should exit
-
main
Main- Parameters:
args
- command line arguments- Throws:
IOException
-
register
Add command to register of known commands- Parameters:
cmd
- command to be added
-
register
Add setting to register of known settings- Parameters:
setting
- setting to be added
-
start
Start the interactive console, return error code on exit- Throws:
IOException
-