โ† Back to Safety DB

HQ Safety Database

Architecture Visualizer v2

Our roots. Their receipts.

๐Ÿ†” HQ ID System

Our classification system. External identifiers (CAS, PubChem, etc.) stored as crossrefs.

Compound hq-c-0001 โ†’ CAS, PubChem CID, InChIKey, ECHA EC, UNII
Material hq-m-0001 โ†’ Resin codes, ASTM standards
Product hq-p-0001 โ†’ None needed (our categories)

Why not CAS?

HQ IDs are free, traceable, and always crossref to established identifiers.

๐Ÿ“ Data Hierarchy

Everything is chemistry. Everything traces to compounds.

Compound
hq-c-XXXX
"What is this at the molecular level?"
โ†“
Material
hq-m-XXXX
"What's it made of?"
โ†“
Product
hq-p-XXXX
"What am I holding / wearing / feeding?"
โ†“
Context
safety.contexts.{key}
"Who's exposed? How? What happens?"

Compound Hierarchy: Glyphosate Family

Parent compounds have children (salts, esters, metabolites). Children inherit safety data but have their own identity.

hq-c-0001 Glyphosate CAS 1071-83-6
parent
hq-c-0002 Glyphosate isopropylamine salt CAS 38641-94-0
salt_form
hq-c-0003 Glyphosate potassium salt CAS 70901-12-1
salt_form
hq-c-0004 Glyphosate ammonium salt CAS 114370-14-8
salt_form
Relationship types: salt_form, ester_form, metabolite, degradation_product, isomer, hydrate, prodrug, conjugate, analog

Compounds

Next available: hq-c-1226
888 active compounds
hq-c-0001 โ†’ hq-c-1225 (with gaps)
active
295 alias records
salt forms, metabolites, synonyms
alias
1,183 total files
schema v3.2.0 โ€ข ALCOA+ compliant
active
100% hazard_profile ยท 100% found_in ยท 95% regulatory classifications ยท 80% GHS ยท 68% LD50

Materials

Next available: hq-m-0263
262 materials
hq-m-0001 โ†’ hq-m-0262
active
Plastics, metals, textiles, finishes
schema v3.2.0
active
100% thermal ยท 100% additives ยท 100% safety_summary ยท 70% compound_id resolved

Products

Next available: hq-p-0362
237 active products
hq-p-0001 โ†’ hq-p-0361 (with gaps)
active
Consumer categories
schema v3.2.0
active
15 fields at 100% coverage ยท 98% compound_composition resolved

Standard Context Keys

Populations

human_adult
human_child
human_infant
human_pregnant
human_nursing
human_immunocompromised
dog
cat
bird
fish
horse

Exposure Routes

exposure_dermal
exposure_inhalation
exposure_ingestion
exposure_ocular

Environment

soil
water
aquatic_life

Risk Levels

minimal
low
moderate
high
toxic
unknown
context_dependent

โœ“ Resolved Nomenclature Decisions

resolved Should filenames include CAS numbers?
No. Filenames use HQ IDs: hq-c-0001.json
Human-readable name and CAS live inside the file as crossrefs.
resolved How to handle salts/variants of same compound?
Separate HQ IDs with hierarchy. Parent compound gets canonical ID.
Children reference parent via hierarchy.parent and hierarchy.relationship.
inherits_safety: true indicates safety data flows from parent.
resolved What's the unique identifier for materials?
HQ IDs. hq-m-0001 for PVC vinyl, etc.
Crossrefs include resin codes and ASTM standards where applicable.
resolved Products โ€” brand-specific or generic categories?
Generic categories only. "Dog harness" not "Kong Model X".
Brand-specific data is maintenance nightmare + liability risk.
resolved Version tracking โ€” in filename or metadata?
Metadata only. meta.version and meta.revision_history.
Filename stays stable: hq-c-0001.json

๐Ÿ“ Directory Structure

hq-safety-db/
โ”œโ”€โ”€ README.md                  โ† Overview + contributing guide
โ”œโ”€โ”€ ARCHITECTURE.html          โ† This file
โ”œโ”€โ”€ RESEARCH-SUMMARY.html      โ† Identifier landscape analysis
โ”œโ”€โ”€ index.html                 โ† Interactive viewer
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ”œโ”€โ”€ compounds/
โ”‚   โ”‚   โ”œโ”€โ”€ hq-c-0001.json     โ† Glyphosate (parent)
โ”‚   โ”‚   โ”œโ”€โ”€ hq-c-0002.json     โ† IPA salt (child)
โ”‚   โ”‚   โ””โ”€โ”€ ...                โ† 1,183 files (888 active + 295 aliases)
โ”‚   โ”œโ”€โ”€ materials/
โ”‚   โ”‚   โ””โ”€โ”€ ...                โ† 262 material files
โ”‚   โ”œโ”€โ”€ products/
โ”‚   โ”‚   โ””โ”€โ”€ ...                โ† 237 product files
โ”‚   โ”œโ”€โ”€ schemas/
โ”‚   โ”‚   โ”œโ”€โ”€ compound.schema.json
โ”‚   โ”‚   โ”œโ”€โ”€ material.schema.json
โ”‚   โ”‚   โ”œโ”€โ”€ product.schema.json
โ”‚   โ”‚   โ”œโ”€โ”€ compound-v2-extended.json
โ”‚   โ”‚   โ””โ”€โ”€ material-v2-extended.json
โ”‚   โ””โ”€โ”€ registry.json
โ”‚
โ”œโ”€โ”€ templates/
โ”‚   โ””โ”€โ”€ compound.template.json
โ”‚
โ””โ”€โ”€ pages/
    โ”œโ”€โ”€ disclaimer.html
    โ””โ”€โ”€ data-policy.html