pub enum VreCmd {
Project {
cmd: ProjectCmd,
},
DataModel {
cmd: DataModelCmd,
},
ResourceType {
cmd: ResourceTypeCmd,
},
Resource {
cmd: ResourceCmd,
},
Vocabulary {
cmd: VocabularyCmd,
},
Sparql {
cmd: SparqlCmd,
},
}Expand description
VRE noun-group subcommands.
Variants§
Project
Manage DSP projects.
A project is the top-level container on DSP. Every data-model and resource belongs to exactly one project. See also: dsp docs concepts
Fields
cmd: ProjectCmdDataModel
Manage data-models within a project.
A data-model (called “ontology” in DSP-API) defines the schema for a project’s resources: the resource-types, their fields, and value-types.
Fields
cmd: DataModelCmdResourceType
Manage resource-types within a data-model.
A resource-type (called “class” in DSP-API) defines the structure of one kind of scholarly object: its fields, value-types, and cardinalities.
Fields
cmd: ResourceTypeCmdResource
List resource instances within a project.
Fetches the actual data instances (scholarly objects) stored in the DSP server for a given resource-type, with optional pagination. See also: dsp docs concepts
Fields
cmd: ResourceCmdVocabulary
Manage controlled vocabularies within a project (DSP-API “list”).
See also: dsp docs concepts
Fields
cmd: VocabularyCmdSparql
Raw SPARQL 1.1 query passthrough to the server’s own triplestore.
Deliberately does NOT abstract DSP-API: the response is the store’s own document, byte-exact, in whatever media type it negotiated. No Renderer, no –format. Requires a SystemAdmin token. See also: dsp docs sparql
Trait Implementations§
Source§impl FromArgMatches for VreCmd
impl FromArgMatches for VreCmd
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<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for VreCmd
impl Subcommand for VreCmd
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand