Skip to content

Commit

Permalink
adapt spec to RFC-2 revision
Browse files Browse the repository at this point in the history
  • Loading branch information
normanrz committed Jul 2, 2024
1 parent 00371a3 commit ee4ce14
Show file tree
Hide file tree
Showing 29 changed files with 250 additions and 119 deletions.
2 changes: 1 addition & 1 deletion latest/examples/bf2raw/image.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": { "bioformats2raw.layout": 3 }
"ome": { "version": "0.5", "bioformats2raw.layout": 3 }
}
}
3 changes: 2 additions & 1 deletion latest/examples/bf2raw/plate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"bioformats2raw.layout": 3,
"plate": {
"columns": [
Expand Down
3 changes: 2 additions & 1 deletion latest/examples/label_strict/colors_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"image-label": {
"colors": [
{
Expand Down
3 changes: 2 additions & 1 deletion latest/examples/multiscales_strict/multiscales_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"multiscales": [
{
"name": "example",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"multiscales": [
{
"axes": [
Expand Down
4 changes: 1 addition & 3 deletions latest/examples/ome/series-2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"series": ["0", "1"]
}
"ome": { "version": "0.5", "series": ["0", "1"] }
}
}
3 changes: 2 additions & 1 deletion latest/examples/plate_strict/plate_2wells.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"plate": {
"acquisitions": [
{
Expand Down
3 changes: 2 additions & 1 deletion latest/examples/plate_strict/plate_6wells.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"plate": {
"acquisitions": [
{
Expand Down
3 changes: 2 additions & 1 deletion latest/examples/well_strict/well_2fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"well": {
"images": [
{
Expand Down
3 changes: 2 additions & 1 deletion latest/examples/well_strict/well_4fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"zarr_format": 3,
"node_type": "group",
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"well": {
"images": [
{
Expand Down
13 changes: 9 additions & 4 deletions latest/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -162,13 +162,17 @@ for discovering certain types of data, especially images.

The OME-Zarr Metadata is stored in the various `zarr.json` files throughout the above array
hierarchy. In this file, the metadata is stored under the namespaced key
`https://ngff.openmicroscopy.org/0.5` in `attributes`.
`ome` in `attributes`.
The version of the OME-Zarr Metadata is denoted as a string in the `version` attribute within the `ome` namespace.

The OME-Zarr Metadata version MUST be consistent within a hierarchy.

```json
{
...
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
...
}
}
Expand Down Expand Up @@ -402,7 +406,8 @@ labeled multiscale image(s). All label images SHOULD be listed within this metad
{
...
"attributes": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"version": "0.5",
"labels": [
"cell_space_segmentation"
]
Expand Down Expand Up @@ -609,7 +614,7 @@ Citing {#citing}

[Next-generation file format (NGFF) specifications for storing bioimaging data in the cloud.](https://ngff.openmicroscopy.org/0.4)
J. Moore, *et al*. Open Microscopy Environment Consortium, 8 February 2022.
This edition of the specification is [https://ngff.openmicroscopy.org/0.4/](https://ngff.openmicroscopy.org/0.4/]).
This edition of the specification is [https://ngff.openmicroscopy.org/0.5/](https://ngff.openmicroscopy.org/0.5/]).
The latest edition is available at [https://ngff.openmicroscopy.org/latest/](https://ngff.openmicroscopy.org/latest/).
[(doi:10.5281/zenodo.4282107)](https://doi.org/10.5281/zenodo.4282107)

Expand Down
10 changes: 7 additions & 3 deletions latest/schemas/bf2raw.schema
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "The zarr.json attributes key",
"type": "object",
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"description": "The versioned OME-Zarr Metadata namespace",
"type": "object",
"properties": {
Expand All @@ -19,15 +19,19 @@
"enum": [
3
]
},
"version": {
"$ref": "https://ngff.openmicroscopy.org/latest/schemas/version.schema"
}
},
"required": [
"bioformats2raw.layout"
"bioformats2raw.layout",
"version"
]
}
},
"required": [
"https://ngff.openmicroscopy.org/0.5"
"ome"
]
}
},
Expand Down
10 changes: 7 additions & 3 deletions latest/schemas/image.schema
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "The zarr.json attributes key",
"type": "object",
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"description": "The versioned OME-Zarr Metadata namespace",
"type": "object",
"properties": {
Expand All @@ -18,15 +18,19 @@
},
"omero": {
"$ref": "#/$defs/omero"
},
"version": {
"$ref": "https://ngff.openmicroscopy.org/latest/schemas/version.schema"
}
},
"required": [
"multiscales"
"multiscales",
"version"
]
}
},
"required": [
"https://ngff.openmicroscopy.org/0.5"
"ome"
]
}
},
Expand Down
10 changes: 7 additions & 3 deletions latest/schemas/label.schema
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,25 @@
"description": "The zarr.json attributes key",
"type": "object",
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"description": "The versioned OME-Zarr Metadata namespace",
"type": "object",
"properties": {
"image-label": {
"$ref": "#/$defs/image-label"
},
"version": {
"$ref": "https://ngff.openmicroscopy.org/latest/schemas/version.schema"
}
},
"required": [
"image-label"
"image-label",
"version"
]
}
},
"required": [
"https://ngff.openmicroscopy.org/0.5"
"ome"
]
}
},
Expand Down
10 changes: 7 additions & 3 deletions latest/schemas/ome.schema
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "The zarr.json attributes key",
"type": "object",
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"description": "The versioned OME-Zarr Metadata namespace",
"type": "object",
"properties": {
Expand All @@ -20,15 +20,19 @@
"type": "string"
},
"minContains": 1
},
"version": {
"$ref": "https://ngff.openmicroscopy.org/latest/schemas/version.schema"
}
},
"required": [
"series"
"series",
"version"
]
}
},
"required": [
"https://ngff.openmicroscopy.org/0.5"
"ome"
]
}
},
Expand Down
10 changes: 7 additions & 3 deletions latest/schemas/plate.schema
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "The zarr.json attributes key",
"type": "object",
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"description": "The versioned OME-Zarr Metadata namespace",
"type": "object",
"properties": {
Expand Down Expand Up @@ -140,15 +140,19 @@
"rows",
"wells"
]
},
"version": {
"$ref": "https://ngff.openmicroscopy.org/latest/schemas/version.schema"
}
},
"required": [
"plate"
"plate",
"version"
]
}
},
"required": [
"https://ngff.openmicroscopy.org/0.5"
"ome"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion latest/schemas/strict_image.schema
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"properties": {
"attributes": {
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"properties": {
"multiscales": {
"items": {
Expand Down
2 changes: 1 addition & 1 deletion latest/schemas/strict_label.schema
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"properties": {
"attributes": {
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"properties": {
"image-label": {
"required": [
Expand Down
2 changes: 1 addition & 1 deletion latest/schemas/strict_plate.schema
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"properties": {
"attributes": {
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"properties": {
"plate": {
"properties": {
Expand Down
10 changes: 10 additions & 0 deletions latest/schemas/version.schema
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://ngff.openmicroscopy.org/latest/schemas/version.schema",
"title": "OME-Zarr Metadata version",
"description": "The version of the OME-Zarr Metadata",
"type": "string",
"enum": [
"0.5"
]
}
10 changes: 7 additions & 3 deletions latest/schemas/well.schema
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"description": "The zarr.json attributes key",
"type": "object",
"properties": {
"https://ngff.openmicroscopy.org/0.5": {
"ome": {
"description": "The versioned OME-Zarr Metadata namespace",
"type": "object",
"properties": {
Expand Down Expand Up @@ -43,15 +43,19 @@
"required": [
"images"
]
},
"version": {
"$ref": "https://ngff.openmicroscopy.org/latest/schemas/version.schema"
}
},
"required": [
"well"
"well",
"version"
]
}
},
"required": [
"https://ngff.openmicroscopy.org/0.5"
"ome"
]
}
},
Expand Down
Loading

0 comments on commit ee4ce14

Please sign in to comment.