Difference between revisions of "Template:Mapping"
From TDWG Terms Wiki
m |
|||
(14 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
{{Mapping | relation = | {{Mapping | relation = | ||
ONE OF: | ONE OF: | ||
+ | part of | ||
+ | is a | ||
skos:exactMatch skos:closeMatch skos:broadMatch skos:narrowMatch | skos:exactMatch skos:closeMatch skos:broadMatch skos:narrowMatch | ||
skos:relatedMatch | skos:relatedMatch | ||
skos:broader | skos:broader | ||
skos:narrower | skos:narrower | ||
− | | | + | | full URI = |
− | | | + | | internal page = }} |
− | --><includeonly> | + | --><includeonly><!-- -->{{#if:{{#varexists: hasMappings}}||'''Relations of term “{{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }}”:'''}}<!-- |
− | {| | + | --><table><!-- |
− | | | + | -->{{#switch: {{lc:{{{relation|}}}}}<!-- |
− | |- | + | ////////////////////////// |
− | | '''URI''' | + | // SKOS mappings |
− | | {{#if: {{{ | + | ////////////////////////// |
− | |- | + | -->| has exact match |
− | | style="vertical-align:top" | + | | has close match |
− | | | + | | has related match |
− | |} | + | | has broader match |
− | </includeonly><noinclude> | + | | has narrower match = <!-- |
+ | --><tr><!-- | ||
+ | --><td colspan="2">{{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }} ''{{{relation|}}}'' to {{#if: {{{full URI|}}}<!-- | ||
+ | then-->| {{abbr|URI}} {{{full URI}}}<!-- | ||
+ | else-->| <!-- no full URI --> {{#if: {{{internal page|}}}<!-- | ||
+ | then-->| [[{{{internal page}}}]]<!-- | ||
+ | else-->| Relation ''{{{relation|}}}'' to what? Provide a value for either “internal page” or “full URI”.}}<!-- | ||
+ | -->}}<!-- | ||
+ | --></td><!-- | ||
+ | --></tr><!-- | ||
+ | |||
+ | ////////////////////////// | ||
+ | // case part of | ||
+ | ////////////////////////// | ||
+ | -->|part of=<!-- | ||
+ | --><tr><!-- | ||
+ | --><td style="text-align:right;vertical-align:top;">'''Part of: '''</td><!-- | ||
+ | --><td><!-- | ||
+ | |||
+ | -->{{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }} is ''part of'' {{{full URI|[[{{{internal page|}}}]]}}}<!-- | ||
+ | set semantic property | ||
+ | -->[[OBO REL:part of::{{{full URI|{{{internal page}}}}}}| ]]<!-- part of | ||
+ | |||
+ | -->{{Hidden| header= | toggle text = Show representation as UML diagram / Hide representation as UML diagram | content =<!-- | ||
+ | -->{{#if: {{{full URI|{{{internal page|}}} }}}<!-- | ||
+ | then-->|<!-- | ||
+ | |||
+ | arraymap redundant but left here | ||
+ | |||
+ | -->{{#arraymap:{{{full URI|[[{{{internal page|}}}]]}}}<!-- | ||
+ | -->|;<!-- list input separator | ||
+ | -->|§<!-- assign temporary variable | ||
+ | output: | ||
+ | -->|<nowiki></nowiki> | ||
+ | § | ||
+ | ◊ | ||
+ | │ (''§'' has {{numeral composition |a|an|{{#if: {{#varexists: label}} | ''{{#var: label}}'' | ''{{PAGENAME}}'' }} }} or | ||
+ | │ {{#if: {{#varexists: label}} | ''{{#var: label}}'' | ''{{PAGENAME}}'' }} is part of ''§'') | ||
+ | {{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }} | ||
+ | <!-- | ||
+ | -->|<br/><!-- list output separator | ||
+ | -->}}<!-- part of | ||
+ | --><br/><!-- | ||
+ | -->}}<!-- | ||
+ | -->}}<!-- Hidden | ||
+ | --></td><!-- | ||
+ | --></tr><!-- | ||
+ | |||
+ | ////////////////////////// | ||
+ | // case is a | ||
+ | ////////////////////////// | ||
+ | -->|is a =<!-- | ||
+ | --><tr><!-- | ||
+ | --><td style="text-align:right;vertical-align:top;">'''Is a: '''</td><!-- | ||
+ | --><td>{{{full URI|[[{{{internal page|}}}]]}}} (= present term is a subclass of term given here)<!-- | ||
+ | -->{{Hidden|header= | toggle text = Show representation as UML diagram / Hide representation as UML diagram | content =<!-- | ||
+ | -->{{#if: {{{full URI|{{{internal page|}}} }}}<!-- | ||
+ | then-->|<!-- | ||
+ | --><nowiki></nowiki> | ||
+ | {{{full URI|{{{internal page|}}}}}} | ||
+ | △ | ||
+ | │ ({{#if: {{#varexists: label}} | ''{{#var: label}}'' | ''{{PAGENAME}}'' }} is {{numeral composition |a|an|''{{{full URI|{{{internal page|}}}}}}'' }}) | ||
+ | │ | ||
+ | {{#if: {{#varexists: label}} | {{#var: label}} | {{PAGENAME}} }} | ||
+ | <!-- | ||
+ | --><br/><!-- | ||
+ | |||
+ | -->}}<!-- | ||
+ | -->}}<!-- Hidden | ||
+ | --></td><!-- | ||
+ | --></tr> | ||
+ | }}<!-- switch relation | ||
+ | |||
+ | -->{{#vardefine: hasMappings|1}}<!-- | ||
+ | |||
+ | --></table><!-- | ||
+ | |||
+ | --></includeonly><noinclude> | ||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 15:44, 12 October 2011
[create] Template documentation