Skip to content

Instantly share code, notes, and snippets.

@ted-strauss-K1
Created February 8, 2018 15:53
Show Gist options
  • Save ted-strauss-K1/5d5e305faadcc22bf9fce7010a7be2e9 to your computer and use it in GitHub Desktop.
Save ted-strauss-K1/5d5e305faadcc22bf9fce7010a7be2e9 to your computer and use it in GitHub Desktop.
CKAN schema describing BIDS MEG format
{
"scheming_version": 1,
"dataset_type": "bids_meg",
"about": "A dataset in the Open MEG Archive",
"about_url": "https://www.mcgill.ca/bic/resources/omega",
"dataset_fields":
[
{
"field_name": "title",
"label": "Title",
"preset": "title",
"form_placeholder": "eg. A descriptive title"
},
{
"field_name": "name",
"label": "URL",
"preset": "dataset_slug",
"form_placeholder": "eg. my-dataset"
},
{
"field_name": "notes",
"label": "Description",
"form_snippet": "markdown.html",
"form_placeholder": "eg. Some useful notes about the data"
},
{
"field_name": "tag_string",
"label": "Tags",
"preset": "tag_string_autocomplete",
"form_placeholder": "eg. economy, mental health, government"
},
{
"field_name": "license_id",
"label": "License",
"form_snippet": "license.html",
"help_text": "License definitions and additional information can be found at http://opendefinition.org/"
},
{
"field_name": "owner_org",
"label": "Organization",
"preset": "dataset_organization"
},
{
"field_name": "url",
"label": "Source",
"form_placeholder": "http://example.com/dataset.json",
"display_property": "foaf:homepage",
"display_snippet": "link.html"
},
{
"field_name": "version",
"label": "Version",
"validators": "ignore_missing unicode package_version_validator",
"form_placeholder": "1.0"
},
{
"field_name": "author",
"label": "Author",
"form_placeholder": "Joe Bloggs",
"display_property": "dc:creator"
},
{
"field_name": "author_email",
"label": "Author Email",
"form_placeholder": "joe@example.com",
"display_property": "dc:creator",
"display_snippet": "email.html",
"display_email_name_field": "author"
},
{
"field_name": "maintainer",
"label": "Maintainer",
"form_placeholder": "Joe Bloggs",
"display_property": "dc:contributor"
},
{
"field_name": "maintainer_email",
"label": "Maintainer Email",
"form_placeholder": "joe@example.com",
"display_property": "dc:contributor",
"display_snippet": "email.html",
"display_email_name_field": "maintainer"
},
{
"field_name": "InstitutionName",
"label": "InstitutionName"
},
{
"field_name": "InstitutionAddress",
"label": "InstitutionAddress"
},
{
"field_name": "Manufacturer",
"label": "Manufacturer"
},
{
"field_name": "ManufacturersModelName",
"label": "ManufacturersModelName"
},
{
"field_name": "TaskName",
"label": "TaskName"
},
{
"field_name": "SoftwareVersions",
"label": "SoftwareVersions"
},
{
"field_name": "TaskDescription",
"label": "TaskDescription"
},
{
"field_name": "Instructions",
"label": "Instructions"
},
{
"field_name": "CogAtlasID",
"label": "CogAtlasID",
"preset": "resource_format_autocomplete"
},
{
"field_name": "CogPOID",
"label": "CogPOID",
"preset": "resource_format_autocomplete"
},
{
"field_name": "DeviceSerialNumber",
"label": "DeviceSerialNumber"
},
{
"field_name": "SamplingFrequency",
"label": "SamplingFrequency",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "PowerLineFrequency",
"label": "PowerLineFrequency",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "MEGChannelCount",
"label": "MEGChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "MEGREFChannelCount",
"label": "MEGREFChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "EEGChannelCount",
"label": "EEGChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "EOGChannelCount",
"label": "EOGChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "ECGChannelCount",
"label": "ECGChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "EMGChannelCount",
"label": "EMGChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "MiscChannelCount",
"label": "MiscChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "TriggerChannelCount",
"label": "TriggerChannelCount",
"validators": "ignore_missing int_validator",
"form_placeholder": "eg. 2"
},
{
"field_name": "EEGPlacementScheme",
"label": "EEGPlacementScheme"
},
{
"field_name": "EEGReference",
"label": "EEGReference"
},
{
"field_name": "DewarPosition",
"label": "DewarPosition"
},
{
"field_name": "SoftwareFilters",
"label": "SoftwareFilters"
},
{
"field_name": "RecordingDuration",
"label": "RecordingDuration"
},
{
"field_name": "RecordingType",
"label": "RecordingType"
},
{
"field_name": "EpochLength",
"label": "EpochLength"
},
{
"field_name": "ContinuousHeadLocalization",
"label": "ContinuousHeadLocalization"
},
{
"field_name": "CoilFrequency",
"label": "CoilFrequency"
},
{
"field_name": "MaxMovement",
"label": "MaxMovement"
},
{
"field_name": "SubjectArtefactDescription",
"label": "SubjectArtefactDescription"
},
{
"field_name": "DigitizedLandmarks",
"label": "DigitizedLandmarks"
},
{
"field_name": "DigitizedHeadPoints",
"label": "DigitizedHeadPoints"
},
{
"field_name": "AssociatedEmptyroom",
"label": "AssociatedEmptyroom"
}
],
"resource_fields": [
{
"field_name": "url",
"label": "URL",
"preset": "resource_url_upload"
},
{
"field_name": "name",
"label": "Name",
"form_placeholder": "eg. January 2011 Gold Prices"
},
{
"field_name": "description",
"label": "Description",
"form_snippet": "markdown.html",
"form_placeholder": "Some useful notes about the data"
},
{
"field_name": "format",
"label": "Format",
"preset": "resource_format_autocomplete"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment