pub struct EcommerceReasoningSystem { /* private fields */ }Expand description
E-Commerce reasoning system with all Beta.1 features
Implementations§
Source§impl EcommerceReasoningSystem
impl EcommerceReasoningSystem
Sourcepub fn initialize_product_rules(&mut self) -> Result<()>
pub fn initialize_product_rules(&mut self) -> Result<()>
Initialize the system with product recommendation rules
Sourcepub fn initialize_inventory_validation(&mut self) -> Result<()>
pub fn initialize_inventory_validation(&mut self) -> Result<()>
Initialize inventory validation rules using SHACL
Sourcepub fn setup_distributed_reasoning(&mut self) -> Result<()>
pub fn setup_distributed_reasoning(&mut self) -> Result<()>
Setup distributed reasoning with multiple nodes
Sourcepub fn process_order(&mut self, customer: &str, product: &str) -> Result<()>
pub fn process_order(&mut self, customer: &str, product: &str) -> Result<()>
Process customer order with full transaction support
Sourcepub fn query_recommendations(&mut self, customer: &str) -> Result<Vec<String>>
pub fn query_recommendations(&mut self, customer: &str) -> Result<Vec<String>>
Query recommendations using SPARQL integration
Sourcepub fn validate_inventory(
&mut self,
inventory_facts: &[RuleAtom],
) -> Result<bool>
pub fn validate_inventory( &mut self, inventory_facts: &[RuleAtom], ) -> Result<bool>
Validate inventory using SHACL
Sourcepub fn execute_distributed(
&mut self,
facts: &[RuleAtom],
) -> Result<Vec<RuleAtom>>
pub fn execute_distributed( &mut self, facts: &[RuleAtom], ) -> Result<Vec<RuleAtom>>
Execute distributed reasoning for large datasets
Sourcepub fn explain_recommendation(
&self,
customer: &str,
product: &str,
) -> Result<String>
pub fn explain_recommendation( &self, customer: &str, product: &str, ) -> Result<String>
Get explanation for a recommendation
Sourcepub fn get_statistics(&self) -> SystemStatistics
pub fn get_statistics(&self) -> SystemStatistics
Get comprehensive statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EcommerceReasoningSystem
impl RefUnwindSafe for EcommerceReasoningSystem
impl Send for EcommerceReasoningSystem
impl Sync for EcommerceReasoningSystem
impl Unpin for EcommerceReasoningSystem
impl UnsafeUnpin for EcommerceReasoningSystem
impl UnwindSafe for EcommerceReasoningSystem
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more