ontocore-refactor 0.11.0

Workspace refactoring for OntoCore (ontocore-*) (rename, migrate, move, extract)
Documentation

ontocore-refactor

Part of OntoCore (semantic workspace engine).

Workspace refactoring for OntoCore — find usages, safe IRI rename, namespace migration, move entity, and extract module.

Usage

use ontocore_catalog::IndexBuilder;
use ontocore_refactor::{find_usages, preview_rename_iri, apply_refactor_plan};

let catalog = IndexBuilder::new().workspace("fixtures").build()?;
let usages = find_usages(&catalog, "http://example.org/people#Person");
let plan = preview_rename_iri(&catalog, "http://example.org/people#Person", "http://example.org/people#Human")?;
apply_refactor_plan(&plan, false, workspace_root)?;

CLI: ontocore refactor usages|rename|migrate-namespace|move|extract.

Install

ontocore-refactor = "0.11"

Documentation

License

MIT OR Apache-2.0