Skip to content
This repository has been archived by the owner on Feb 28, 2022. It is now read-only.

Implement retain function for categories attributes #9

Open
mitfik opened this issue Oct 21, 2019 · 4 comments
Open

Implement retain function for categories attributes #9

mitfik opened this issue Oct 21, 2019 · 4 comments
Labels
enhancement New feature or request

Comments

@mitfik
Copy link
Collaborator

mitfik commented Oct 21, 2019

Currently categories attributes are generated by "const" name of the category which leads to variation of problems.

Retain function would allow to generate the names with proper structure solving as well nesting issue.

@mitfik mitfik added the enhancement New feature or request label Oct 21, 2019
@blelump
Copy link
Member

blelump commented Oct 21, 2019

@mitfik , do you have any particular impl in mind?

@mitfik
Copy link
Collaborator Author

mitfik commented Oct 22, 2019

@mitfik , do you have any particular impl in mind?

We discussed this one: http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000214163.htm

But overall it is all about having structure like this:

_category_1
_category_1_1
_category_2_1
_category_2_2
_category_2_2_1

etc...
We need to figure out naming but overall there are 2 goals to achieve:

  • solve problem of naming for categories attributes (if the name is in Japaneses current feature would break)
  • allow application to render properly attributes within nested categories - so we can get rid of the nested categories structure within the label overlay.

@mitfik
Copy link
Collaborator Author

mitfik commented Oct 23, 2019

  "attr_categories": [
      "_category-1_",
      "_category-1-1_",
      "_category-1-2_",
      "_category_1-2-1_",
      "_category_1-2-1-1_",
      "_category_1-2-1-2_",
      "_category_1-2-1-3_",
      "_category_1-2-1-4_",
      "_category_1-2-1-5_",
      "_category_1-2-2_",
      "_category-1-3_",
      "_category-1-3-1_",
      "_category-1-3-2_",
      "_category-1-3-3_",
      "_category-2_",
      "_category-2-1_",
      "_category-3_",
      "_category-3-1_",
      "_category-3-2_",
      "_category-3-2-1_",
      "_category-3-2-1-1_",
      "_category-3-2-1-2_",
      "_category-3-2-2_",
      "_category-3-2-2-1_",
      "_category-3-2-3_",
      "_category-3-2-4_",
      "_category-3-2-5_",
      "_category-3-3_",
      "_category-3-3-1_",
      "_category-3-3-2_",
      "_category-3-3-2-1_",
      "_category-3-3-3_",
      "_category-3-3-4_",
      "_category-3-3-5_",
      "_category-3-3-6_",
      "_category-3-3-7_",
      "_category-3-3-8_",
      "_category-3-4_",
      "_category-3-4-1_",
      "_category-3-4-2_",
      "_category-3-4-3_",
      "_category-3-4-4_",
      "_category-3-4-5_",
      "_category-3-4-6_",
      "_category-3-5_",
      "_category-3-6_",
      "_category-3-6-1_",
      "_category-4_",
      "_category-4-1_",
      "_category-4-2_",
      "_category-5_",
      "_category_5-1_"
  ],
  "category_labels": {
    "_category-1_": "General",
    "_category-1-1_": "Does the facility or company have written environmental policy, procedures, and practices?",
    "_category-1-2_": "Does the facility or company have documented environmental objectives or goals for performance improvement, including metrics and targets?",
    "_category_1-2-1_": "Do tracking and reduction programs exist for the following impacts",
    "_category_1-2-1-1_": "Energy consumption:",
    "_category_1-2-1-2_": "Water consumption:",
    "_category_1-2-1-3_": "Amount of hazardous waste:",
    "_category_1-2-1-4_": "Amount of non-hazardous waste:",
    "_category_1-2-1-5_": "Greenhouse gas emissions:",
    "_category_1-2-2_": "Does the facility publicly report data:",
    "_category-1-3_": "If the site operates in a water scarce region, has the facility developed a long-term strategy for future water sourcing and management?",
    "_category-1-3-1_": "Is the long-term continuity for future water sourcing and management already covered in the site-based Business Continuity Management plan?",
    "_category-1-3-2_": "Does the facility have an authorisation/permit for water intake from groundwater, river or a public system?",
    "_category-1-3-3_": "Does this authorisation/permit have any requirements that will restrict or stop your ability to obtain water?",
    "_category-2_": "Environmental Authorizations",
    "_category-2-1_": "Does the facility or company have the required environmental permits or authorizations?",
    "_category-3_": "Waste and Emissions",
    "_category-3-1_": "Does the facility or company have a process to select and manage third-party waste treatment and disposal facilities and service providers?",
    "_category-3-2_": "Does the facility or company use any of the following waste disposal methods & locations (explain as applicable)?",
    "_category-3-2-1_": "Incineration:",
    "_category-3-2-1-1_": "Off-site",
    "_category-3-2-1-2_": "On-site",
    "_category-3-2-2_": "Landfill:",
    "_category-3-2-2-1_": "If so, is the landfill area hermetically sealed?",
    "_category-3-2-3_": "Deep Well",
    "_category-3-2-4_": "Land Application (i.e. Wastewater sludge, biomass from fermentation, waste water (i.e. irrigation methods))",
    "_category-3-2-5_": "Other reuse or recycling (solvent recovery, plastics recycling, drum reuse, etc.)",
    "_category-3-3_": "Indicate which methods are used to manage wastewater from this facility.",
    "_category-3-3-1_": "Pretreatment of process water",
    "_category-3-3-2_": "On-site wastewater treatment:",
    "_category-3-3-2-1_": "Does the facility collect, store, and analyze samples of:",
    "_category-3-3-3_": "Discharge to an offsite treatment facility:",
    "_category-3-3-4_": "Discharge to a settling/retention pond:",
    "_category-3-3-5_": "Discharge to surface water (e.g., river, lake, ocean):",
    "_category-3-3-6_": "Collection and transfer to an off-site wastewater management facility/company:",
    "_category-3-3-7_": "Other, e.g. Zero liquid discharge, wastewater for irrigation, evaporation via cooling tower, incineration; deep well injection:",
    "_category-3-3-8_": "Are environmental impacts of API considered in disposal of:",
    "_category-3-4_": "Indicate which of the following types of air emissions are generated at the facility or company. Describe the types of pollution control activities if used",
    "_category-3-4-1_": "Volatile organic chemicals",
    "_category-3-4-2_": "Corrosive vapors (e.g. acid, caustic)",
    "_category-3-4-3_": "Particulates or dusts",
    "_category-3-4-4_": "Ozone depleting substances",
    "_category-3-4-5_": "Combustion by-products",
    "_category-3-4-6_": "Other Pollutants (e.g., GHG, cyanides, sulfides, ammonias, bromines, phosgene)",
    "_category-3-5_": "Has the facility or company developed and implemented a hazardous chemicals (including APIs) management program that includes development and maintenance of a current inventory of all hazardous chemicals (including APIs) used, manufactured or stored on-site, including those for production, maintenance, utilities, and laboratory purposes?",
    "_category-3-6_": "Has the facility or company established good storm water management practices?",
    "_category-3-6-1_": "Does the facility have a system for controlling and collecting water from fire-fighting to prevent off-site impacts?",
    "_category-4_": "Spills and Releases",
    "_category-4-1_": "Does the facility or company transport any hazardous materials that are subject to a regulatory authority that specifies transportation requirements? (including but not limited to the International Air Transportation Association (IATA), International Civil Aviation Organisation (ICAO), International Maritime Dangerous Goods (IMDG) Code, ADR (formally, the European Agreement concerning the International Carriage of Dangerous Goods by Road (ADR)), U.S. Department of Transportation (DOT).",
    "_category-4-2_": "Does the facility or immediate surroundings external to the site have any known soil, surface water or groundwater contamination?",
    "_category-5_": "Additional Findings - Environment",
    "_category_5-1_": "Were there any additional findings that weren’t covered above? If yes, please specify below."
  }
}

Example how it could look like

@blelump
Copy link
Member

blelump commented Oct 23, 2019

Similar concept used in SNMP protocol https://www.marcuscom.com/snmptrans/ (type ie. 1.3.6.1.2.1 and select Tree Translation)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants