Skip to main content

Rdf12OccurrenceTyper

Struct Rdf12OccurrenceTyper 

Source
pub struct Rdf12OccurrenceTyper { /* private fields */ }
Expand description

Execute shared rdfD2/rdfs4 over authoritative recursive appearances.

Source admits both clauses. Target context admits rdfs4 only, never predicate typing, and defers new whole triple-term resource facts until construction establishes their denotation. Atomic components are still traversed and typed. The caller validates target literals before this phase, selects snapshots and schedules source consistency before target augmentation. This phase does not close newly staged triples recursively, inspect lexical payloads or construct proposition terms.

Implementations§

Source§

impl Rdf12OccurrenceTyper

Source

pub const fn new(inferred: NonZeroU64, role: LiteralRole) -> Self

Select strict novel-output cap and one explicit source/target-context role. The cursor independently bounds traversal, depth and inspected work.

Source

pub async fn run<S, A, C>( &self, store: &mut S, cursor: &mut Rdf12OccurrenceCursor<'_, A, C>, ) -> Result<OccurrenceTypingReport, OccurrenceTypingError<S::Error>>
where S: ReasoningStore, A: EntailmentTerms<Term = S::Term, Error = S::Error>, C: TripleCursor<Term = S::Term, Error = S::Error>,

Stage typing facts with exact structural occurrence evidence.

The cursor role is checked before any source read or compilation. RDF assertions spelling an auxiliary relation cannot bind that capability. Nested parents remain structural evidence, never asserted RDF premises. Keep scope/snapshot/source-graph origin alongside every retained proof.

§Errors

Role mismatch, traversal, compilation, cancellation, storage and output budget failures invalidate all partial output for the enclosing attempt.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.