mex.extractors.mapping package¶
Submodules¶
mex.extractors.mapping.extract module¶
- mex.extractors.mapping.extract.extract_mapping_data(path: PathLike[str]) dict[str, Any] ¶
Return a nested dictionary with default values.
- Parameters:
path – path to mapping json
- Returns:
mapping model with default value data from specified path
mex.extractors.mapping.transform module¶
- mex.extractors.mapping.transform.transform_mapping_data_to_model(raw_data: dict[str, Any], extracted_model: type[ExtractedAccessPlatform | ExtractedActivity | ExtractedBibliographicResource | ExtractedConsent | ExtractedContactPoint | ExtractedDistribution | ExtractedOrganization | ExtractedOrganizationalUnit | ExtractedPerson | ExtractedPrimarySource | ExtractedResource | ExtractedVariable | ExtractedVariableGroup]) Any ¶
Transform raw mapping data to a mapping model with default values.
- Parameters:
raw_data – raw mapping data
extracted_model – extracted model corresponding to the mapping
- Returns:
mapping model with default value data
- mex.extractors.mapping.transform.transform_mapping_data_to_models(raw_data: list[dict[str, Any]], extracted_model: type[ExtractedAccessPlatform | ExtractedActivity | ExtractedBibliographicResource | ExtractedConsent | ExtractedContactPoint | ExtractedDistribution | ExtractedOrganization | ExtractedOrganizationalUnit | ExtractedPerson | ExtractedPrimarySource | ExtractedResource | ExtractedVariable | ExtractedVariableGroup]) list[Any] ¶
Transform a list of raw mapping data to mapping models with default values.
- Parameters:
raw_data – list of raw mapping data
extracted_model – extracted model corresponding to the mapping
- Returns:
list of mapping models with default value data
mex.extractors.mapping.types module¶
- mex.extractors.mapping.types.AnyMappingModel¶
alias of
Any