Skip to content

This repository hosts a JSON mapping file that maps brand names to company names

License

Notifications You must be signed in to change notification settings

open4good/brands-company-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

brands-company-mapping

This repository hosts a JSON mapping file that maps brand names to company names

Purpose

The primary goa l is to allow nudger to integrate external ESG ratings in it's ImpactScore. To proceed, we need to resolve companies names from brands.

Description

The mapping is a simple json key/value structure, where key is the brand, and value the company operating this brand. Here is a sample of the full brands-company-mapping.json file

{
  "SAMSUNG": "Samsung Electronics Co., Ltd.",
  "TCL": "TCL Electronics Holdings Ltd.",
  "LG": "LG Electronics, Inc.",
  "PHILIPS": "Koninklijke Philips NV"
}

Convention

The following convention is applied to the data :

brand

The brands (keys of the json structure) are sanitized. It means : 2. upper cased 3. trimed (removing leading end trailing whitespaces) 4. accents stripped

Here is a sample java code implementing the sanitization :

public String sanitizeBrand(String name) {
  if (StringUtils.isEmpty(name)) {
    return  "";
  }    
  return StringUtils.stripAccents(name.toUpperCase()).trim();
}

company name

The companies names (values of the json structure) are based on the one used by Sustainalytics ESG rating platform.

Wants to contribute ?

Simply fill a PR with your key / values, it will be reviewed then merged.

About

This repository hosts a JSON mapping file that maps brand names to company names

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published