Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    CastError
Message:      Couldn't cast
metadata: struct<name: string, description: string, publisher: string, license: string, cite_as: string, rows: (... 35 chars omitted)
  child 0, name: string
  child 1, description: string
  child 2, publisher: string
  child 3, license: string
  child 4, cite_as: string
  child 5, rows: int64
  child 6, last_updated: timestamp[s]
data: list<item: struct<id: string, country: string, iso: string, regulator: string, abbr: string, website (... 123 chars omitted)
  child 0, item: struct<id: string, country: string, iso: string, regulator: string, abbr: string, website: string, p (... 111 chars omitted)
      child 0, id: string
      child 1, country: string
      child 2, iso: string
      child 3, regulator: string
      child 4, abbr: string
      child 5, website: string
      child 6, parent_agency: string
      child 7, key_legislation: list<item: string>
          child 0, item: string
      child 8, scope: string
      child 9, established: int64
      child 10, wikidata: string
name: string
keywords: list<item: string>
  child 0, item: string
publisher: struct<@type: string, name: string, url: string>
  child 0, @type: string
  child 1, name: string
  child 2, url: string
citeAs: string
conformsTo: string
license: string
creator: struct<@type: string, name: string, url: string>
  child 0, @type: string
  child 1, name: string
  child 2, url: string
version: string
datePublished: timestamp[s]
@type: string
sameAs: list<item: string>
  child 0, item: string
inLanguage: string
description: string
url: string
@context: struct<@language: string, @vocab: string, cr: string, sc: string>
  child 0, @language: string
  child 1, @vocab: string
  child 2, cr: string
  child 3, sc: string
to
{'@context': {'@language': Value('string'), '@vocab': Value('string'), 'cr': Value('string'), 'sc': Value('string')}, '@type': Value('string'), 'name': Value('string'), 'description': Value('string'), 'url': Value('string'), 'sameAs': List(Value('string')), 'license': Value('string'), 'creator': {'@type': Value('string'), 'name': Value('string'), 'url': Value('string')}, 'publisher': {'@type': Value('string'), 'name': Value('string'), 'url': Value('string')}, 'datePublished': Value('timestamp[s]'), 'version': Value('string'), 'keywords': List(Value('string')), 'inLanguage': Value('string'), 'conformsTo': Value('string'), 'citeAs': Value('string')}
because column names don't match
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 99, in get_rows_or_raise
                  return get_rows(
                         ^^^^^^^^^
                File "/src/libs/libcommon/src/libcommon/utils.py", line 272, in decorator
                  return func(*args, **kwargs)
                         ^^^^^^^^^^^^^^^^^^^^^
                File "/src/services/worker/src/worker/utils.py", line 77, in get_rows
                  rows_plus_one = list(itertools.islice(ds, rows_max_number + 1))
                                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2690, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2227, in __iter__
                  for key, pa_table in self._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 2251, in _iter_arrow
                  for key, pa_table in self.ex_iterable._iter_arrow():
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 494, in _iter_arrow
                  for key, pa_table in iterator:
                                       ^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/iterable_dataset.py", line 384, in _iter_arrow
                  for key, pa_table in self.generate_tables_fn(**gen_kwags):
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 299, in _generate_tables
                  self._cast_table(pa_table, json_field_paths=json_field_paths),
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/packaged_modules/json/json.py", line 128, in _cast_table
                  pa_table = table_cast(pa_table, self.info.features.arrow_schema)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2321, in table_cast
                  return cast_table_to_schema(table, schema)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2249, in cast_table_to_schema
                  raise CastError(
              datasets.table.CastError: Couldn't cast
              metadata: struct<name: string, description: string, publisher: string, license: string, cite_as: string, rows: (... 35 chars omitted)
                child 0, name: string
                child 1, description: string
                child 2, publisher: string
                child 3, license: string
                child 4, cite_as: string
                child 5, rows: int64
                child 6, last_updated: timestamp[s]
              data: list<item: struct<id: string, country: string, iso: string, regulator: string, abbr: string, website (... 123 chars omitted)
                child 0, item: struct<id: string, country: string, iso: string, regulator: string, abbr: string, website: string, p (... 111 chars omitted)
                    child 0, id: string
                    child 1, country: string
                    child 2, iso: string
                    child 3, regulator: string
                    child 4, abbr: string
                    child 5, website: string
                    child 6, parent_agency: string
                    child 7, key_legislation: list<item: string>
                        child 0, item: string
                    child 8, scope: string
                    child 9, established: int64
                    child 10, wikidata: string
              name: string
              keywords: list<item: string>
                child 0, item: string
              publisher: struct<@type: string, name: string, url: string>
                child 0, @type: string
                child 1, name: string
                child 2, url: string
              citeAs: string
              conformsTo: string
              license: string
              creator: struct<@type: string, name: string, url: string>
                child 0, @type: string
                child 1, name: string
                child 2, url: string
              version: string
              datePublished: timestamp[s]
              @type: string
              sameAs: list<item: string>
                child 0, item: string
              inLanguage: string
              description: string
              url: string
              @context: struct<@language: string, @vocab: string, cr: string, sc: string>
                child 0, @language: string
                child 1, @vocab: string
                child 2, cr: string
                child 3, sc: string
              to
              {'@context': {'@language': Value('string'), '@vocab': Value('string'), 'cr': Value('string'), 'sc': Value('string')}, '@type': Value('string'), 'name': Value('string'), 'description': Value('string'), 'url': Value('string'), 'sameAs': List(Value('string')), 'license': Value('string'), 'creator': {'@type': Value('string'), 'name': Value('string'), 'url': Value('string')}, 'publisher': {'@type': Value('string'), 'name': Value('string'), 'url': Value('string')}, 'datePublished': Value('timestamp[s]'), 'version': Value('string'), 'keywords': List(Value('string')), 'inLanguage': Value('string'), 'conformsTo': Value('string'), 'citeAs': Value('string')}
              because column names don't match

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

HSE Regulators Directory

Reference dataset of 36 major occupational safety and health regulators across 27 jurisdictions including:

  • North America: OSHA (US), NIOSH (US), MSHA (US), CCOHS (CA)
  • Europe: HSE (UK), EU-OSHA, INRS (FR), BAuA (DE), INAIL (IT), INSST (ES), Arbeidstilsynet (NO), Arbetsmiljöverket (SE), FIOH (FI)
  • GCC: MoHRE + OSHAD + Dubai Municipality (UAE), MHRSD (SA), MoL (QA), MoL (OM), PAM (KW), LMRA (BH)
  • Asia-Pacific: Safe Work Australia, WorkSafe NZ, MHLW (JP), KOSHA (KR), MOM (SG), DGMS (IN)
  • Africa & LatAm: DoEL (ZA), MTE (BR), STPS (MX)
  • International: ILO, ISO, IOGP, IMO, ICAO

Each entry includes:

  • Country / jurisdiction (with ISO 3166-1 alpha-2 code)
  • Regulator full name, abbreviation, official website
  • Parent agency
  • Key legislation (Acts, Regulations, Codes, Conventions)
  • Scope (national / sector / international)
  • Year established
  • Wikidata Q-ID (where the regulator has its own Wikidata entity)

Usage

from datasets import load_dataset
ds = load_dataset("SmartQHSE/hse-regulators-directory")
for row in ds["train"]:
    print(row["abbr"], "—", row["country"], "—", row["regulator"])
# Filter Wikidata-linked regulators
curl -s https://huggingface.co/datasets/SmartQHSE/hse-regulators-directory/resolve/main/data.jsonl \
  | jq 'select(.wikidata != null) | {abbr, regulator, wikidata}'

Companion datasets

Wikidata cross-references

This dataset is part of the SmartQHSE open data programme. Related Q-items: HSE Regulations Changelog Q139623117, HSE Glossary Q139623112, ARIA HSE AI assistant Q139714237.

Citation

SmartQHSE Ltd (2026). HSE Regulators Directory [dataset]. https://huggingface.co/datasets/SmartQHSE/hse-regulators-directory

License: CC BY 4.0. Built by SmartQHSE.

Downloads last month
8

Collection including SmartQHSE/hse-regulators-directory