pub struct Rdf12AxiomSeeder { /* private fields */ }Expand description
Explicit bounded seeding of shared RDF 1.2 axioms into fresh attempt storage.
This is independent of structural-rule profile selection and does not claim
full RDFS entailment. The caller chooses source/target-relevant container
vocabulary; this type never enumerates infinite rdf:_n IRIs or scans a graph.
Select _1 where required by the standard’s target-entailment procedure.
One instance budgets all its seed calls cumulatively. Rule execution has its own output budget; callers must also enforce an attempt-wide scratch budget. On any failure discard the attempt, including all successfully staged seeds.
Implementations§
Source§impl Rdf12AxiomSeeder
impl Rdf12AxiomSeeder
Sourcepub const fn new(maximum: NonZeroU64) -> Self
pub const fn new(maximum: NonZeroU64) -> Self
Set the maximum total novel axiom tuples across this seeder’s calls.
Sourcepub const fn inferred(&self) -> u64
pub const fn inferred(&self) -> u64
Total newly staged axiom tuples; asserted/inferred duplicates are excluded.
Sourcepub async fn seed_family<S: ReasoningStore>(
&mut self,
store: &mut S,
family: Rdf12AxiomId,
) -> Result<(), ReasoningError<S::Error>>
pub async fn seed_family<S: ReasoningStore>( &mut self, store: &mut S, family: Rdf12AxiomId, ) -> Result<(), ReasoningError<S::Error>>
Stage one finite shared family, preserving exact family and ground tuple.
§Errors
Storage failure, cancellation, unsupported definitions or exhausted output budget abort the attempt. Successful prior writes remain unpublished scratch.
Sourcepub async fn seed_container<S: ReasoningStore, I: AsRef<str>>(
&mut self,
store: &mut S,
container: &Rdf12ContainerProperty<I>,
) -> Result<(), ReasoningError<S::Error>>
pub async fn seed_container<S: ReasoningStore, I: AsRef<str>>( &mut self, store: &mut S, container: &Rdf12ContainerProperty<I>, ) -> Result<(), ReasoningError<S::Error>>
Stage the four shared RDF/RDFS axioms for one already checked container IRI.
The caller supplies relevant vocabulary incrementally, including target vocabulary when checking entailment. Merely seeding observed input IRIs is insufficient to implement arbitrary source-to-target entailment.
§Errors
Storage failure, cancellation, unsupported definitions or exhausted output budget abort the entire attempt; partial seeds must never be promoted.
Sourcepub async fn seed_existential<S: Rdf12WitnessStore>(
&mut self,
store: &mut S,
id: Rdf12ExistentialAxiomId,
) -> Result<(), ReasoningError<S::Error>>
pub async fn seed_existential<S: Rdf12WitnessStore>( &mut self, store: &mut S, id: Rdf12ExistentialAxiomId, ) -> Result<(), ReasoningError<S::Error>>
Stage one shared nonempty-class membership using a caller-owned blank.
RDF uses the three rdfD1a descriptors; RDFS also uses rdfs14a.
Repeated calls reuse the attempt’s stored witness. Distinct blank keys
imply neither unequal denotations nor a unique-name assumption. Preserve
attempt/snapshot identity alongside descriptor and ground membership.
§Errors
Unsupported allocation, storage failure, cancellation or exhausted output budget aborts the entire attempt; partial witnesses must not be promoted.