pub struct Rdf12OccurrenceCursor<'a, A: EntailmentTerms, C: TripleCursor> { /* private fields */ }Expand description
Stream actual RDF term/predicate appearances with bounded iterative traversal.
Reuses the asynchronous structural accessor used by simple entailment. A
backend cache miss must load authoritative structure or fail; None means
a supported atomic term, never an evicted or unsupported triple term.
Literal datatype/language/direction metadata are not traversed as RDF terms.
Supply an immutable root cursor for one selected scope and role. Source assertions/derived facts and target context are separately scheduled by the controller. This cursor performs no entailment, datatype typing, property typing, constructor execution or graph writes. After any error discard the traversal and all semantic output based on its incomplete appearances.
Implementations§
Source§impl<'a, A, C> Rdf12OccurrenceCursor<'a, A, C>
impl<'a, A, C> Rdf12OccurrenceCursor<'a, A, C>
Sourcepub fn new(
roots: C,
terms: &'a A,
role: LiteralRole,
limits: OccurrenceLimits,
) -> Self
pub fn new( roots: C, terms: &'a A, role: LiteralRole, limits: OccurrenceLimits, ) -> Self
Bind one immutable selected root cursor and exact shared term dictionary. Keep snapshot/source-graph provenance alongside returned root/path records.
Sourcepub const fn role(&self) -> LiteralRole
pub const fn role(&self) -> LiteralRole
Explicit source/target role selected before any traversal I/O.
Sourcepub async fn next(
&mut self,
) -> Result<Option<TermOccurrence<A::Term>>, OccurrenceError<A::Error>>
pub async fn next( &mut self, ) -> Result<Option<TermOccurrence<A::Term>>, OccurrenceError<A::Error>>
Emit one actual appearance, revisiting repeated keys at distinct paths.
§Errors
Backend, cancellation and explicit traversal budgets abort the attempt. Nested cycles cannot exhaust the call stack: depth/work caps fail first.