subjects

josca42 的头像作者 josca42

探索丹麦统计主题层次结构,适用于所有事实表

📖 中文导读:探索丹麦统计主题层次结构,适用于所有事实表 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: subjects description: Explore denmark statistics subject hierarchy for all fact tables

subjects CLI

This CLI lets you explore denmark statistics subject hierarchy. The subject hierarchy creates a hierarchical grouping of all the fact tables.

python scripts/subjects.py  

Browsing subjects

python scripts/subjects.py           # children of the root subject (DST)
python scripts/subjects.py "Borgere" # children of subject "Borgere" ("Borgere" is a child of root subject)

Slash paths

Use slash-separated names to jump multiple levels in one command:

python scripts/subjects.py "Borgere/Befolkning/Befolkningstal"

Each segment matches the description, label, or raw node id of a child under the previous segment.

Depth control

--depth controls how many layers of descendants to show. -1 means “all descendants”.

python scripts/subjects.py "Borgere" --depth 2
python scripts/subjects.py "Borgere/Befolkning" --depth -1

Indented children are subject nodes; when a leaf is reached, its subjects print with descriptions.

--parents (or --no-parents to suppress) prints the resolved path from the root before the listing:

python scripts/subjects.py "Befolkningstal" --parents