- hugoのタクソノミー - (新) 檜山正幸のキマイラ飼育記 メモ編
- タギングと問い合わせ式 - (新) 檜山正幸のキマイラ飼育記 メモ編
- https://gohugo.io/content-management/taxonomies/
Hugoにおける定義:
- Taxonomy -- a categorization that can be used to classify content
- Term -- a key within the taxonomy
- Value -- a piece of content assigned to a term
映画ブログの分類だと、タクソノミーは:
- Actors
- Directors
- Studios
- Genre
- Year
- Awards
つうことは、タクソノミー〈Taxonomy〉とは分類属性の属性名〈プロパティ名 | キー〉。RDF的にはプロパティ名/述語名。
Actor <- Taxonomy Bruce Willis <- Term The Sixth Sense <- Value Unbreakable <- Value Moonrise Kingdom <- Value Samuel L. Jackson <- Term Unbreakable <- Value The Avengers <- Value xXx <- Value
※ xXx は映画「トリプルエックス」
Value はアイテム/エントリーのID/名前(例えばブログ記事タイトル)となる。RDF的には主語リソース。
転置すると:
Unbreakable <- Value Actors <- Taxonomy Bruce Willis <- Term Samuel L. Jackson <- Term Director <- Taxonomy M. Night Shyamalan <- Term ... Moonrise Kingdom <- Value Actors <- Taxonomy Bruce Willis <- Term Bill Murray <- Term Director <- Taxonomy Wes Anderson <- Term ...
これだと、1行を左から右で
- 映画 Unbreakable の出演者〈Actor〉は Bruce Willis
となる。主語を変えると:
- Bruce Willis は、映画 Unbreakable の出演者〈Actor〉
Neo4J風に書くと:
- (Unbreakable) -[Actor]-> (Bruce Willis)
- (値) -[タクソノミー]-> (ターム)
値が主語だから、値〈対象物〉に埋め込みタギングすると、"タクソノミー=ターム" という構造化タグ〈属性 | プロパティ〉を付与することになる。
Tenjinの用語法だと:
- タクソノミー=(ロール | プロパティ名)
- ターム=(タグ | プロパティ値)
- 値=(アイテム | アイテムID)