pub enum RefactorRequest {
RenameIri {
from_iri: String,
to_iri: String,
},
MergeEntities {
keep_iri: String,
merge_iri: String,
},
ReplaceEntity {
from_iri: String,
to_iri: String,
},
MigrateNamespace {
from_base: String,
to_base: String,
},
MoveEntity {
entity_iri: String,
target_file: PathBuf,
},
ExtractModule {
entity_iris: Vec<String>,
output_file: PathBuf,
leave_stub: bool,
locality: bool,
},
MoveAxioms {
entity_iri: String,
target_file: PathBuf,
statement_indexes: Vec<usize>,
exclude_primary: bool,
},
MergeOntologies {
source_paths: Vec<PathBuf>,
target_file: PathBuf,
},
FlattenImports {
ontology_file: PathBuf,
},
CleanupImports {
ontology_file: PathBuf,
},
}Variants§
RenameIri
MergeEntities
ReplaceEntity
MigrateNamespace
MoveEntity
ExtractModule
Fields
MoveAxioms
Move selected Turtle subject statements for an entity to another file.
statement_indexes are 0-based indexes into all_entity_statement_ranges
(excluding the primary type declaration when exclude_primary is true).
MergeOntologies
Merge one or more source ontology Turtle files into a target file.
FlattenImports
Inline imported Turtle axioms into a root ontology and remove owl:imports.
CleanupImports
Remove unused owl:imports lines (heuristic: no imported entities referenced).
Trait Implementations§
Source§impl Clone for RefactorRequest
impl Clone for RefactorRequest
Source§fn clone(&self) -> RefactorRequest
fn clone(&self) -> RefactorRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefactorRequest
impl Debug for RefactorRequest
Source§impl<'de> Deserialize<'de> for RefactorRequest
impl<'de> Deserialize<'de> for RefactorRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RefactorRequest
impl RefUnwindSafe for RefactorRequest
impl Send for RefactorRequest
impl Sync for RefactorRequest
impl Unpin for RefactorRequest
impl UnsafeUnpin for RefactorRequest
impl UnwindSafe for RefactorRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more