hired.taxonomy.base#
Schemas and on-disk layout for the skills taxonomy (ESCO + O*NET).
A taxonomy is two things:
nodes — skills (and, for O*NET, technologies, knowledge areas, abilities), each a
SkillNodewith a stable id (esco:<uuid>,onet:tech:<slug>,onet:<element-id>), a preferred label, alternative labels, and a KSAOkind;occupations — each an
Occupationlisting the nodes it requires (essential) or may use (optional). Skill adjacency is learned from which skills occupations require together (seehired.taxonomy.graph).
The built taxonomy is shared reference data, not candidate data, so it lives at
<data root>/taxonomy/ (not under users/). It is built on demand by
hired.taxonomy.build_skill_index() — nothing is vendored into the package.
Attribution (both sources are CC BY 4.0) is in ATTRIBUTION and is written
next to the data as NOTICE.md.
Functions
|
The CC BY 4.0 notice for the sources a build used (written as |
|
JSON-able dicts for a list of models, without empty/default noise. |
|
Case-, accent- and punctuation-insensitive form of a label, for matching. |
|
Directory of the built taxonomy: |
Classes
|
An occupation and the skill nodes it requires or may use. |
|
One skill-like concept from a source taxonomy. |
- class hired.taxonomy.base.Occupation(*, id, label, source, essential=<factory>, optional=<factory>)[source]#
Bases:
BaseModelAn occupation and the skill nodes it requires or may use.
- class hired.taxonomy.base.SkillNode(*, id, label, alt_labels=<factory>, source, kind='skill', reuse_level=None, uri=None)[source]#
Bases:
BaseModelOne skill-like concept from a source taxonomy.
- hired.taxonomy.base.attribution(sources=('esco', 'onet'), *, onet_version='30.0')[source]#
The CC BY 4.0 notice for the sources a build used (written as
NOTICE.md).- Return type:
- hired.taxonomy.base.dump_models(models)[source]#
JSON-able dicts for a list of models, without empty/default noise.