Attention: The EBRAINS drive will be unavailable for most of the weekend starting the 25th October. Although the Lab is availble while the Drive is down, files that are stored in the Drive will not be loaded and you will be unable to save documents directly on the Lab.


Changes for page Technical details

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

From version 85.2
edited by lzehl
on 2021/07/05 13:50
Change comment: There is no comment for this version
To version 86.1
edited by lzehl
on 2021/07/05 14:01
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -163,7 +163,7 @@
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 a conceptual example for all possible constraints:
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:
167 167  
168 168  {{code language="json"}}
169 169  {
... ... @@ -174,10 +174,26 @@
174 174   "_instruction": "Enter a free text."
175 175   },
176 176   "stringProperty_lengthConstraints": {
177 - "maxLength": 6
177 + "maxLength": 6,
178 178   "minLength": 2,
179 179   "type": "string",
180 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)."
181 181   }
182 182   }
183 183  }
Public

openMINDS