以 CSVW 處理器驗證
固定版本指令會檢查中繼資料語法、欄名、資料型別、必填值、URI 模板、主鍵與每一列。
python3 -m pip install csvw==4.1.0 csvwvalidate https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-ml-dataset.csv-metadata.json
供資料目錄、ETL 流程、RDF 工具與可重現語言資料工作流程使用的機器可探索表格契約。
中繼資料採用標準的 <CSV URL>-metadata.json 命名並與 CSV 相鄰,CSVW 工具可直接探索。
固定版本指令會檢查中繼資料語法、欄名、資料型別、必填值、URI 模板、主鍵與每一列。
python3 -m pip install csvw==4.1.0 csvwvalidate https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-ml-dataset.csv-metadata.json
from csvw.metadata import Table
table = Table.from_file("https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-ml-dataset.csv-metadata.json")
rows = list(table)
assert len(rows) == 37| 欄位 | 資料型別 | 意義 | RDF 屬性 |
|---|---|---|---|
order | integer (minimum=1, maximum=37) | 1 至 37 的穩定教學順序。 | http://schema.org/position |
symbol_id | string (format=^u31(?:0[5-9A-F]|1[0-9A-F]|2[0-9])$) | 由大寫 Unicode 碼位產生的 ASCII 識別碼。 | http://purl.org/dc/terms/identifier |
concept_uri | anyURI | 對應 SKOS 概念的穩定 IRI。 | suppressed |
symbol | string (length=1) | 單一注音符號字元。 | http://www.w3.org/2004/02/skos/core#prefLabel |
unicode | string (format=^U\+31(?:0[5-9A-F]|1[0-9A-F]|2[0-9])$) | U+XXXX 格式的 Unicode 碼位。 | http://www.w3.org/2004/02/skos/core#notation |
pinyin | string | 對應漢語拼音。 | https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-vocabulary.html#pinyin |
ipa | string | 不含括號的概略 IPA 轉寫。 | https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-vocabulary.html#ipa |
category | string (format=^(initial|medial|final)$) | 聲母、介音或韻母。 | http://schema.org/category |
category_uri | anyURI | 較廣義 SKOS 分類概念的 IRI。 | http://www.w3.org/2004/02/skos/core#broader |
example_character | string (length=1) | 繁體中文例字。 | https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-vocabulary.html#exampleCharacter |
example_pinyin | string | 例字的聲調漢語拼音。 | https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-vocabulary.html#examplePinyin |
example_meaning_en | string | 例字的精簡英文釋義。 | https://alice51849.github.io/ios-app-guide/data/zhuyin-bopomofo-vocabulary.html#exampleMeaning |
| 順序 | 符號 | 分類 | 拼音 | IPA | 例字 |
|---|---|---|---|---|---|
| 1 | ㄅ | 聲母 | b | p | 爸 (bà) |
| 2 | ㄆ | 聲母 | p | pʰ | 怕 (pà) |
| 3 | ㄇ | 聲母 | m | m | 媽 (mā) |
| 4 | ㄈ | 聲母 | f | f | 飛 (fēi) |
| 5 | ㄉ | 聲母 | d | t | 大 (dà) |
| 6 | ㄊ | 聲母 | t | tʰ | 天 (tiān) |
| 7 | ㄋ | 聲母 | n | n | 你 (nǐ) |
| 8 | ㄌ | 聲母 | l | l | 來 (lái) |
| 9 | ㄍ | 聲母 | g | k | 狗 (gǒu) |
| 10 | ㄎ | 聲母 | k | kʰ | 看 (kàn) |
| 11 | ㄏ | 聲母 | h | x | 好 (hǎo) |
| 12 | ㄐ | 聲母 | j | tɕ | 家 (jiā) |
| 13 | ㄑ | 聲母 | q | tɕʰ | 去 (qù) |
| 14 | ㄒ | 聲母 | x | ɕ | 小 (xiǎo) |
| 15 | ㄓ | 聲母 | zh | ʈʂ | 中 (zhōng) |
| 16 | ㄔ | 聲母 | ch | ʈʂʰ | 吃 (chī) |
| 17 | ㄕ | 聲母 | sh | ʂ | 是 (shì) |
| 18 | ㄖ | 聲母 | r | ʐ | 人 (rén) |
| 19 | ㄗ | 聲母 | z | ts | 早 (zǎo) |
| 20 | ㄘ | 聲母 | c | tsʰ | 菜 (cài) |
| 21 | ㄙ | 聲母 | s | s | 三 (sān) |
| 22 | ㄧ | 介音 | i / yi | i | 一 (yī) |
| 23 | ㄨ | 介音 | u / wu | u | 五 (wǔ) |
| 24 | ㄩ | 介音 | ü / yu | y | 魚 (yú) |
| 25 | ㄚ | 韻母 | a | a | 大 (dà) |
| 26 | ㄛ | 韻母 | o | ɔ | 波 (bō) |
| 27 | ㄜ | 韻母 | e | ɤ | 喝 (hē) |
| 28 | ㄝ | 韻母 | ê | ɛ | 誒 (ề) |
| 29 | ㄞ | 韻母 | ai | ai | 愛 (ài) |
| 30 | ㄟ | 韻母 | ei | ei | 給 (gěi) |
| 31 | ㄠ | 韻母 | ao | au | 好 (hǎo) |
| 32 | ㄡ | 韻母 | ou | ou | 有 (yǒu) |
| 33 | ㄢ | 韻母 | an | an | 安 (ān) |
| 34 | ㄣ | 韻母 | en | ən | 恩 (ēn) |
| 35 | ㄤ | 韻母 | ang | aŋ | 忙 (máng) |
| 36 | ㄥ | 韻母 | eng | əŋ | 冷 (lěng) |
| 37 | ㄦ | 韻母 | er | ɚ | 二 (èr) |
中繼資料以 2015 年 12 月 17 日的固定版 W3C Recommendation 為準,並保存 hash-pinned 離線 context 與詞彙快照供確定性驗證。
表格依 CC BY 4.0 授權,標示 Lumi Apps 後可再利用;W3C 快照維持其各自的 W3C 授權條款。
CC BY 4.0Lumi 注音星球提供另一種在裝置上練習符號的方式;CSVW 表格仍為開放、獨立且不需 App 即可使用。
前往 App Store 查看 Lumi 注音星球