Expand description
Workspace refactoring for OntoCore (v0.8).
Published as ontocore-refactor.
Structs§
Enums§
Functions§
- apply_
refactor_ plan - Apply a refactor plan to disk. When
preview_onlyis true, no files are written. - apply_
refactor_ plan_ checked - Apply plan and return count of files written.
- apply_
refactor_ plan_ checked_ with_ overrides - Apply plan with optional open-buffer overrides used for compare-and-swap.
- expand_
signature_ locality - Expand seed entity IRIs under the bottom-locality MVP heuristic (see module docs).
- find_
usages - Find all usages of
target_iriacross the indexed workspace. - find_
usages_ with_ overrides - Find usages, preferring unsaved document text from
document_overrides. - plan_
touches_ path - plans_
equivalent - Returns true when client-submitted plan matches a server re-preview byte-for-byte.
- preview_
cleanup_ imports - Remove unused
owl:importswhen none of the imported ontology’s entities are referenced. - preview_
extract_ module - preview_
flatten_ imports - Inline axioms from imported Turtle documents into the root file and remove imports.
- preview_
merge_ entities - preview_
merge_ ontologies - Merge source ontology Turtle documents into
target_file(prefix union + body append). - preview_
migrate_ namespace - preview_
move_ axioms - Move selected subject statements for
entity_iriintotarget_file. - preview_
move_ entity - preview_
refactor - Preview a refactor. Client-supplied paths (
target_file/output_file) are jailed underworkspace_rootsbefore any filesystem read. - preview_
rename_ iri - preview_
replace_ entity - validate_
refactor_ plan_ paths - Validate every path in a refactor plan is within the workspace jail.
- validate_
refactor_ plan_ paths_ any - Validate every path in a refactor plan is within at least one workspace root.