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) -> Self
pub fn from_reasoning(r: &Reasoning, materialized: bool) -> Self
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.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Coherence
impl<'de> Deserialize<'de> for Coherence
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl StructuralPartialEq for Coherence
Auto Trait Implementations§
impl Freeze for Coherence
impl RefUnwindSafe for Coherence
impl Send for Coherence
impl Sync for Coherence
impl Unpin for Coherence
impl UnsafeUnpin for Coherence
impl UnwindSafe for Coherence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more