Skip to main content

Rdf12PropositionConstructor

Struct Rdf12PropositionConstructor 

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

Execute shared Grdfs14 once over an immutable, explicitly selected snapshot.

The controller supplies adequate typing and source/target/substitution context before construction. This operation does not certify a complete schedule for the draft standard’s postulated Appendix A entailment procedure. Newly created terms must never feed an unrestricted recursive construction loop.

Implementations§

Source§

impl Rdf12PropositionConstructor

Source

pub const fn new(limits: PropositionLimits) -> Self

Set strict work/output caps; the backend separately caps dictionary/nesting.

Source

pub async fn run<S: Rdf12TripleTermStore>( &self, store: &mut S, ) -> Result<PropositionReport, ReasoningError<S::Error>>

Construct generalized triple terms from three shared typing premises.

Exactly one snapshot and at most three owned cursors are retained. There is no graph collection or recursive constructor feedback. Preserve this phase’s snapshot, scope and origins alongside the retained rule/premises. Contents of constructed terms are never asserted into the graph.

§Errors

Compilation, storage, substituted-term construction, cancellation and budget errors abort the entire attempt; discard all partial staged output.

Source

pub async fn run_candidates<S, C>( &self, store: &mut S, candidates: &mut C, ) -> Result<PropositionReport, ReasoningError<S::Error>>
where S: Rdf12TripleTermStore, C: TripleCursor<Term = S::Term, Error = S::Error>,

Construct only caller-selected subject/predicate/object candidates.

Candidates are structural tuples, not asserted RDF premises. The controller streams existing terms or adequately substituted target goals; it remains responsible for selection completeness and source/target phase ordering. One immutable snapshot verifies all three exact shared typing premises. No resource/property Cartesian product or recursive feedback is generated. Missing premises skip a candidate, not establish non-entailment.

matches counts candidate rows plus examined premise rows. Both empty and successful premise probes are exhausted, so late backend errors invalidate prior staging. All ordinary constructor output/depth/cancellation errors retain their abort semantics. The candidate cursor must be bounded/streamed.

§Errors

Read/compile/storage, malformed probes, cancellation and budgets fail the entire attempt; discard all partial staged output and dictionary additions.

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.