From 6ce58dc6a9794f8403cc1d3f2d1af538900d8c4d Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Mon, 23 May 2022 17:32:06 -0500 Subject: [PATCH 01/16] Added the specification for using HED libraries in BIDS --- src/99-appendices/03-hed.md | 42 +++++++++++++++++++++++++++++--- src/schema/objects/metadata.yaml | 10 +++++++- 2 files changed, 48 insertions(+), 4 deletions(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index bb217322a5..de06d00648 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -167,7 +167,7 @@ This allows for a proper validation of the HED annotations (for example using the `bids-validator`). Example: The following `dataset_description.json` file specifies that the -[`HED8.0.0.xml`](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.0.0.xml) +[`HED8.1.0.xml`](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) file from the `hedxml` directory of the [`hed-specification`](https://github.com/hed-standard/hed-specification) repository on GitHub should be used to validate the study event annotations. @@ -175,8 +175,8 @@ repository on GitHub should be used to validate the study event annotations. ```JSON { "Name": "A great experiment", - "BIDSVersion": "1.6.0", - "HEDVersion": "8.0.0" + "BIDSVersion": "1.7.0", + "HEDVersion": "8.1.0" } ``` @@ -185,3 +185,39 @@ any present HED information will be validated using the latest version of the HE which is bound to result in problems. Hence, it is strongly RECOMMENDED that the `HEDVersion` field be included when using HED in a BIDS dataset. + +### Using HED library schemas + +HED also allows you to use one or more specialized vocabularies along with +the base vocabulary. These specialized vocabularies are developed by +communities of users and are available in the GitHub +[hed-schema-library](https://github.com/hed-standard/hed-schema-library) repository. + +Example: The following `dataset_description.json` file specifies that the +[`HED8.1.0.xml`](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) +base schema should be used along with the +SCORE library for clinical neurological annotation and a test library +located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/score/hedxml/HED_score_0.0.1.xml) and [HED_testlib_1.0.2.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/testlib/hedxml/HED_testlib_1.0.2.xml), respectively. + +```JSON +{ + "Name": "A great experiment", + "BIDSVersion": "1.7.0", + "HEDVersion": { + "base": "8.1.0", + "libraries": { + "sc": "score_0.0.1", + "ts": "testlib_1.0.2" + } + } +} +``` +The `sc:` and `ts:` are user-chosen prefixes used to distinguish the sources +of the terms in the HED annotation. In the following HED annotation: + +```Text +Data-feature, sc:Photmyogenic-response, sc:Wicket-spikes +``` + +The tag `Data-feature` is from HED8.1.0, +while `Photmyogenic-response` and `Wicket-spikes` are from HED_score_0.0.1. \ No newline at end of file diff --git a/src/schema/objects/metadata.yaml b/src/schema/objects/metadata.yaml index 9a7929372b..f2559fdde2 100644 --- a/src/schema/objects/metadata.yaml +++ b/src/schema/objects/metadata.yaml @@ -1022,7 +1022,15 @@ HEDVersion: description: | If HED tags are used: The version of the HED schema used to validate HED tags for study. - type: string + May include a single schema or a base schema and one or more library schema. + anyOf: + - type: string + - type: object + properties: + base: + type: string + libraries: + type: object Haematocrit: name: Haematocrit description: | From 976559a426622f24e015c72d9d0285f6d15a1f9e Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Mon, 23 May 2022 17:45:19 -0500 Subject: [PATCH 02/16] Added newline at end of hed appendices --- src/99-appendices/03-hed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index de06d00648..4c149bf92b 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -220,4 +220,4 @@ Data-feature, sc:Photmyogenic-response, sc:Wicket-spikes ``` The tag `Data-feature` is from HED8.1.0, -while `Photmyogenic-response` and `Wicket-spikes` are from HED_score_0.0.1. \ No newline at end of file +while `Photmyogenic-response` and `Wicket-spikes` are from HED_score_0.0.1. From 6555ad5e175c86e784ca7793703d204d8aa98b51 Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Mon, 23 May 2022 17:49:35 -0500 Subject: [PATCH 03/16] Corrected the metadata.yml spacing --- src/schema/objects/metadata.yaml | 14 +++++++------- src/schema/rules/tabular_metadata.yaml | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/schema/objects/metadata.yaml b/src/schema/objects/metadata.yaml index f2559fdde2..3638f1097c 100644 --- a/src/schema/objects/metadata.yaml +++ b/src/schema/objects/metadata.yaml @@ -1024,13 +1024,13 @@ HEDVersion: The version of the HED schema used to validate HED tags for study. May include a single schema or a base schema and one or more library schema. anyOf: - - type: string - - type: object - properties: - base: - type: string - libraries: - type: object + - type: string + - type: object + properties: + base: + type: string + libraries: + type: object Haematocrit: name: Haematocrit description: | diff --git a/src/schema/rules/tabular_metadata.yaml b/src/schema/rules/tabular_metadata.yaml index a1f83cd172..6b1ec9baae 100644 --- a/src/schema/rules/tabular_metadata.yaml +++ b/src/schema/rules/tabular_metadata.yaml @@ -7,8 +7,8 @@ scans: - .json entities: subject: required - session: optional # session is required if session is present in the dataset. -sessions: # This file may only exist if session is present in the dataset. + session: optional # session is required if session is present in the dataset. +sessions: # This file may only exist if session is present in the dataset. suffixes: - sessions extensions: From dc723e4514cc9d8f21c81499641d18de435c9e2b Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Tue, 24 May 2022 08:16:12 -0500 Subject: [PATCH 04/16] Added requirement that user-chosen prefixes be alphanumeric --- src/99-appendices/03-hed.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index 4c149bf92b..f0850fcdc8 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -213,7 +213,9 @@ located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-libr } ``` The `sc:` and `ts:` are user-chosen prefixes used to distinguish the sources -of the terms in the HED annotation. In the following HED annotation: +of the terms in the HED annotation. +These prefixes must be alphanumeric. +In the following HED annotation: ```Text Data-feature, sc:Photmyogenic-response, sc:Wicket-spikes From 8039ec9d70d99d309b294d40e3afd6953c13ceb0 Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Thu, 9 Jun 2022 16:27:57 -0500 Subject: [PATCH 05/16] Simplified HEDVersion to be array rather than object --- src/99-appendices/03-hed.md | 30 ++++++++++++++++++++---------- src/schema/objects/metadata.yaml | 9 +++------ 2 files changed, 23 insertions(+), 16 deletions(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index f0850fcdc8..cf96a997ba 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -188,10 +188,11 @@ in a BIDS dataset. ### Using HED library schemas -HED also allows you to use one or more specialized vocabularies along with +HED also allows you to use one or more specialized vocabularies along with or instead of the base vocabulary. These specialized vocabularies are developed by communities of users and are available in the GitHub [hed-schema-library](https://github.com/hed-standard/hed-schema-library) repository. +Library schema are specified by *library-name*_*library-version*. Example: The following `dataset_description.json` file specifies that the [`HED8.1.0.xml`](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) @@ -203,13 +204,7 @@ located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-libr { "Name": "A great experiment", "BIDSVersion": "1.7.0", - "HEDVersion": { - "base": "8.1.0", - "libraries": { - "sc": "score_0.0.1", - "ts": "testlib_1.0.2" - } - } + "HEDVersion": ["8.1.0", "sc:score_0.0.1", "ts:testlib_1.0.2"] } ``` The `sc:` and `ts:` are user-chosen prefixes used to distinguish the sources @@ -221,5 +216,20 @@ In the following HED annotation: Data-feature, sc:Photmyogenic-response, sc:Wicket-spikes ``` -The tag `Data-feature` is from HED8.1.0, -while `Photmyogenic-response` and `Wicket-spikes` are from HED_score_0.0.1. +If only one schema is being used for annotation, the prefix can be omitted entirely. +The following `dataset_description.json` indicates that only the SCORE library version +0.0.1 will be used for HED annotation in this dataset. + +```JSON +{ + "Name": "A great experiment", + "BIDSVersion": "1.7.0", + "HEDVersion": "sc:score_0.0.1" +} +``` + +The corresponding notations in the dataset do not have a prefix: + +```Text +Photmyogenic-response, Wicket-spikes +``` diff --git a/src/schema/objects/metadata.yaml b/src/schema/objects/metadata.yaml index cf0001b0e9..ddbe04c39d 100644 --- a/src/schema/objects/metadata.yaml +++ b/src/schema/objects/metadata.yaml @@ -1025,12 +1025,9 @@ HEDVersion: May include a single schema or a base schema and one or more library schema. anyOf: - type: string - - type: object - properties: - base: - type: string - libraries: - type: object + - type: array + items: + type: string Haematocrit: name: Haematocrit description: | From ccf749beef5bb29c527ddb7758d7749f6727e2c6 Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Thu, 9 Jun 2022 16:30:07 -0500 Subject: [PATCH 06/16] Provided example using only SCORE library --- src/99-appendices/03-hed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index cf96a997ba..c52c4ac754 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -224,7 +224,7 @@ The following `dataset_description.json` indicates that only the SCORE library v { "Name": "A great experiment", "BIDSVersion": "1.7.0", - "HEDVersion": "sc:score_0.0.1" + "HEDVersion": "score_0.0.1" } ``` From ce26293600747862b7d3e3ea1c7e89166d6e449c Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Thu, 9 Jun 2022 16:41:51 -0500 Subject: [PATCH 07/16] Made some typo and editorial corrections --- src/99-appendices/03-hed.md | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index c52c4ac754..61b18a90db 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -181,10 +181,9 @@ repository on GitHub should be used to validate the study event annotations. ``` If you omit the `HEDVersion` field from the dataset description file, -any present HED information will be validated using the latest version of the HED schema, -which is bound to result in problems. -Hence, it is strongly RECOMMENDED that the `HEDVersion` field be included when using HED -in a BIDS dataset. +any present HED information will be validated using the latest version of the HED schema. +This is bound to result in problems, and hence, it is strongly RECOMMENDED that the +`HEDVersion` field be included when using HED in a BIDS dataset. ### Using HED library schemas @@ -195,10 +194,10 @@ communities of users and are available in the GitHub Library schema are specified by *library-name*_*library-version*. Example: The following `dataset_description.json` file specifies that the -[`HED8.1.0.xml`](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) +[HED8.1.0.xml](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) base schema should be used along with the -SCORE library for clinical neurological annotation and a test library -located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/score/hedxml/HED_score_0.0.1.xml) and [HED_testlib_1.0.2.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/testlib/hedxml/HED_testlib_1.0.2.xml), respectively. +SCORE library for clinical neurological annotation and a test library. +These later schemas are located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/score/hedxml/HED_score_0.0.1.xml) and [HED_testlib_1.0.2.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/testlib/hedxml/HED_testlib_1.0.2.xml), respectively. ```JSON { @@ -210,10 +209,13 @@ located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-libr The `sc:` and `ts:` are user-chosen prefixes used to distinguish the sources of the terms in the HED annotation. These prefixes must be alphanumeric. -In the following HED annotation: + +The following HED annotation from this dataset uses the `sc:` prefix with +`Photomyogenic-response` and `Wicket-spikes` because these terms are from the +SCORE library, while `Data-feature` is from the standard HED schema. ```Text -Data-feature, sc:Photmyogenic-response, sc:Wicket-spikes +Data-feature, sc:Photomyogenic-response, sc:Wicket-spikes ``` If only one schema is being used for annotation, the prefix can be omitted entirely. @@ -231,5 +233,5 @@ The following `dataset_description.json` indicates that only the SCORE library v The corresponding notations in the dataset do not have a prefix: ```Text -Photmyogenic-response, Wicket-spikes +:Photomyogenic-response, Wicket-spikes ``` From a0a7b36698f737f74c4c1f3e0e2c835dbd13ee01 Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Thu, 9 Jun 2022 16:43:40 -0500 Subject: [PATCH 08/16] Changed base schema to standard schema --- src/99-appendices/03-hed.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index 61b18a90db..f2ccccc3f4 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -188,14 +188,14 @@ This is bound to result in problems, and hence, it is strongly RECOMMENDED that ### Using HED library schemas HED also allows you to use one or more specialized vocabularies along with or instead of -the base vocabulary. These specialized vocabularies are developed by +the standard vocabulary. These specialized vocabularies are developed by communities of users and are available in the GitHub [hed-schema-library](https://github.com/hed-standard/hed-schema-library) repository. Library schema are specified by *library-name*_*library-version*. Example: The following `dataset_description.json` file specifies that the [HED8.1.0.xml](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) -base schema should be used along with the +standard schema should be used along with the SCORE library for clinical neurological annotation and a test library. These later schemas are located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/score/hedxml/HED_score_0.0.1.xml) and [HED_testlib_1.0.2.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/testlib/hedxml/HED_testlib_1.0.2.xml), respectively. From 37e9b8f9ba3ccaf62e67af3d97b6505d7ff1a959 Mon Sep 17 00:00:00 2001 From: Kay Robbins <1189050+VisLab@users.noreply.github.com> Date: Thu, 9 Jun 2022 16:45:49 -0500 Subject: [PATCH 09/16] Removed extra colon --- src/99-appendices/03-hed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index f2ccccc3f4..7a6e681dc6 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -233,5 +233,5 @@ The following `dataset_description.json` indicates that only the SCORE library v The corresponding notations in the dataset do not have a prefix: ```Text -:Photomyogenic-response, Wicket-spikes +Photomyogenic-response, Wicket-spikes ``` From 42708efc8be724ddd1993c7ccde0db58774529fa Mon Sep 17 00:00:00 2001 From: VisLab <1189050+VisLab@users.noreply.github.com> Date: Sat, 11 Jun 2022 10:39:42 -0500 Subject: [PATCH 10/16] Update src/99-appendices/03-hed.md Co-authored-by: Stefan Appelhoff --- src/99-appendices/03-hed.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index 7a6e681dc6..50d2a358cd 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -197,7 +197,9 @@ Example: The following `dataset_description.json` file specifies that the [HED8.1.0.xml](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) standard schema should be used along with the SCORE library for clinical neurological annotation and a test library. -These later schemas are located at [HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/score/hedxml/HED_score_0.0.1.xml) and [HED_testlib_1.0.2.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/testlib/hedxml/HED_testlib_1.0.2.xml), respectively. +These later schemas are located at +[HED_score_0.0.1.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/score/hedxml/HED_score_0.0.1.xml) and +[HED_testlib_1.0.2.xml](https://github.com/hed-standard/hed-schema-library/blob/main/library_schemas/testlib/hedxml/HED_testlib_1.0.2.xml), respectively. ```JSON { From f26bcd1fa6a29a8b161ca891834335f9cf963a12 Mon Sep 17 00:00:00 2001 From: VisLab <1189050+VisLab@users.noreply.github.com> Date: Sat, 11 Jun 2022 10:39:55 -0500 Subject: [PATCH 11/16] Update src/99-appendices/03-hed.md Co-authored-by: Stefan Appelhoff --- src/99-appendices/03-hed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index 50d2a358cd..f4d356e4c9 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -191,7 +191,7 @@ HED also allows you to use one or more specialized vocabularies along with or in the standard vocabulary. These specialized vocabularies are developed by communities of users and are available in the GitHub [hed-schema-library](https://github.com/hed-standard/hed-schema-library) repository. -Library schema are specified by *library-name*_*library-version*. +Library schema are specified in the form `library-version>`. Example: The following `dataset_description.json` file specifies that the [HED8.1.0.xml](https://github.com/hed-standard/hed-specification/tree/master/hedxml/HED8.1.0.xml) From 5310be67f325e812c19b809b850a45aba3f3a131 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Mon, 29 Aug 2022 22:15:55 +0200 Subject: [PATCH 12/16] Update src/99-appendices/03-hed.md --- src/99-appendices/03-hed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/99-appendices/03-hed.md b/src/99-appendices/03-hed.md index f4d356e4c9..e6dc12c959 100644 --- a/src/99-appendices/03-hed.md +++ b/src/99-appendices/03-hed.md @@ -210,7 +210,7 @@ These later schemas are located at ``` The `sc:` and `ts:` are user-chosen prefixes used to distinguish the sources of the terms in the HED annotation. -These prefixes must be alphanumeric. +These prefixes MUST be alphanumeric. The following HED annotation from this dataset uses the `sc:` prefix with `Photomyogenic-response` and `Wicket-spikes` because these terms are from the From a49df6494dad02c320d7b8a435093a5cea776175 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Mon, 29 Aug 2022 22:18:39 +0200 Subject: [PATCH 13/16] Update metadata.yaml --- src/schema/objects/metadata.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/schema/objects/metadata.yaml b/src/schema/objects/metadata.yaml index 71b7186aef..720bb03a20 100644 --- a/src/schema/objects/metadata.yaml +++ b/src/schema/objects/metadata.yaml @@ -1146,10 +1146,10 @@ HEDVersion: The version of the HED schema used to validate HED tags for study. May include a single schema or a base schema and one or more library schema. anyOf: - - type: string - - type: array - items: - type: string + - type: string + - type: array + items: + type: string Haematocrit: name: Haematocrit display_name: Haematocrit From 55d79a6a2d2f811fb26d2e8a9ec1bb584147d1d9 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Tue, 30 Aug 2022 12:17:06 +0200 Subject: [PATCH 14/16] add new format: hed_version --- src/schema/objects/formats.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/schema/objects/formats.yaml b/src/schema/objects/formats.yaml index 0a0b7b885c..06485afd61 100644 --- a/src/schema/objects/formats.yaml +++ b/src/schema/objects/formats.yaml @@ -36,6 +36,11 @@ string: This should allow any free-form string. pattern: '.*' # String formats +hed_version: + display_name: HED Version + description: | + The version string of the used HED schema. + pattern: ^(?:[a-zA-Z]+:)?(?:[a-zA-Z]+_)?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?:[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ bids_uri: display_name: BIDS uniform resource indicator description: | From 5c7045dbccd3c401c028a702063fe881bd0c43c7 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Tue, 30 Aug 2022 13:28:35 +0200 Subject: [PATCH 15/16] line break pattern --- src/schema/objects/formats.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/schema/objects/formats.yaml b/src/schema/objects/formats.yaml index 06485afd61..9be89d5652 100644 --- a/src/schema/objects/formats.yaml +++ b/src/schema/objects/formats.yaml @@ -40,7 +40,9 @@ hed_version: display_name: HED Version description: | The version string of the used HED schema. - pattern: ^(?:[a-zA-Z]+:)?(?:[a-zA-Z]+_)?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-(?:(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?:[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ + pattern: '^(?:[a-zA-Z]+:)?(?:[a-zA-Z]+_)?(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\ + (?:-(?:(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?\ + (?:\+(?:[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$' bids_uri: display_name: BIDS uniform resource indicator description: | From 61014591d998069d2d53d2aa10631e90378060f9 Mon Sep 17 00:00:00 2001 From: Stefan Appelhoff Date: Tue, 30 Aug 2022 13:31:33 +0200 Subject: [PATCH 16/16] Update src/schema/objects/metadata.yaml --- src/schema/objects/metadata.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schema/objects/metadata.yaml b/src/schema/objects/metadata.yaml index 720bb03a20..f1a41b3211 100644 --- a/src/schema/objects/metadata.yaml +++ b/src/schema/objects/metadata.yaml @@ -1147,9 +1147,11 @@ HEDVersion: May include a single schema or a base schema and one or more library schema. anyOf: - type: string + format: hed_version - type: array items: type: string + format: hed_version Haematocrit: name: Haematocrit display_name: Haematocrit