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
-
... ... @@ -34,21 +34,9 @@ 34 34 **(4)** The **##schemas##** folder should contain the schemas of that metadata model implemented in the **openMINDS schema template syntax** (cf. below). The directory of the schemas can be further structured or flat. 35 35 36 36 (% style="text-align: justify;" %) 37 -**(5)** The **##tests##** folder should contain test-instances (JSON-LDs) for the schemas in a flat directory. The file names for these test-instances should follow the convention of 37 +**(5)** The **##tests##** folder should contain test-instances (JSON-LDs) for the schemas in a flat directory. The file names for these test-instances should follow the convention of **##<<XXX>>-<<YYY>>.jsonld##** for files that should pass the tests, and **##<<XXX>>-<<YYY>>-nok.jsonld##** for files that should fail the test. In both cases, **##<<XXX>>##** should be replaced with the label of the schema that is tested, and **##<<YYY>>##** with a user defined label for what aspect is tested (e.g., **##person-withoutCI.jsonld##**). 38 38 39 -(% style="text-align: center;" %) 40 -**##<<XXX>>-<<YYY>>.jsonld##** 41 - 42 42 (% style="text-align: justify;" %) 43 -for files that should pass the tests, and 44 - 45 -(% style="text-align: center;" %) 46 -**##<<XXX>>-<<YYY>>-nok.jsonld##** 47 - 48 -(% style="text-align: justify;" %) 49 -for files that should fail the test. In both cases, **##<<XXX>>##** should be replaced with the label of the schema that is tested, and **##<<YYY>>##** with a user defined label for what aspect is tested (e.g., **##person-withoutCI.jsonld##**). 50 - 51 -(% style="text-align: justify;" %) 52 52 **(6)** The **##examples##** folder should contain examples for valid instance collections for that metadata model. Each example should receive its own directory (folder) with a **##README.md##** describing the example, and an **##metadataCollection##** subfolder containing the openMINDS instances (JSON-LDs). This subfolder can be further structured or flat. 53 53 54 54 (% style="text-align: justify;" %) ... ... @@ -60,40 +60,8 @@ 60 60 Through the integration pipeline of the openMINDS generator, the openMINDS vocabulary is automatically gathered and stored in the main openMINDS GitHub in order to centrally maintain general definitions and references for **types** and **properties** used in schemas across all openMINDS repositories. How this works is explained in the following. 61 61 62 62 (% style="text-align: justify;" %) 63 -Schema types and properties are stored in dedicated JSON files (**##types.json##** and **##properties.json##**) under the folder **##vocab##** located in the main openMINDS GitHub directory. Each schema type and property occurring in the openMINDS metadata models is automatically represented in those files as nested dictionaries. Here a cutout of the **##types.json##** and **##properties.json##**:51 +Schema types and properties are stored in dedicated JSON files (**##types.json##** and **##properties.json##**) under the folder **##vocab##** located in the main openMINDS GitHub directory. Each schema type and property occurring in the openMINDS metadata models is automatically represented in those files as nested dictionaries. 64 64 65 -{{code language="json"}} 66 -{ 67 - ..., 68 - "https://openminds.ebrains.eu/core/Person": { 69 - "description": "Structured information on a person.", 70 - "name": "Person", 71 - "translatableTo": [ 72 - "https://schema.org/Person" 73 - ] 74 - }, 75 - ... 76 -} 77 -{{/code}} 78 - 79 -{{code language="json"}} 80 -{ 81 - ..., 82 - "givenName": { 83 - "description": "Name given to a person, including all potential middle names, but excluding the family name.", 84 - "name": "Given name", 85 - "nameForReverseLink": "Is given name of", 86 - "sameAs": [ 87 - "https://schema.org/givenName" 88 - ], 89 - "schemas": [ 90 - "core/v3/actors/person.schema.tpl.json" 91 - ] 92 - }, 93 - ... 94 -} 95 -{{/code}} 96 - 97 97 (% style="text-align: justify;" %) 98 98 The keywords of those nested dictionaries are pre-defined to consistently capture for all schema types and properties their namespace, their occurrence, their general description, and possible references to related or matching schema types and properties of other metadata initiatives (e.g., schema.org). This setup also allows us to define some values/entries to be automatically filled in by the openMINDS integration pipeline with each commit to one of the openMINDS repositories (e.g., the namespace and occurrence) and others to be manually editable later on (e.g., the general description and references). 99 99