Template:SKOSlink

テンプレートの解説[表示] [編集] [履歴] [キャッシュを破棄]

SKOS英語版 (Simple Knowledge Organization System) モデルに準拠した、概念へのリンクを生成するテンプレートです。当該のURI (id)、表記 (notation) または優先ラベル (label) を介してリンクを生成することができます。

使い方[編集]

リンクの要素は次の通りです。

prefix type notation | label | id [label] postfix

base を構成要素とするURLに紐付く notation | label | id 引数を用いて、指定した base に続いて id | notation | label が追加され、さらにオプションで suffix が付加されます。リンクの次に来る label は、引数 notationlabel の両方が与えられている場合にのみ表示されます。これらの3つの引数が1つも与えられていない場合、当テンプレートは何も出力しません。

引数[編集]

引数 説明
id 概念の識別子
notation 概念の表記
label 概念のラベルまたはキャプション
type リンクのタイプ (<: narrower match, >: broader match, ~: close match, 既定: exact match)
base URLの基部
suffix URLの付加部
prefix リンクの前に追加する文字列
postfix リンクの後に追加する文字列

以下の表では、関連するすべての引数の組み合わせを示します。引数 base が与えられない場合、引数 id はリンク可能なURLでなければなりません。引数 base が与えられている場合、追加される id|notation|label は、URLエンコードされます。

引数 出力結果
type label notation id
test ABC 1/2 ABC test
ABC 1/2 ABC
test ABC ABC test
ABC ABC
test 1/2 test
1/2 1/2
test test
 
> test test
>
baseを指定しない場合
test ABC 1/2 ABC test
ABC 1/2 ABC
test ABC ABC test
ABC ABC
test 1/2 test
1/2
test test
 

関連項目[編集]