pub struct SparqlQueryArgs {
pub server: Option<String>,
pub query: Option<String>,
pub query_file: Option<String>,
pub accept: Option<String>,
pub timeout: u64,
}Expand description
Arguments for dsp vre sparql query.
No --format/-j/-l/--columns/--no-header (D2, plan 035): the
response body is a store-authored document in a store-negotiated media
type, and dsp-cli’s envelope would corrupt or double-encode it. Copied
from TokenArgs’ precedent (D2) — the third no-Renderer command.
Fields§
§server: Option<String>DSP server URL or shortcut (e.g. https://api.example.org or prod).
Can also be set via the DSP_SERVER environment variable or a .env file.
query: Option<String>The SPARQL query text. Mutually exclusive with –query-file; if
neither is given, the query is read from stdin. See –help’s note on
shell-history/ps exposure.
query_file: Option<String>Path to a file containing the SPARQL query text. Mutually exclusive
with –query. A leading-dash path is accepted as-is
(--query-file -foo.rq), via allow_hyphen_values.
accept: Option<String>Requested response media type: an alias (json/xml/csv/tsv/turtle/
ntriples/jsonld) or a raw media type containing ‘/’. Defaults to
json (application/sparql-results+json) — the store’s own default,
with no Accept sent, is XML. See –help for the full alias table and
the Fuseki silent-fallback caveat.
timeout: u64Client-side request timeout, in whole seconds. Bounds the request DOWN from the server’s own guardrail; it cannot raise it. Default: 3600 (one hour) — the server’s own ~135s deadline is what ends a slow query in practice.
Trait Implementations§
Source§impl Args for SparqlQueryArgs
impl Args for SparqlQueryArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Debug for SparqlQueryArgs
impl Debug for SparqlQueryArgs
Source§impl FromArgMatches for SparqlQueryArgs
impl FromArgMatches for SparqlQueryArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.