HomeSoftware Heritage

Replace 'normalize' parameter of _translate_dict() with a hook method

Description

Replace 'normalize' parameter of _translate_dict() with a hook method

This parameter was only used to execute extra code before
normalize_translation is called. This caused some duplication, and
will not work when switching to a non-JSON-LD internal representation.

Removing it also makes the code of mappings more consistent, by removing
specific field handling from their implementation of the translate
method itself.

Details

Provenance
vlorentzAuthored on Aug 19 2022, 12:18 PM
vlorentzPushed on Aug 23 2022, 10:15 AM
Differential Revision
D8275: Replace 'normalize' parameter of _translate_dict() with a hook method
Parents
rDCIDX466108c1667c: python: Simplify translation logic of author metadata
Branches
Unknown
Tags
Unknown
Build Status
Buildable 30965
Build 48433: test-and-buildJenkins console · Jenkins