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
-
... ... @@ -49,29 +49,23 @@ 49 49 * **##instances/##** (optional) - contains the controlled metadata instances (JSON-LDs) for selected schemas of the respective metadata model. The sub-directory of the "instances" folder should follow the same structure as the "schemas" folder with an additional sub-directory for each schema. The file names of the controlled instances should be written in lowerCamelCase and state the simple, human-readable identifier of the instance (e.g., **##homoSapiens.jsonld##** for the controlledTerms schema **##Species##**). 50 50 * **##version.txt##** (required) - states the identifier of the version branch (e.g., **##v1##**) of the respective metadata model. 51 51 * **##README.md##** (required) - contains a short content description of the respective metadata model. 52 -* **##LICENSE.txt##** (required) - defines theMITlicense for the respective metadata model.52 +* **##LICENSE.txt##** (required) - states the license for the respective metadata model (has to be MIT). 53 53 54 -For more information on the content of the existing openMINDS metadata models, please go to [[Metadata models & schemas>>doc:Collabs.openminds.Documentation.Metadata models and schemas.WebHome||target="_blank"]]. 55 - 56 56 === The openMINDS vocabulary === 57 57 58 58 (% style="text-align: justify;" %) 59 -Located under the folder **##vocab##** in the main branchof the central openMINDS GitHub directory, the openMINDS vocabulary is semi-automatically gathered and stored in dedicated JSON files ([[**##types.json##**>>https://raw.githubusercontent.com/HumanBrainProject/openMINDS/v2/vocab/types.json||rel="noopener noreferrer" target="_blank"]] and [[**##properties.json##**>>https://raw.githubusercontent.com/HumanBrainProject/openMINDS/v2/vocab/properties.json||rel="noopener noreferrer" target="_blank"]]). The openMINDS integration pipeline makes sure that both files are updated with each commit to any of the GitHub repositories for the openMINDS metadata models. With that, the openMINDS vocab reflects always an up-to-date status of the general attributes of existing **schematypes** and **properties** across all openMINDS metadata models, while providing the opportunity to centrally review and maintain their consistency. In addition, this design allows us to centrally define and maintain multiple references to related schemas and matching schema properties of other metadata initiatives. How this works in detail is explained in the following.57 +Located under the folder **##vocab##** in the main openMINDS GitHub directory, the openMINDS vocabulary is semi-automatically gathered and stored in dedicated JSON files ([[**##types.json##**>>https://raw.githubusercontent.com/HumanBrainProject/openMINDS/v2/vocab/types.json||rel="noopener noreferrer" target="_blank"]] and [[**##properties.json##**>>https://raw.githubusercontent.com/HumanBrainProject/openMINDS/v2/vocab/properties.json||rel="noopener noreferrer" target="_blank"]]). The openMINDS integration pipeline makes sure that both files are updated with each commit to any of the GitHub repositories for the openMINDS metadata models. With that, the openMINDS vocab reflects always an up-to-date status of the general attributes of existing **schemas** and **properties** across all openMINDS metadata models, while providing the opportunity to centrally review and maintain their consistency. In addition, this design allows us to centrally define and maintain multiple references to related schemas and matching schema properties of other metadata initiatives. How this works in detail is explained in the following. 60 60 61 61 (% style="text-align: justify;" %) 62 -The **##types.json##** file is an associative array listing all existing openMINDS schema type s. For each openMINDS schematype, a small list of general attributes are provided in a nested associative array. Currently, the following attributes are captured:60 +The **##types.json##** file is an associative array listing all existing openMINDS schemas (via their type). For each openMINDS schema, a small list of general attributes are provided in a nested associative array. Currently, the following attributes are captured: 63 63 64 64 {{code language="json"}} 65 65 { 66 - "https://openminds.ebrains.eu/«METADATA_MODEL_LABEL»/«SCHEMA_NAME»": { 67 - "description": "«GENERAL_DESCRIPTION»", 68 - "label": "«HUMAN-READABLE_LABEL»", 69 - "name": "«SCHEMA_NAME»", 70 - "schemas": [ 71 - "«RELATIVE_PATH_TO_SCHEMA_FILE_OF_THAT_TYPE»" 72 - ], 64 + "OPENMINDS_SCHEMA_TYPE": { 65 + "description": "GENERAL_DESCRIPTION", 66 + "name": "DISPLAY_LABEL", 73 73 "translatableTo": [ 74 - " «REFERENCE_TO_RELATED_SCHEMA_OF_OTHER_INITIATIVE»"68 + "REFERENCE_TO_RELATED_SCHEMA_OF_OTHER_INITIATIVE" 75 75 ] 76 76 } 77 77 } ... ... @@ -78,23 +78,22 @@ 78 78 {{/code}} 79 79 80 80 (% style="text-align: justify;" %) 81 -With each new schema committed to one of the openMINDS metadata models, a new entry is appended to the **##types.json##** file, with the valuesfor **##"name"##**,**##"label"##**,and **##"schemas"##** automatically derived.The remaining attributesarepredefined with a null valueand frequently,manuallyedited by a correspondingexpertof theopenMINDSdevelopmentteam.Ifnecessarythe auto-derived **##"label"##**valuecan be editedas well. All manual editions will be preserved and not overwritten when the file is updated again with a new commit. In case a schema is deleted from the openMINDS metadata models, the corresponding entry in the **##types.json##** file is marked as being deprecated (additional attribute-value pair; **##"deprecated": true##**). It only can be permanently removed from the **##types.json##** file, if the entry is manually deleted.75 +With each new schema committed to one of the openMINDS metadata models, a new entry is appended to the **##types.json##** file, with the display label automatically derived from the respective schema type and the remaining attributes predefined with a null value. Once an entry for a schema is made in the **##types.json##** file, the values of all attributes (**##"name"##**, **##"description"##**, and **##"translatableTo"##**) can be manually edited. All manual editions will be preserved and not overwritten when the file is updated again with a new commit. In case a schema is deleted from the openMINDS metadata models, the corresponding entry in the **##types.json##** file is marked as being deprecated (additional attribute-value pair; **##"deprecated": true##**). It only can be permanently removed from the **##types.json##** file, if the entry is manually deleted. 82 82 83 83 (% style="text-align: justify;" %) 84 -Similar to the **##types.json##** file, the **##properties.json##** file is an associative array listing all properties across all existing openMINDS schemas. For each openMINDS property, a small list of general attributes are provided in a nested associative array. Currently, the following attributes are captured: 78 +Similar to the **##types.json##** file, the **##properties.json##** file is an associative array listing all properties across all existing openMINDS schemas (via the property name). For each openMINDS property, a small list of general attributes are provided in a nested associative array. Currently, the following attributes are captured: 85 85 86 86 {{code language="json"}} 87 87 { 88 - "https://openminds.ebrains.eu/vocab/«PROPERTY_NAME»": { 89 - "description": "«GENERAL_DESCRIPTION", 90 - "label": "«HUMAN-READABLE_LABEL", 91 - "labelForReverseLink": "«HUMAN-READABLE_LABEL_OF_REVERSED_LINK", 92 - "name": "«PROPERTY_NAME»", 82 + "PROPERTY_NAME": { 83 + "description": "GENERAL_DESCRIPTION", 84 + "name": "DISPLAY_LABEL", 85 + "nameForReverseLink": "DISPLAY_LABEL_OF_REVERSED_LINK", 93 93 "sameAs": [ 94 - " «REFERENCE_TO_MATCHING_SCHEMA-PROPERTY_OF_OTHER_INITIATIVE"87 + "REFERENCE_TO_MATCHING_SCHEMA-PROPERTY_OF_OTHER_INITIATIVE" 95 95 ], 96 96 "schemas": [ 97 - " «RELATIVE_PATH_TO_SCHEMA_FILE_CONTAINING_THIS_PROPERTY»"90 + "RELATIVE_PATH_TO_OPENMINDS-SCHEMA_USING_THIS_PROPERTY" 98 98 ] 99 99 } 100 100 } ... ... @@ -101,7 +101,7 @@ 101 101 {{/code}} 102 102 103 103 (% style="text-align: justify;" %) 104 -With each new property committed to a schema of one of the openMINDS metadata models, a new entry is appended to the **##properties.json##** file, with the **##"name"##**,**##"label"##**and**##"labelForReversedLink"##**automatically derived. The remaining attributes are predefined with a null valueand frequently,manuallyedited bya corresponding expertoftheopenMINDSdevelopmentteam.Ifnecessarythe auto-derivedvaluesfor**##"label"##**and **##"labelForReversedLink"##** can be edited as well. All manual editions will be preserved and not overwritten when the file is updated again with a new commit. In case a property is not used anymore in any of the schemas from the openMINDS metadata models, the corresponding entry in the **##properties.json##** file is marked as being deprecated (additional attribute-value pair; **##"deprecated": true##**). It only can be permanently removed from the **##properties.json##** file, if the entry is manually deleted.97 +With each new property committed to a schema of one of the openMINDS metadata models, a new entry is appended to the **##properties.json##** file, with the display label and list of schemas in which this property occurs automatically derived. The remaining attributes are initially provided with a null value. Once an entry for a property is made in the **##properties.json##** file, the values of all attributes (**##"name"##**, **##"description"##**, **##"nameForReversedLink"##**, and **##"sameAs"##**) can be manually edited, except for **##"schemas"##** which will be always automatically updated. All those manual editions will be preserved and not overwritten when the file is updated again with a new commit. In case a property is not used anymore in any of the schemas from the openMINDS metadata models, the corresponding entry in the **##properties.json##** file is marked as being deprecated (additional attribute-value pair; **##"deprecated": true##**). It only can be permanently removed from the **##properties.json##** file, if the entry is manually deleted. 105 105 106 106 === The openMINDS syntax === 107 107 ... ... @@ -124,7 +124,6 @@ 124 124 "PROPERTY_NAME": { 125 125 "type": "DATA_TYPE", 126 126 "_instruction": "METADATA_ENTRY_INSTRUCTION" 127 - } 128 128 }, 129 129 "required": [ 130 130 "PROPERTY_NAME" ... ... @@ -163,42 +163,8 @@ 163 163 Depending on the expected data **##"type"##** additional constraints can be made for the metadata entry of a respective property. Currently, the openMINDS schema template syntax supports the following data types: **##"string"##**, ##**"integer"**##, **##"float"##**, **##"boolean"##**, **##"array"##** and **##"object"##**. 164 164 165 165 (% style="text-align: justify;" %) 166 -If the expected data **##"type"##** is a **##"string"##** the expected number of characters, the format or a regular expression pattern of the string can be further defined. Here an abstract example for all possible string constraints:158 +If the expected data **##"type"##** is a **##"string"##** the expected number of characters, the format or a regular expression pattern of the string can be further defined. 167 167 168 -{{code language="json"}} 169 -{ 170 - "_type": "https://openminds.ebrains.eu/LABEL_OF_METADATA_MODEL/SCHEMA_NAME", 171 - "properties": { 172 - "stringProperty_noConstraints": { 173 - "type": "string", 174 - "_instruction": "Enter a free text." 175 - }, 176 - "stringProperty_lengthConstraints": { 177 - "maxLength": 6, 178 - "minLength": 2, 179 - "type": "string", 180 - "_instruction": "Enter a free text (allowed numbers of characters: 2 - 6)." 181 - }, 182 - "stringProperty_formatConstraints": { 183 - "type": "string", 184 - "_formats": [ 185 - "email", 186 - "date", 187 - "time", 188 - "date-time", 189 - "iri" 190 - ] 191 - "_instruction": "Enter a string matching one of the given formats." 192 - }, 193 - "stringProperty_patternConstraints": { 194 - "pattern": "«regular_expression»" 195 - "type": "string", 196 - "_instruction": "Enter a string matching the given regex pattern (ECMA 262 dialect)." 197 - } 198 - } 199 -} 200 -{{/code}} 201 - 202 202 === The openMINDS integration pipeline === 203 203 204 204 (//**coming soon**//) If you'd like to learn more about the openMINDS integration pipeline, especially if you'd like to contribute to it, please get in touch with us (the openMINDS development team) via the issues on the openMINDS or openMINDS_generator GitHub or the support email: openminds@ebrains.eu