Skip to content

Data Lineage

Every Entity and data sub-model returned by a search or stored on a Case File carries structured provenance metadata showing which authority and which search produced or corroborated each piece of data.

Provenance is represented through two optional metadata properties:

  • _sources: Object-level list of SourceAttribution records for all sources that contributed to the object.
  • _lineage: Sparse field-level map (FieldLineageMap<T>) overriding or detailing attribution per scalar field when multiple sources contribute to the same object.

SourceAttribution object

Each attribution entry identifies a canonical data source and the specific search execution that retrieved it:

Field Type Required Description
source string Yes Canonical human-readable name of the data authority (e.g. Handelsregister, Österreichisches Firmenbuch, Justiz Firmenbuch, Wiener Börse, SEC EDGAR, BaFin, GLEIF (Legal Entity Identifier))
searchId string Yes _id of the search record (GET /search/{searchId}/status and case.searches[]) that produced or corroborated this data
sourceType string No Category of data authority — see Source types

Source types

Value Description
registry Official corporate or commercial registry, including dedicated financial statement repositories (e.g. Companies House, Handelsregister, Justiz Firmenbuch)
exchange Stock exchange issuer disclosure (e.g. NASDAQ, New York Stock Exchange, London Stock Exchange, Deutsche Börse, Wiener Börse)
regulator Financial or securities regulator (e.g. SEC EDGAR, Investment Adviser Public Disclosure (IAPD), FINRA BrokerCheck, SEDAR+, Cayman Islands Monetary Authority, BaFin)
gleif Global Legal Entity Identifier Foundation (GLEIF (Legal Entity Identifier))

Info

Attributions are deduplicated by (searchId, source):

  • Same searchId, multiple source values: Occurs when a single search pulls from distinct authorities (for example, an Austrian search with include.financials: true retrieves corporate registry data from Österreichisches Firmenbuch and annual accounts from Justiz Firmenbuch).
  • Same source, multiple searchId values: Occurs when an entity is first discovered as a counterparty in one registry search and later expanded in its own registry search.

Sparse _lineage & inheritance rules

_lineage maps populated scalar field names (string, number, or boolean) on an object to SourceAttribution[].

1. Inheritance from _sources

To keep payloads compact, _lineage uses a sparse inheritance model:

  1. If obj._lineage?.[field] is present and non-empty, that array is the field's exact provenance.
  2. Otherwise, the scalar field inherits obj._sources.
const fieldSources = obj._lineage?.[field] ?? obj._sources;

2. When _lineage is omitted vs populated

  • Single-source objects (_sources.length === 1): _lineage is omitted because every populated scalar field inherits _sources.
  • Multi-source sub-objects (Address, Identifier, Relationship, Shareholding, VotingRights, Activity, Capital, ShareClass, Financials, LEI, OtherName, Participation): _lineage is omitted if every populated scalar field on that sub-object shares the exact same attribution list as the sub-object's _sources, and populated only when fields on that sub-object differ in provenance.
  • Multi-source Entity objects (_sources.length > 1): Explicit _lineage entries are populated for all populated scalar fields on the Entity so callers can directly distinguish corroborated fields (multiple attributions) from single-source fields without manual diffing.

3. Keys excluded from _lineage

Object identity fields (_id, _entityURL, _parentId, _documentID, _entityID, _sources, _lineage) and nested objects or arrays (addresses, activities, capital, counterparties, financials, identifiers, lei, otherNames, participations, relationships, sourceDocuments, shareClasses, shareholding, votingRights) never appear as keys inside _lineage. Instead, each nested object carries its own _sources (and sparse _lineage when applicable).

sourceDocuments omit lineage

SourceDocument entries in entity.sourceDocuments[] intentionally omit _sources and _lineage (neither property is included on document records). Each filing already records its origin directly via sourceDocument.source, _documentID, and _entityID.

Multi-source entity merge behavior

When you enrich a case via Search options (include.financials, include.lei) or expand counterparties (POST /search/expand, POST /search/expandlayers), results merge into case.target:

  • Corroborated scalar fields: When an incoming source reports an equivalent value for an existing scalar field (normalized for case, accents, punctuation, or numeric equality), the incoming SourceAttribution is appended to that field's _lineage entry.
  • Newly discovered scalar fields: Empty scalar fields populated by the incoming search receive the incoming source's attribution in _lineage.
  • Updated scalar fields: When a higher-priority or newer expand updates a scalar field to a different value, _lineage[field] is replaced with the winning source's attribution while entity._sources retains the full union of sources that contributed to the entity.

Example (multi-source entity merge)

Below is a case.target entity after an Austrian registry search (include.financials: true) followed by a stock exchange expand on Wiener Börse:

  • legalName is corroborated by both Österreichisches Firmenbuch and Wiener Börse.
  • number_of_employees comes from Justiz Firmenbuch (annual financial statements).
  • companyURL comes from Wiener Börse.
  • Single-source nested objects (identifiers[], financials) carry _sources and omit _lineage, while sourceDocuments[] omit both _sources and _lineage.
{
  "_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "legalName": "ANDRITZ AG",
  "companyStatus": "Active",
  "registrationDate": "04-08-1990",
  "countryOfRegistration": "AT",
  "jurisdiction": "AT",
  "number_of_employees": 2078,
  "companyURL": "https://www.andritz.com",
  "_sources": [
    {
      "source": "Österreichisches Firmenbuch",
      "searchId": "G5S8j1kN2G9BrN0cJB1q",
      "sourceType": "registry"
    },
    {
      "source": "Justiz Firmenbuch",
      "searchId": "G5S8j1kN2G9BrN0cJB1q",
      "sourceType": "registry"
    },
    {
      "source": "Wiener Börse",
      "searchId": "W9x2Lm4Pq8Rt1Vz6Kc3n",
      "sourceType": "exchange"
    }
  ],
  "_lineage": {
    "legalName": [
      {
        "source": "Österreichisches Firmenbuch",
        "searchId": "G5S8j1kN2G9BrN0cJB1q",
        "sourceType": "registry"
      },
      {
        "source": "Wiener Börse",
        "searchId": "W9x2Lm4Pq8Rt1Vz6Kc3n",
        "sourceType": "exchange"
      }
    ],
    "companyStatus": [
      {
        "source": "Österreichisches Firmenbuch",
        "searchId": "G5S8j1kN2G9BrN0cJB1q",
        "sourceType": "registry"
      }
    ],
    "registrationDate": [
      {
        "source": "Österreichisches Firmenbuch",
        "searchId": "G5S8j1kN2G9BrN0cJB1q",
        "sourceType": "registry"
      }
    ],
    "countryOfRegistration": [
      {
        "source": "Österreichisches Firmenbuch",
        "searchId": "G5S8j1kN2G9BrN0cJB1q",
        "sourceType": "registry"
      }
    ],
    "jurisdiction": [
      {
        "source": "Österreichisches Firmenbuch",
        "searchId": "G5S8j1kN2G9BrN0cJB1q",
        "sourceType": "registry"
      }
    ],
    "number_of_employees": [
      {
        "source": "Justiz Firmenbuch",
        "searchId": "G5S8j1kN2G9BrN0cJB1q",
        "sourceType": "registry"
      }
    ],
    "companyURL": [
      {
        "source": "Wiener Börse",
        "searchId": "W9x2Lm4Pq8Rt1Vz6Kc3n",
        "sourceType": "exchange"
      }
    ]
  },
  "identifiers": [
    {
      "type": "FirmenbuchNummer",
      "number": "50935f",
      "authority": "Österreichisches Firmenbuch",
      "jurisdiction": "AT",
      "_sources": [
        {
          "source": "Österreichisches Firmenbuch",
          "searchId": "G5S8j1kN2G9BrN0cJB1q",
          "sourceType": "registry"
        }
      ]
    },
    {
      "type": "ISIN",
      "number": "AT0000730007",
      "authority": "Wiener Börse",
      "_sources": [
        {
          "source": "Wiener Börse",
          "searchId": "W9x2Lm4Pq8Rt1Vz6Kc3n",
          "sourceType": "exchange"
        }
      ]
    }
  ],
  "financials": {
    "currency": "EUR",
    "net_turnover": 2442670793.54,
    "total_assets": 3328530594.9,
    "_sources": [
      {
        "source": "Justiz Firmenbuch",
        "searchId": "G5S8j1kN2G9BrN0cJB1q",
        "sourceType": "registry"
      }
    ]
  },
  "sourceDocuments": [
    {
      "_documentID": "doc-fb-50935f",
      "_entityID": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "dateRetrieved": "11-11-2026",
      "name": "FIRMENBUCHAUSZUG FN-50935f",
      "source": "Österreichisches Firmenbuch"
    },
    {
      "_documentID": "doc-ja-50935f",
      "_entityID": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "dateRetrieved": "11-11-2026",
      "name": "JAHRESABSCHLUSS FN-50935f",
      "source": "Justiz Firmenbuch"
    }
  ]
}