engine.rulesets.owl2_rl_common ============================== .. py:module:: engine.rulesets.owl2_rl_common .. autoapi-nested-parse:: Shared helpers for OWL 2 RL Section 4.3 rule definitions. Entailment rules use ``RuleId(ruleset="owl2-rl", rule_id=...)``. Contradiction rules keep ``RuleId(ruleset="owl2-rl-contradiction", rule_id=...)`` and live in the dedicated contradiction ruleset module. Attributes ---------- .. autoapisummary:: engine.rulesets.owl2_rl_common.OWL2_RL_RULESET engine.rulesets.owl2_rl_common.OWL2_RL_CONTRADICTION_RULESET engine.rulesets.owl2_rl_common.OWL2_RL_PROFILES_SECTION_URI engine.rulesets.owl2_rl_common.X engine.rulesets.owl2_rl_common.Y engine.rulesets.owl2_rl_common.Z engine.rulesets.owl2_rl_common.P engine.rulesets.owl2_rl_common.Q engine.rulesets.owl2_rl_common.C engine.rulesets.owl2_rl_common.A engine.rulesets.owl2_rl_common.B engine.rulesets.owl2_rl_common.I engine.rulesets.owl2_rl_common.U engine.rulesets.owl2_rl_common.W engine.rulesets.owl2_rl_common.LT engine.rulesets.owl2_rl_common.T Functions --------- .. autoapisummary:: engine.rulesets.owl2_rl_common.owl2_rl_rule_id engine.rulesets.owl2_rl_common.owl2_rl_rule_description Module Contents --------------- .. py:data:: OWL2_RL_RULESET :type: str :value: 'owl2-rl' .. py:data:: OWL2_RL_CONTRADICTION_RULESET :type: str :value: 'owl2-rl-contradiction' .. py:data:: OWL2_RL_PROFILES_SECTION_URI :type: rdflib.term.URIRef .. py:data:: X .. py:data:: Y .. py:data:: Z .. py:data:: P .. py:data:: Q .. py:data:: C .. py:data:: A .. py:data:: B .. py:data:: I .. py:data:: U .. py:data:: W .. py:data:: LT .. py:data:: T .. py:function:: owl2_rl_rule_id(rule_id: str) -> engine.proof.RuleId Build a ``RuleId`` for an OWL 2 RL entailment rule. :param rule_id: Canonical OWL 2 RL rule name (for example ``eq-sym`` or ``prp-dom``). :returns: A ``RuleId`` with ``ruleset`` set to :data:`OWL2_RL_RULESET`. .. py:function:: owl2_rl_rule_description(label: str, description: str | None = None) -> engine.proof.RuleDescription Build package-consumer-safe metadata for an OWL 2 RL entailment rule. References cite the official OWL 2 Profiles Section 4.3 URI rather than repository-local documentation paths. :param label: Short human-readable rule label. :param description: Optional longer description of the inference step. :returns: A ``RuleDescription`` with a normative OWL 2 Profiles authority reference.