crp.btf¶
Auto-generated reference for the crp.btf subpackage.
btf¶
crp.btf ¶
Bi-Temporal CKF (CRP-SPEC-057).
BiTemporalFact dataclass ¶
TemporalCKF ¶
Minimal in-memory bi-temporal fact store.
insert(fact) ¶
Insert a new fact.
facts(*, subject=None, predicate=None) ¶
Return facts matching optional filters.
supersede(fact, new_object, at) ¶
Close the old fact and insert a successor.
Returns:
| Type | Description |
|---|---|
BiTemporalFact | The newly inserted fact. |
retrieve_as_of(subject, predicate, world_time) ¶
Return the fact that was true in the world at world_time.
current(subject, predicate) ¶
Return the currently valid fact (valid_to is None).
btf.temporal¶
crp.btf.temporal ¶
Bi-temporal CKF - event-time vs ingestion-time fact validity (CRP-SPEC-057).
BiTemporalFact dataclass ¶
TemporalCKF ¶
Minimal in-memory bi-temporal fact store.
insert(fact) ¶
Insert a new fact.
facts(*, subject=None, predicate=None) ¶
Return facts matching optional filters.
supersede(fact, new_object, at) ¶
Close the old fact and insert a successor.
Returns:
| Type | Description |
|---|---|
BiTemporalFact | The newly inserted fact. |
retrieve_as_of(subject, predicate, world_time) ¶
Return the fact that was true in the world at world_time.
current(subject, predicate) ¶
Return the currently valid fact (valid_to is None).