From 63f8c5ecfab7f6ad7a72016b9f859b3d7443ff5d Mon Sep 17 00:00:00 2001 From: raphaelgazzotti Date: Wed, 4 Mar 2026 09:30:01 +0100 Subject: [PATCH] Apply #579 to v6 branch Related to #591 --- schemas/data/rasterImage.schema.tpl.json | 58 +++++++++++++++ .../data/rasterImageSequence.shema.tpl.json | 69 ++++++++++++++++++ schemas/data/rasterImageStack.schema.tpl.json | 69 ++++++++++++++++++ schemas/data/rasterVolume.schema.tpl.json | 61 ++++++++++++++++ .../data/rasterVolumeSequence.schema.tpl.json | 73 +++++++++++++++++++ 5 files changed, 330 insertions(+) create mode 100644 schemas/data/rasterImage.schema.tpl.json create mode 100644 schemas/data/rasterImageSequence.shema.tpl.json create mode 100644 schemas/data/rasterImageStack.schema.tpl.json create mode 100644 schemas/data/rasterVolume.schema.tpl.json create mode 100644 schemas/data/rasterVolumeSequence.schema.tpl.json diff --git a/schemas/data/rasterImage.schema.tpl.json b/schemas/data/rasterImage.schema.tpl.json new file mode 100644 index 00000000..5a64e061 --- /dev/null +++ b/schemas/data/rasterImage.schema.tpl.json @@ -0,0 +1,58 @@ +{ + "_type": "core:RasterImage", + "required": [ + "coordinateFramework", + "dataLocation", + "dimension", + "pixelSize" + ], + "properties": { + "additionalRemarks": { + "_instruction": "Enter any additional remarks concerning this digital representation.", + "type": "string" + }, + "capturedWith": { + "_instruction": "Add the device used to capture this digital representation.", + "_linkedCategories": [ + "deviceUsage" + ] + }, + "coordinateFramework": { + "_instruction": "Add the coordinate space in which this digital representation exists.", + "_linkedTypes": [ + "sands:CommonCoordinateFrameworkVersion", + "sands:CustomCoordinateFramework" + + ] + }, + "dataLocation": { + "_instruction": "Add the location of the file or file bundle in which the digital representation is stored.", + "_linkedTypes": [ + "core:File" + ] + }, + "dimension": { + "_instruction": "Enter the dimension of this image in pixels.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "name": { + "_instruction": "Enter a descriptive name of this digital representation preferably matching the filename.", + "type": "string" + }, + "pixelSize": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the physical pixel size for this image (in x,y order).", + "maxItems": 2, + "minItems": 2, + "type": "array" + } + } +} + diff --git a/schemas/data/rasterImageSequence.shema.tpl.json b/schemas/data/rasterImageSequence.shema.tpl.json new file mode 100644 index 00000000..eea1b644 --- /dev/null +++ b/schemas/data/rasterImageSequence.shema.tpl.json @@ -0,0 +1,69 @@ +{ + "_type": "core:RasterImageSequence", + "required": [ + "coordinateFramework", + "dataLocation", + "dimension", + "pixelSize", + "temporalSamplingFrequency" + ], + "properties": { + "additionalRemarks": { + "_instruction": "Enter any additional remarks concerning this digital representation.", + "type": "string" + }, + "capturedWith": { + "_instruction": "Add the device used to capture this digital representation.", + "_linkedCategories": [ + "deviceUsage" + ] + }, + "coordinateFramework": { + "_instruction": "Add the coordinate space in which this digital representation exists.", + "_linkedTypes": [ + "sands:CommonCoordinateFrameworkVersion", + "sands:CustomCoordinateFramework" + ] + }, + "dataLocation": { + "_instruction": "Add the location of the file or file bundle in which the digital representation is stored.", + "_linkedTypes": [ + "core:File" + ] + }, + "dimension": { + "_instruction": "Enter the common dimension of the consecutive images (frames) in pixels.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "name": { + "_instruction": "Enter a descriptive name of this digital representation preferably matching the filename.", + "type": "string" + }, + "numberOfImages": { + "_instruction": "Enter the total number of images in this sequence (at least two).", + "minimum": 2, + "type": "integer" + }, + "pixelSize": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the common physical pixel size for the consecutive images (frames) (in x,y order).", + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "temporalSamplingFrequency": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the rate at which consecutive images (frames) are captured in a sequence, preferably measured in Hertz (Hz)." + } + } +} + diff --git a/schemas/data/rasterImageStack.schema.tpl.json b/schemas/data/rasterImageStack.schema.tpl.json new file mode 100644 index 00000000..4b3dbaad --- /dev/null +++ b/schemas/data/rasterImageStack.schema.tpl.json @@ -0,0 +1,69 @@ +{ + "_type": "core:RasterImageStack", + "required": [ + "coordinateFramework", + "dataLocation", + "dimension", + "pixelSize", + "z-stepSize" + ], + "properties": { + "additionalRemarks": { + "_instruction": "Enter any additional remarks concerning this digital representation.", + "type": "string" + }, + "capturedWith": { + "_instruction": "Add the device used to capture this digital representation.", + "_linkedCategories": [ + "deviceUsage" + ] + }, + "coordinateFramework": { + "_instruction": "Add the coordinate space in which this digital representation exists.", + "_linkedTypes": [ + "sands:CommonCoordinateFrameworkVersion", + "sands:CustomCoordinateFramework" + ] + }, + "dataLocation": { + "_instruction": "Add the location of the file or file bundle in which the digital representation is stored.", + "_linkedTypes": [ + "core:File" + ] + }, + "dimension": { + "_instruction": "Enter the common dimension of the consecutive image planes (optical sections) in pixels.", + "items": { + "type": "integer" + }, + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "name": { + "_instruction": "Enter a descriptive name of this digital representation preferably matching the filename.", + "type": "string" + }, + "numberOfImages": { + "_instruction": "Enter the total number of consecutive image planes (optical sections) in this stack (at least two).", + "minimum": 2, + "type": "integer" + }, + "pixelSize": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the common physical pixel size for the consecutive image planes (optical sections) (in x,y order).", + "maxItems": 2, + "minItems": 2, + "type": "array" + }, + "z-stepSize": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the physical axial distance between consecutive image planes (optical sections) within this image stack." + } + } +} + diff --git a/schemas/data/rasterVolume.schema.tpl.json b/schemas/data/rasterVolume.schema.tpl.json new file mode 100644 index 00000000..f826ace4 --- /dev/null +++ b/schemas/data/rasterVolume.schema.tpl.json @@ -0,0 +1,61 @@ +{ + "_type": "core:RasterVolume", + "required": [ + "coordinateFramework", + "dataLocation", + "dimension", + "voxelSize" + ], + "properties": { + "additionalRemarks": { + "_instruction": "Enter any additional remarks concerning this digital representation.", + "type": "string" + }, + "capturedWith": { + "_instruction": "Add the device used to capture this digital representation.", + "_linkedCategories": [ + "deviceUsage" + ] + }, + "coordinateFramework": { + "_instruction": "Add the coordinate space in which this digital representation exists.", + "_linkedTypes": [ + "sands:CommonCoordinateFrameworkVersion", + "sands:CustomCoordinateFramework" + ] + }, + "dataLocation": { + "_instruction": "Add the location of the file or file bundle in which the digital representation is stored.", + "_linkedTypes": [ + "core:File" + ] + }, + "dimension": { + "_instruction": "Enter the dimension of this volume.", + "items": { + "type": "integer" + }, + "maxItems": 3, + "minItems": 3, + "type": "array" + }, + "name": { + "_instruction": "Enter a descriptive name of this digital representation preferably matching the filename.", + "type": "string" + }, + "numberOfPlanes": { + "_instruction": "Enter number of planes in this volume.", + "type": "integer" + }, + "voxelSize": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the physical voxel size for this image (in x,y,z order).", + "maxItems": 3, + "minItems": 3, + "type": "array" + } + } +} + diff --git a/schemas/data/rasterVolumeSequence.schema.tpl.json b/schemas/data/rasterVolumeSequence.schema.tpl.json new file mode 100644 index 00000000..ca9e3e78 --- /dev/null +++ b/schemas/data/rasterVolumeSequence.schema.tpl.json @@ -0,0 +1,73 @@ +{ + "_type": "core:RasterVolumeSequence", + "required": [ + "coordinateFramework", + "dataLocation", + "dimension", + "temporalSamplingFrequency", + "voxelSize" + ], + "properties": { + "additionalRemarks": { + "_instruction": "Enter any additional remarks concerning this digital representation.", + "type": "string" + }, + "capturedWith": { + "_instruction": "Add the device used to capture this digital representation.", + "_linkedCategories": [ + "deviceUsage" + ] + }, + "coordinateFramework": { + "_instruction": "Add the coordinate space in which this digital representation exists.", + "_linkedTypes": [ + "sands:CommonCoordinateFrameworkVersion", + "sands:CustomCoordinateFramework" + ] + }, + "dataLocation": { + "_instruction": "Add the location of the file or file bundle in which the digital representation is stored.", + "_linkedTypes": [ + "core:File" + ] + }, + "dimension": { + "_instruction": "Enter the dimension of this volume.", + "items": { + "type": "integer" + }, + "maxItems": 3, + "minItems": 3, + "type": "array" + }, + "name": { + "_instruction": "Enter a descriptive name of this digital representation preferably matching the filename.", + "type": "string" + }, + "numberOfPlanes": { + "_instruction": "Enter number of planes in this volume.", + "type": "integer" + }, + "numberOfVolumes": { + "_instruction": "Enter the total number of volumes in this volume sequence (at least two).", + "minimum": 2, + "type": "integer" + }, + "temporalSamplingFrequency": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the rate at which consecutive images (frames) are captured in a sequence, preferably measured in Hertz (Hz)." + }, + "voxelSize": { + "_embeddedTypes": [ + "core:QuantitativeValue" + ], + "_instruction": "Enter the physical voxel size for this image (in x,y,z order).", + "maxItems": 3, + "minItems": 3, + "type": "array" + } + } +} +