Difference between revisions of "Template:Concept"

From Meta-Omics Data of Collection Objects
Jump to: navigation, search
m (Import basic concepts, templates, terms, forms from http://terms.tdwg.org)
m ({{Wiki Base URL}} → {{FULLURL: …}})
 
Line 19: Line 19:
 
  -->{{#set: dc:language=en}}<!-- filter purposes on Special:BrowseData
 
  -->{{#set: dc:language=en}}<!-- filter purposes on Special:BrowseData
 
  -->{{#set: vann:usageNote={{Fix localhost bug|{{FULLURL:{{FULLPAGENAMEE}}|oldid={{REVISIONID}}}}}}}}<!--  TODO: {{REVISIONID}} seems not to work (30.11.2012 12:45, AP)
 
  -->{{#set: vann:usageNote={{Fix localhost bug|{{FULLURL:{{FULLPAGENAMEE}}|oldid={{REVISIONID}}}}}}}}<!--  TODO: {{REVISIONID}} seems not to work (30.11.2012 12:45, AP)
  -->{{#set: sioc:has_discussion={{Wiki Base URL}}{{TALKPAGENAMEE}}}}<!--
+
  -->{{#set: sioc:has_discussion={{FULLURL:{{TALKPAGENAMEE}}}}}}<!--
 
  -->{{#if: {{{rdfs:range|}}} | [[rdfs:range::{{{rdfs:range|}}}| ]]}}<!-- do we need this?
 
  -->{{#if: {{{rdfs:range|}}} | [[rdfs:range::{{{rdfs:range|}}}| ]]}}<!-- do we need this?
 
  -->{{#switch: {{{concept type|}}}  
 
  -->{{#switch: {{{concept type|}}}  
Line 94: Line 94:
 
   -->| {{{is defined by|}}}{{#set: rdfs:isDefinedBy={{{is defined by|}}} }}{{#set: terms-internal:isDefinedBy={{{is defined by|}}} }} <!--
 
   -->| {{{is defined by|}}}{{#set: rdfs:isDefinedBy={{{is defined by|}}} }}{{#set: terms-internal:isDefinedBy={{{is defined by|}}} }} <!--
 
   else  
 
   else  
   -->| [[{{{is defined by|}}}]]{{#set: rdfs:isDefinedBy={{Wiki Base URL}}{{{is defined by|}}} }}{{#set: terms-internal:isDefinedBy={{Wiki Base URL}}{{{is defined by|}}} }}}}<!-- end if def. by
+
   -->| [[{{{is defined by|}}}]]{{#set: rdfs:isDefinedBy={{FULLURL:{{{is defined by|}}}}}}}{{#set: terms-internal:isDefinedBy={{FULLURL:{{{is defined by|}}}}}}}<!--
 +
  -->}}<!-- end if def. by
 
   -->{{
 
   -->{{
 
       #if: {{{replaced by|}}}|<nowiki></nowiki>
 
       #if: {{{replaced by|}}}|<nowiki></nowiki>

Latest revision as of 09:44, 14 September 2016

[edit] [purge] Template-info.svg Template documentation

Create a concept

 


Usage / Technical documentation

This is the "Concept" template. For setting “concept scheme” or “concept collection” use template: Concept relation. Template “Concept” has the following parameter and their corresponding properties (bold=mandatory):

{{Concept
|label              = <!--property: skos:prefLabel/property: terms-internal:enLabel-->
|alternative labels = <!--property: skos:altLabel-->
|definition         =  <!--property: skos:definition-->
|notes              = <!--property: skos:note-->
|hidden notes       = <!--optional internal notes not to be displayed but kept for holdding informations-->
|example            = <!--property: skos:example-->
|is defined by      = <!--property: rdfs:isDefinedBy (an authoritative information about the resource, which are not necessarily RDF, often html, and in some cases PDF)-->
|issued             = <!--property: dcterms:issued-->
|modified           = <!--property: dcterms:modified
|replaces           = <!--property: dcterms:replaces-->
|replaced by        = <!--property: dcterms:isReplacedBy-->
|status             = <!--property: vs:term status-->
|concept type       = <!--
                      property  is itself a property
                       → sets concept type = http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
                      annotation property   properties that are used as annotations
                       → sets concept type = http://www.w3.org/2002/07/owl#AnnotationProperty
                      class     is itself a class
                       → sets concept type = http://www.w3.org/2002/07/owl#Class
                      value     is itself an instance of a class or a value of a property
                       → sets concept type = ??
                      data type
                      undecided
                      -->
}}

Template concept can be filled with data using form: Concept. The template sets automatically:

Editorial categories (management category for TODOs):

Additional properties

The following properties are set in addition:

Dependencies

Template concept evaluates SMW-subobjects set by template: Concept relation (that itself has no direct output). These data are appended in the factbox on the page right:

                                                 ╮
┌─ template concept ───┐   ┌─ fact box right ─┐  │
│                     → → → → details (techn.)│  │
│                      │   │  #ask            │  │
└──────────────────────┘   └ ↗ ───────────────┘  │
                          data                   ├─ form: Concept see Category: Concept
┌─ template ───────────┐ ↗                       │  that defines [[Has default form: Concept]]
│  concept scheme relation                       │
└──────────────────────┘                         │
┌─ template ───────────┐                         │
│  concept relation    |                         │
└──────────────────────┘                         │
┌─ template ───────────┐                         │
│  concept translation │                         │
└──────────────────────┘                         │
                                                 ╯

TODO

See also