tabulate_index

tabulate_index(index: dict[Triple, list[Annotated[ReasonedEvidence | SimpleEvidence, FieldInfo(annotation=NoneType, required=True, discriminator='evidence_type')]]]) str[source]

Create a table of all mappings contained in an index.

Parameters:

index – An index of mappings - a dictionary whose keys are subject-predicate-object tuples and values are lists of associated evidence (pre-deduplicated)

Returns:

A table with four columns:

  1. Source

  2. Predicate

  3. Object

  4. Evidences