Changes for page Technical details
Last modified by lzehl on 2021/07/05 18:57
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -33,7 +33,7 @@ 33 33 ===== Target & context templates ===== 34 34 35 35 (% style="text-align: justify;" %) 36 -Same as in JSON-Schema, all openMINDS schema templates define the name (written in lowerCamelCase) and value of the metadata (typically called property)they expectunder the key **##properties##** as nested dictionaries. Furthermore, the names of obligatory metadata/propertiescan be listed under the key **##required##**. Here a generalized example: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: 37 37 38 38 {{code language="json"}} 39 39 { ... ... @@ -66,7 +66,7 @@ 66 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. 67 67 68 68 (% style="text-align: justify;" %) 69 -Con text templates are and should be used when multipleopenMINDS schemas (target templates)have the same subset of properties.Such aonsubset of propertiescanhenbedefined withinasinglecontextchemainsteadofeachtarget templatewhichfacilitatesthelong-termmaintenance oftheseproperties.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. 70 70 71 71 (% style="text-align: justify;" %) 72 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: ... ... @@ -78,10 +78,8 @@ 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. 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: 82 82 83 -Note also that for properties, the following rules apply for target and concept template: 84 - 85 85 1. A concept template has to define some properties which will be inherited by all extending target templates. 86 86 1. If a concept template additionally states that some of these properties are required, all extending target templates will require the same properties. 87 87 1. A target template can require properties of the concept template, that are not explicitly required within the concept template. In such a case, the other target templates extending the same concept template will not require those properties.