pub struct Rdfs12Source { /* private fields */ }Expand description
Compose bounded source-only RDF/RDFS default-map preparation phases.
Start a fresh selected asserted snapshot; never expose prior closure or target context as source input. All scratch remains caller-owned and unpublished. Existing appearing triple terms are typed through the shared constructor; arbitrary resource/property combinations are not generated. Target-relative candidate completeness, goal scheduling and entailment decisions stay separate.
Implementations§
Source§impl Rdfs12Source
impl Rdfs12Source
Sourcepub const fn new(config: Rdfs12SourceConfig) -> Self
pub const fn new(config: Rdfs12SourceConfig) -> Self
Configure every phase explicitly; the serialized config has no defaults.
Sourcepub async fn run<S, A, D>(
&self,
store: &mut S,
access: &A,
sink: &mut D,
) -> Result<Rdfs12SourceOutcome, Rdfs12SourceError<S::Term, S::Error>>where
S: Rdf12WitnessStore + Rdf12TripleTermStore,
A: LiteralTermAccess<Term = S::Term, Error = S::Error> + Rdf12ContainerAccess,
D: Rdf12SourceDiagnosticSink<Term = S::Term, Error = S::Error>,
pub async fn run<S, A, D>(
&self,
store: &mut S,
access: &A,
sink: &mut D,
) -> Result<Rdfs12SourceOutcome, Rdfs12SourceError<S::Term, S::Error>>where
S: Rdf12WitnessStore + Rdf12TripleTermStore,
A: LiteralTermAccess<Term = S::Term, Error = S::Error> + Rdf12ContainerAccess,
D: Rdf12SourceDiagnosticSink<Term = S::Term, Error = S::Error>,
Prepare source axioms, inspected literals, occurrences, existing terms and core.
First inspect every original source literal through successful EOF. Retain
recognized lexical violations separately and return Conflicting without
seeding or inference. Read/metadata/UTF-8/resource failures remain errors.
Otherwise repeat bounded source rounds until no phase adds facts. Classify canonical
container IRIs from actual direct/nested source appearances, not literal
metadata. Seed distinct nonempty-class blanks through the caller’s scope.
Only then scan supported default-map conflicts into the separate sink.
Prepared is not a source-to-target decision or a full consistency
certificate. Check input currentness and the complete requested semantic
contract before atomic promotion; Conflicting forbids promotion.
§Errors
Any compile/read/write/metadata/UTF-8/cancellation or resource failure invalidates the attempt. Discard scratch and retain diagnostics with scope.