Skip to content

graflo.link

Linking partial records to entities, over the key contract.

A producer that holds only some properties of the entities it describes -- an extractor, a form, a partial feed -- states them as records (PartialRecord) of a RecordGraph. This package links those records to entities:

  • records -- the record, graph and resolution models;
  • resolve -- resolve_records identifies a batch by keys alone, stages what it cannot identify with the reason, and write_record_graphs writes what resolved;
  • candidates -- gather_candidates lists the entities a staged record may be, graded against what it states, and support says whether a candidate's features identify it.

Every keyed decision is graflo.hq.identify.identify; what this package adds is batch state: records found by other records of the batch, staging, minting, ownership and the write.

It is not exported from any graflo façade; import its modules directly (graflo.link.records, graflo.link.resolve, graflo.link.candidates).

Modules:

Name Description
candidates

Gather the entities a staged record may be, without a model.

records

What a producer states about entities, before anything is known about which they are.

resolve

Resolve partial records to entities, then write what is resolved.

__all__ = ['candidates', 'records', 'resolve'] module-attribute