Skip to main content

Rdf12AxiomSeeder

Struct Rdf12AxiomSeeder 

Source
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

Source

pub const fn new(maximum: NonZeroU64) -> Self

Set the maximum total novel axiom tuples across this seeder’s calls.

Source

pub const fn inferred(&self) -> u64

Total newly staged axiom tuples; asserted/inferred duplicates are excluded.

Source

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.

Source

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.

Source

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.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V