oxirs-rule 0.2.4

Forward/backward rule engine for RDFS, OWL, and SWRL reasoning
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! SWRL (Semantic Web Rule Language) - Statistics
//!
//! This module implements SWRL rule components.

pub struct SwrlStats {
    pub total_rules: usize,
    pub total_builtins: usize,
}

impl std::fmt::Display for SwrlStats {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
        write!(
            f,
            "Rules: {}, Built-ins: {}",
            self.total_rules, self.total_builtins
        )
    }
}