Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/metaschema.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@
"datetime",
"file_relative",
"participant_relative",
"person_name",
"rrid",
"stimuli_relative",
"time",
Expand Down
6 changes: 6 additions & 0 deletions src/schema/objects/formats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,12 @@ participant_relative:
without starting with "/" (an absolute path) or "sub/"
(a relative path starting with the participant directory, rather than relative to that directory).
pattern: '(?!/)(?!sub-)[0-9a-zA-Z+/_\-.]+'
person_name:
display_name: Name of a person
description: |
Name for a person in a single string with clear disambiguation of First (Given) and Last (Family)
name(s). Should follow `Last Names, First Names` convention.
pattern: '.+, .+'
rrid:
display_name: Research resource identifier
description: |
Expand Down
4 changes: 4 additions & 0 deletions src/schema/objects/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,9 +208,12 @@ Authors:
display_name: Authors
description: |
List of individuals who contributed to the creation/curation of the dataset.
It is RECOMMENDED to use `Last, First` form to ensure clear separation of
First (Given) from Last (Family) name(s).
type: array
items:
type: string
format: person_name
B0FieldIdentifier:
name: B0FieldIdentifier
display_name: B0 Field Identifier
Expand Down Expand Up @@ -1325,6 +1328,7 @@ Format:
- stimuli_relative
# Miscellaneous
- hed_version
- person_name
FrameAcquisitionDuration:
name: FrameAcquisitionDuration
display_name: Frame Acquisition Duration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def test_formats(schema_obj):
"stimuli_relative": ["any/arbitrary/path/file.txt"],
"dataset_relative": ["any/arbitrary/path/file.txt"],
"participant_relative": ["any/arbitrary/path/file.txt"],
"person_name": ["Last, First", "Many Last, a Few Firsts"],
"rrid": ["RRID:SCR_017398"],
"uri": ["foo://example.com:8042/over/there?name=ferret#nose"],
"bids_uri": [
Expand Down