Expand description
OWL profile detection and diagnostics for OntoLogos.
v0.2 classifies ontologies into OWL 2 EL, RL, QL, or DL profiles using mapped TBox constructs. Diagnostics also report constructs observed in the full parse that fall outside the detected profile.
§Example
use ontologos_core::Ontology;
use ontologos_profile::{detect_profile, OwlProfile};
let ontology = Ontology::default();
let report = detect_profile(&ontology)?;
assert_eq!(report.detected, Some(OwlProfile::Ql));Modules§
- scanner
- Construct scanning helpers for profile detection.
Structs§
- Classified
Module - One classified module in a hybrid ontology.
- Hybrid
Report - Hybrid classification report (per-module routing).
- Profile
Diagnostic - Diagnostic emitted when unsupported constructs are encountered.
- Profile
Report - Profile detection report for an ontology.
Enums§
- Error
- Profile detection failed.
- OwlConstruct
- OWL 2 construct observed during parsing (for profile detection).
- OwlProfile
- Detected OWL 2 profile.
Functions§
- bottom_
module_ class_ seeds - Expand DL class seeds with classes that depend on DL axioms (structural ⊥-module approximation).
- classify_
hybrid - Partition ontology into EL / RL / DL modules (signature + detected profile).
- detect_
profile - Detect the most specific OWL profile supported by the ontology.
- detected_
profile_ kind - Map detected OWL profile to core routing kind.
- el_
classification_ forbidden_ in - Constructs that block in-house EL classification when present in mapped axioms.
- el_
diagnostics - Profile diagnostics for constructs outside OWL 2 EL.
- el_
forbidden_ in - Constructs present in
constructsthat fall outside OWL 2 EL. - engine_
for_ profile - Route module to engine name for conformance / CLI.
- extract_
signature - Extract ⊥-module style signature: all class entities in the ontology.
- merge_
taxonomies - Merge module taxonomies (called from
ontologos-dlafter per-engine classify). - partition_
axioms - Partition axiom ids into EL-safe and DL-residue buckets with dependency closure.
- profile_
from_ ontology - Resolve profile from ontology for reasoner configuration helpers.
- resolve_
route - Resolve the engine route for a reasoner profile and ontology.
- satisfies_
el - Returns true when every construct in
constructsis allowed in OWL 2 EL. - signature_
for_ axioms - Extract class IRIs referenced by axioms.
- subontology_
with_ axioms - Build a sub-ontology containing only the given axioms (entity ids preserved).
Type Aliases§
- Result
- Result type alias for profile operations.