pub struct Coherence {
pub coherent: bool,
pub inconsistency_count: u32,
pub by_kind: Vec<(String, u32)>,
pub scope: String,
pub rules: String,
pub materialized: bool,
}Expand description
The build-time OWL RL / RDFS coherence verdict, stamped into the card by
rete build --reason. Deterministic and free of free-text detail (only a
sorted by_kind histogram + short tags), so it folds into the file’s content
hash without destabilizing it. scope records what was checked and rules the
ruleset version, so coherent: true can’t be misread as a guarantee from a
different scope or rule set.
Fields§
§coherent: boolTrue iff the reasoner found no incoherent point.
inconsistency_count: u32Number of incoherent points found.
by_kind: Vec<(String, u32)>(kind, count) histogram of incoherent points, sorted by kind.
scope: StringWhat was checked, e.g. "default" (the default graph).
rules: StringThe reasoner ruleset version (crate::REASON_RULESET).
materialized: boolTrue iff the inferred triples were also materialized into the file.
Implementations§
Source§impl Coherence
impl Coherence
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
An unstamped card has the all-default block (omitted from the JSON).
Sourcepub fn from_reasoning(r: &Reasoning, materialized: bool) -> Coherence
pub fn from_reasoning(r: &Reasoning, materialized: bool) -> Coherence
Build the verdict from a reasoning result over the default graph. The
by_kind histogram is BTreeMap-sourced (sorted) and carries no free-text
Inconsistency::detail, so the stamp is byte-stable across rebuilds.