Changes for page Technical details

Last modified by lzehl on 2021/07/05 18:57

From version 35.1
edited by lzehl
on 2021/03/08 22:31
Change comment: There is no comment for this version
To version 36.1
edited by lzehl
on 2021/03/08 22:33
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -30,7 +30,7 @@
30 30  Please find in the following a full documentation of the openMINDS schema template syntax and how it's key-value pairs need to be defined and interpreted.
31 31  
32 32  (% style="text-align: justify;" %)
33 -===== Target & context templates =====
33 +===== Target & concept templates =====
34 34  
35 35  (% style="text-align: justify;" %)
36 36  Same as in JSON-Schema, all openMINDS schema templates define the expected name (written in **##lowerCamelCase##**) and value of the metadata, typically called property, under the key **##properties##** as nested dictionaries. Furthermore, the names of obligatory metadata can be listed under the key **##required##**. Here a generalized example:
... ... @@ -63,13 +63,13 @@
63 63  Note that **##<<schema-model>>##** has to be replaced with the label of the openMINDS metadata model to which the corresponding schema belongs to, and **##<<schema-name>>##** has to be replaced with the corresponding name of the schema (written in **##CamelCase##**).
64 64  
65 65  (% style="text-align: justify;" %)
66 -If an openMINDS schema template //does not// define a key **##"_type"##** (as in the first example above), it is interpreted as a **context template** which //has to be// extended to a target template.
66 +If an openMINDS schema template //does not// define a key **##"_type"##** (as in the first example above), it is interpreted as a **concept template** which //has to be// extended to a target template.
67 67  
68 68  (% style="text-align: justify;" %)
69 -Concept templates are and should be used when multiple target templates have the same subset of properties, because they facilitate the long-term maintenance of those shared properties: Instead of defining the same properties repeatedly within multiple target templates, the common subset can be defined within a single context template and passed on to all extending target templates.
69 +Concept templates are and should be used when multiple target templates have the same subset of properties, because they facilitate the long-term maintenance of those shared properties: Instead of defining the same properties repeatedly within multiple target templates, the common subset can be defined within a single concept template and passed on to all extending target templates.
70 70  
71 71  (% style="text-align: justify;" %)
72 -To define that a target template is the extension of a context template, the target template can state under **##"_extends"##** the relative path to the context template. For example, the openMINDS core target template **##Dataset##** extends the core concept template **##researchProduct##** as indicated here:
72 +To define that a target template is the extension of a concept template, the target template can state under **##"_extends"##** the relative path to the concept template. For example, the openMINDS core target template **##Dataset##** extends the core concept template **##researchProduct##** as indicated here:
73 73  
74 74  {{code language="json"}}
75 75  {
... ... @@ -78,7 +78,7 @@
78 78  }
79 79  {{/code}}
80 80  
81 -Note that this convention requires the context and corresponding target templates to be located in the same openMINDS metadata model repository. Note also that for properties, the following rules apply for target and concept template: 
81 +Note that this convention requires the concept and corresponding target templates to be located in the same openMINDS metadata model repository. Note also that for properties, the following rules apply for target and concept template: 
82 82  
83 83  1. A concept template has to define some properties which will be inherited by all extending target templates.
84 84  1. If a concept template additionally states that some of these properties are required, all extending target templates will require the same properties. 
Public

openMINDS