pub struct Rdf12TargetConstructor { /* private fields */ }Expand description
Select substituted original-target triple terms for shared Grdfs14 construction.
Run after ordered source/context preparation. This is one finite positive-search phase, not a complete RDFS decision procedure. Newly staged facts cannot feed matching or constructor premises until the caller starts another pass, normally after core closure. Never feed it an unrestricted resource/property product.
Implementations§
Source§impl Rdf12TargetConstructor
impl Rdf12TargetConstructor
Sourcepub const fn new(limits: TargetConstructionLimits) -> Self
pub const fn new(limits: TargetConstructionLimits) -> Self
Select explicit matching, grounding and constructor budgets.
Sourcepub async fn run<S, A, T>(
&self,
store: &mut S,
access: &A,
target: &T,
) -> Result<TargetConstructionReport, TargetConstructionError<S::Error>>where
S: Rdf12TripleTermStore,
A: EntailmentTerms<Term = S::Term, Error = S::Error>,
T: TripleSource<Term = S::Term, Error = S::Error>,
pub async fn run<S, A, T>(
&self,
store: &mut S,
access: &A,
target: &T,
) -> Result<TargetConstructionReport, TargetConstructionError<S::Error>>where
S: Rdf12TripleTermStore,
A: EntailmentTerms<Term = S::Term, Error = S::Error>,
T: TripleSource<Term = S::Term, Error = S::Error>,
Stream consistent partial matches, substitute original target triple terms, and validate all three shared typing premises in one fixed snapshot.
Matched subsets supply candidate bindings; skipped patterns are not proved.
Unbound variables receive the single rdf:type representative, consistently
within each substitution. This is a selected witness search, not an adequate
enumeration of all RDFS interpretations. Constructor premises still gate
every fact, and a separate whole-target match is required for a proof.
Source, target, accessor and store must share exact append-only dictionary identities and cancellation, with independently scoped target blanks. Keep original source/target snapshots, phase snapshot, profile/catalogue and graph provenance beside shared constructor evidence. Target contents are never asserted. Actual substituted depth and dictionary growth are backend-bounded.
§Errors
Any exhausted budget, cancellation, read/write or identity failure aborts the entire attempt. Zero output never establishes negative entailment.