Skip to content

crp.btf

Auto-generated reference for the crp.btf subpackage.

btf

crp.btf

Bi-Temporal CKF (CRP-SPEC-057).

BiTemporalFact dataclass

A CKF fact with both event-time and ingestion-time validity intervals.

true_in_world_at(t)

Was this fact true in the world at t?

believed_by_system_at(t)

Did the system believe this fact at t?

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

A CKF fact with both event-time and ingestion-time validity intervals.

true_in_world_at(t)

Was this fact true in the world at t?

believed_by_system_at(t)

Did the system believe this fact at t?

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).