|
|
@ -36,11 +36,11 @@ const HTML_ROOT_PAGE: &str = include_str!("../templates/query.html"); |
|
|
|
const LOGO: &str = include_str!("../logo.svg"); |
|
|
|
const LOGO: &str = include_str!("../logo.svg"); |
|
|
|
|
|
|
|
|
|
|
|
#[derive(Parser)] |
|
|
|
#[derive(Parser)] |
|
|
|
#[clap(about, author, version)] |
|
|
|
#[clap(about, version)] |
|
|
|
/// Oxigraph SPARQL server
|
|
|
|
/// Oxigraph SPARQL server
|
|
|
|
struct Args { |
|
|
|
struct Args { |
|
|
|
/// Directory in which persist the data
|
|
|
|
/// Directory in which persist the data
|
|
|
|
#[clap(short, long, parse(from_os_str))] |
|
|
|
#[clap(short, long, parse(from_os_str), global = true)] |
|
|
|
location: Option<PathBuf>, |
|
|
|
location: Option<PathBuf>, |
|
|
|
#[clap(subcommand)] |
|
|
|
#[clap(subcommand)] |
|
|
|
command: Command, |
|
|
|
command: Command, |
|
|
@ -51,13 +51,13 @@ enum Command { |
|
|
|
/// Start Oxigraph HTTP server
|
|
|
|
/// Start Oxigraph HTTP server
|
|
|
|
Serve { |
|
|
|
Serve { |
|
|
|
/// Host and port to listen to
|
|
|
|
/// Host and port to listen to
|
|
|
|
#[clap(short, long, default_value = "localhost:7878")] |
|
|
|
#[clap(short, long, default_value = "localhost:7878", global = true)] |
|
|
|
bind: String, |
|
|
|
bind: String, |
|
|
|
}, |
|
|
|
}, |
|
|
|
/// Bulk loads file(s) into the store
|
|
|
|
/// Load file(s) into the store
|
|
|
|
Load { |
|
|
|
Load { |
|
|
|
/// file(s) to load
|
|
|
|
/// file(s) to load
|
|
|
|
#[clap(short, long)] |
|
|
|
#[clap(short, long, global = true)] |
|
|
|
file: Vec<String>, |
|
|
|
file: Vec<String>, |
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|