bridge.builders.europe_pmc.europe_pmc_transformer module

bridge.builders.europe_pmc.europe_pmc_transformer module#

Transformer converting raw Europe PMC API JSON into a Publication model.

class bridge.builders.europe_pmc.europe_pmc_transformer.EuropePMCTransformer(ingestor)[source]#

Bases: Transformer

Transform raw data from EuropePMCIngestor into a Publication model.

Parameters:

ingestor (EuropePMCIngestor) – An instance of EuropePMCIngestor to fetch raw publication data.

ingestor#

The ingestor instance used to fetch raw publication data.

Type:

EuropePMCIngestor

async transform()[source]#

Transform raw Europe PMC data into a Publication model.

Parameters:

data (dict) – The raw data from Europe PMC.

Returns:

The transformed Publication model.

Return type:

Publication