From ec8c118d76e0401b6bf40c1a182dc656506ef7c5 Mon Sep 17 00:00:00 2001 From: Francis Charette Migneault Date: Fri, 27 Sep 2024 11:04:53 -0400 Subject: [PATCH] =?UTF-8?q?Bump=20version:=201.2.0=20=E2=86=92=201.3.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 17 +++++++++++++++++ README.md | 2 +- best-practices.md | 4 ++-- examples/item_bands_expression.json | 2 +- examples/item_basic.json | 2 +- examples/item_eo_and_raster_bands.json | 2 +- examples/item_eo_bands.json | 2 +- examples/item_eo_bands_summarized.json | 2 +- examples/item_multi_io.json | 2 +- examples/item_raster_bands.json | 2 +- json-schema/schema.json | 4 ++-- package.json | 4 ++-- pyproject.toml | 2 +- stac_model/schema.py | 2 +- 14 files changed, 33 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c52af0b..61de20b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased](https://github.com/crim-ca/mlm-extension/tree/main) +### Added +- n/a + +### Changed +- n/a + +### Deprecated +- n/a + +### Removed +- n/a + +### Fixed +- n/a + +## [v1.3.0](https://github.com/crim-ca/mlm-extension/tree/v1.3.0) + ### Added - Add `raster:bands` required property `name` for describing `mlm:input` bands (see [README - Bands and Statistics](README.md#bands-and-statistics) for details). diff --git a/README.md b/README.md index f20587c..1a2a6b3 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![hackmd-github-sync-badge](https://hackmd.io/N1cWyDM2S9eaAQtSvS0J_A/badge)](https://hackmd.io/N1cWyDM2S9eaAQtSvS0J_A?both) - **Title:** Machine Learning Model Extension -- **Identifier:** [https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json](https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json) +- **Identifier:** [https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json](https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json) - **Field Name Prefix:** mlm - **Scope:** Collection, Item, Asset, Links - **Extension Maturity Classification:** Pilot diff --git a/best-practices.md b/best-practices.md index 9d94b35..f487cf2 100644 --- a/best-practices.md +++ b/best-practices.md @@ -149,7 +149,7 @@ leading to a new MLM STAC Item definition (see also [STAC Version Extension](#ve { "id": "stac-item-model", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/ml-aoi/v0.2.0/schema.json" ], "assets": { @@ -224,7 +224,7 @@ that the model is properly instantiated from the expected weights, or that suffi ```json { "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/file/v2.1.0/schema.json" ], "assets": { diff --git a/examples/item_bands_expression.json b/examples/item_bands_expression.json index a9fa23b..9d53aed 100644 --- a/examples/item_bands_expression.json +++ b/examples/item_bands_expression.json @@ -2,7 +2,7 @@ "$comment": "Demonstrate the use of MLM and EO for bands description, with EO bands directly in the Model Asset.", "stac_version": "1.0.0", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_basic.json b/examples/item_basic.json index 386bfe5..8a514a8 100644 --- a/examples/item_basic.json +++ b/examples/item_basic.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json" + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json" ], "type": "Feature", "id": "example-model", diff --git a/examples/item_eo_and_raster_bands.json b/examples/item_eo_and_raster_bands.json index 7523431..8dcb5e2 100644 --- a/examples/item_eo_and_raster_bands.json +++ b/examples/item_eo_and_raster_bands.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_eo_bands.json b/examples/item_eo_bands.json index 0efd02c..fcec488 100644 --- a/examples/item_eo_bands.json +++ b/examples/item_eo_bands.json @@ -2,7 +2,7 @@ "$comment": "Demonstrate the use of MLM and EO for bands description, with EO bands directly in the Model Asset.", "stac_version": "1.0.0", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_eo_bands_summarized.json b/examples/item_eo_bands_summarized.json index 01cc898..8c26008 100644 --- a/examples/item_eo_bands_summarized.json +++ b/examples/item_eo_bands_summarized.json @@ -2,7 +2,7 @@ "$comment": "Demonstrate the use of MLM and EO for bands description, with EO bands summarized in the Item properties and referenced by name in the Model Asset.", "stac_version": "1.0.0", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/eo/v1.1.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", diff --git a/examples/item_multi_io.json b/examples/item_multi_io.json index 4922415..7b15651 100644 --- a/examples/item_multi_io.json +++ b/examples/item_multi_io.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", "https://stac-extensions.github.io/ml-aoi/v0.2.0/schema.json" diff --git a/examples/item_raster_bands.json b/examples/item_raster_bands.json index 46334e9..c9ba338 100644 --- a/examples/item_raster_bands.json +++ b/examples/item_raster_bands.json @@ -1,7 +1,7 @@ { "stac_version": "1.0.0", "stac_extensions": [ - "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "https://stac-extensions.github.io/raster/v1.1.0/schema.json", "https://stac-extensions.github.io/file/v1.0.0/schema.json", "https://stac-extensions.github.io/ml-aoi/v0.2.0/schema.json" diff --git a/json-schema/schema.json b/json-schema/schema.json index c9ec4da..c482c63 100644 --- a/json-schema/schema.json +++ b/json-schema/schema.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json", + "$id": "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json", "title": "Machine Learning Model STAC Extension Schema", "description": "This object represents the metadata for a Machine Learning Model (MLM) used in STAC documents.", "$comment": "Use 'allOf+if/then' for each 'type' to allow implementations to report more specific messages about the exact case in error (if any). Using only a 'oneOf/allOf' with the 'type' caused any incompatible 'type' to be reported first with a minimal and poorly described error by 'pystac'.", @@ -123,7 +123,7 @@ "stac_extensions": { "type": "array", "contains": { - "const": "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json" + "const": "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json" } } } diff --git a/package.json b/package.json index 71c3795..270e8c6 100644 --- a/package.json +++ b/package.json @@ -5,8 +5,8 @@ "test": "npm run check-markdown && npm run check-examples", "check-markdown": "remark . -f -r .github/remark.yaml -i .remarkignore", "format-markdown": "remark . -f -r .github/remark.yaml -i .remarkignore -o", - "check-examples": "stac-node-validator . --lint --verbose --schemaMap https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json=./json-schema/schema.json", - "format-examples": "stac-node-validator . --format --schemaMap https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json=./json-schema/schema.json" + "check-examples": "stac-node-validator . --lint --verbose --schemaMap https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json=./json-schema/schema.json", + "format-examples": "stac-node-validator . --format --schemaMap https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json=./json-schema/schema.json" }, "dependencies": { "remark-cli": "^8.0.0", diff --git a/pyproject.toml b/pyproject.toml index 6c53e47..692c9fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,7 +95,7 @@ bump-my-version = "^0.21" # they are actually intented for versioning the MLM specification itself. # To version 'stac-model', use the 'poetry version' operations. # See also https://github.com/crim-ca/mlm-extension/blob/main/CONTRIBUTING.md#building-and-releasing -current_version = "1.2.0" +current_version = "1.3.0" parse = "(?P\\d+)\\.(?P\\d+)\\.(?P\\d+)" serialize = ["{major}.{minor}.{patch}"] search = "{current_version}" diff --git a/stac_model/schema.py b/stac_model/schema.py index 267f1f7..206263b 100644 --- a/stac_model/schema.py +++ b/stac_model/schema.py @@ -37,7 +37,7 @@ ) SchemaName = Literal["mlm"] -SCHEMA_URI: str = "https://crim-ca.github.io/mlm-extension/v1.2.0/schema.json" +SCHEMA_URI: str = "https://crim-ca.github.io/mlm-extension/v1.3.0/schema.json" PREFIX = f"{get_args(SchemaName)[0]}:"