pub struct ReasonerOptions {
pub other: Vec<String>,
pub input: Option<String>,
pub output: Option<String>,
}Expand description
RDF input/output formats and additional arguments for a Reasoner.
Default leaves formats unset and other empty. The process wrapper omits
unset flags and lets the program apply its defaults. These options do not
select a standard entailment regime or validate the RDF payloads.
§Examples
use asimov_patterns::ReasonerOptions;
let options = ReasonerOptions::builder()
.input("jsonl")
.output("jsonl")
.build();Fields§
§other: Vec<String>Additional arguments, including optional input and output file operands.
The wrapper appends these after generated format options. Put extension
options before files; each string is one literal argument. See
crate::programs for operand ordering and standard-stream selection.
input: Option<String>RDF input serialization passed as --input=FORMAT (-i in the CLI).
None omits the option; the specified program default is jsonl.
This is a format token, not an input filename or a rule language.
output: Option<String>Entailed RDF serialization passed as --output=FORMAT (-o in the CLI).
None omits the option; the specified program default is jsonl.
This selects neither an output file nor whether input statements are included.
Implementations§
Source§impl ReasonerOptions
impl ReasonerOptions
Sourcepub fn builder() -> ReasonerOptionsBuilder
pub fn builder() -> ReasonerOptionsBuilder
Create an instance of ReasonerOptions using the builder syntax
Trait Implementations§
Source§impl Args for ReasonerOptions
Available on crate feature clap only.
impl Args for ReasonerOptions
clap only.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 Clone for ReasonerOptions
impl Clone for ReasonerOptions
Source§impl Debug for ReasonerOptions
impl Debug for ReasonerOptions
Source§impl Default for ReasonerOptions
impl Default for ReasonerOptions
impl Eq for ReasonerOptions
Source§impl FromArgMatches for ReasonerOptions
Available on crate feature clap only.
impl FromArgMatches for ReasonerOptions
clap only.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.