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
impl Rdf12OccurrenceTyper
Sourcepub const fn new(inferred: NonZeroU64, role: LiteralRole) -> Self
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.
Sourcepub 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>,
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.