Skip to main content

strixonomy_owl/
lib.rs

1//! Horned-OWL facade for Strixonomy: load, catalog bridge, and patch write-back.
2//!
3//! Published as [`strixonomy-owl`](https://crates.io/crates/strixonomy-owl).
4
5mod apply_xml;
6mod bridge;
7pub mod compare;
8mod error;
9pub mod links;
10mod load;
11pub mod manchester;
12mod mutate;
13pub mod patch;
14mod remap;
15pub mod render;
16mod serialize;
17mod span;
18mod turtle_lex;
19pub mod util;
20
21pub use apply_xml::{apply_xml_patches, apply_xml_patches_to_text};
22pub use bridge::{bridge_ontology, OwlBridgeResult};
23pub use compare::{compare_bridges, compare_ontologies, SemanticDiff};
24pub use error::{OwlError, Result};
25pub use links::{
26    extract_first_link_url, extract_links, extract_with_pattern, linkify_markdown_text,
27    AnnotationLink,
28};
29pub use load::{load_from_quads, load_owx_text, load_turtle_text, supports_horned_load};
30pub use manchester::{
31    class_expression_to_manchester, class_expression_to_turtle_fragment,
32    class_expression_to_turtle_value, data_range_to_manchester, data_range_to_turtle_term,
33    expression_tree_json, parse_class_expression, parse_class_expression_with_datatypes,
34    parse_data_range, ManchesterDiagnostic, ManchesterParseOutput,
35};
36pub use mutate::{apply_patches_to_ontology, apply_patches_to_ontology_with_ns};
37pub use patch::{
38    apply_patches, apply_patches_to_text, atomic_write, is_safe_iri, validate_prefix,
39    ApplyPatchResult, PatchDiagnostic, PatchEntityKind, PatchOp,
40};
41pub use remap::{
42    merge_entity_iri, merge_entity_iri_in_xml_text, remap_entity_iri, remap_entity_iri_in_xml_text,
43};
44pub use render::{
45    escape_manchester_rendering, expand_prefixed_iri, match_prefix, render_as_curie,
46    render_entity_iri, split_iri, unescape_manchester_rendering,
47};
48pub use serialize::{
49    load_owl_xml_ontology, load_rdf_xml_ontology, serialize_owl_xml, serialize_rdf_xml,
50};
51pub use span::{
52    all_entity_statement_ranges, entity_block_range, entity_primary_block_range,
53    is_in_comment_or_string, namespaces_for_text, prefixes_from_turtle, short_name_from_iri,
54    ByteRange,
55};
56pub use util::{
57    abbreviate_string, cmp_annotation_property_iri, format_iso8601_utc, render_entity_markdown,
58    replace_lexical_value, replace_lexical_value_whole, LexicalLiteral,
59    DEFAULT_ANNOTATION_PROPERTY_ORDER, ELLIPSIS,
60};