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
impl Rdf12PropositionConstructor
Sourcepub const fn new(limits: PropositionLimits) -> Self
pub const fn new(limits: PropositionLimits) -> Self
Set strict work/output caps; the backend separately caps dictionary/nesting.
Sourcepub async fn run<S: Rdf12TripleTermStore>(
&self,
store: &mut S,
) -> Result<PropositionReport, ReasoningError<S::Error>>
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.
Sourcepub async fn run_candidates<S, C>(
&self,
store: &mut S,
candidates: &mut C,
) -> Result<PropositionReport, ReasoningError<S::Error>>
pub async fn run_candidates<S, C>( &self, store: &mut S, candidates: &mut C, ) -> Result<PropositionReport, ReasoningError<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.