engine.rete.facts¶
Working-memory facts and partial matches used by the RETE network.
Classes¶
Fundamental unit of data within the RETE internals. |
|
Represent facts satisfying a subset of a rule's preconditions. |
Functions¶
|
Return the canonical internal id for one RDFLib triple. |
Module Contents¶
- engine.rete.facts.fact_id_for_triple(triple: axiom.common.Triple) str¶
Return the canonical internal id for one RDFLib triple.
- class engine.rete.facts.Fact(/, **data: Any)¶
Bases:
pydantic.BaseModelFundamental unit of data within the RETE internals.
In the current design, logical entailment is triple-oriented. Any broader RETE-OO-style object handling remains internal scaffolding and MUST NOT bypass the engine’s triple-based materialization contract.
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- triple: axiom.common.Triple = None¶
- class engine.rete.facts.PartialMatch(/, **data: Any)¶
Bases:
pydantic.BaseModelRepresent facts satisfying a subset of a rule’s preconditions.
Partial matches are the join-time support structure later referenced by agenda scheduling, justification tracking, and explanation reconstruction.
- model_config¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- bindings: dict[str, rdflib.term.Node] = None¶