Skip to content

Commit

Permalink
Support Catalogs, update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Jun 22, 2023
1 parent 36086d4 commit 80e8194
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 36 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

- Support catalogs
- Use `osc:themes` instead of the themes extension

## [1.0.0-rc.1]
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
- **Title:** Open Science Catalog
- **Identifier:** <https://stac-extensions.github.io/osc/v1.0.0-rc.2/schema.json>
- **Field Name Prefix:** osc
- **Scope:** Collection
- **Scope:** Catalog, Collection, Item
- **Extension [Maturity Classification](https://github.com/radiantearth/stac-spec/tree/master/extensions/README.md#extension-maturity):** Proposal
- **Owner**: @constantinius

This document explains the Open Science Catalog Extension to the [SpatioTemporal Asset Catalog](https://github.com/radiantearth/stac-spec)
(STAC) specification.

- Examples:
- [Project Collection example](examples/4dionosphere-swarm-vip/collection.json): Shows a project STAC Collection
- [Project Catalog example](examples/4dionosphere-swarm-vip/catalog.json): Shows a project STAC Catalog
- [Product Collection example](examples/4dionosphere-swarm-vip/model-ionosphere-4dionosphere/collection.json): Shows a product STAC Collection
- [JSON Schema](json-schema/schema.json)
- [Changelog](./CHANGELOG.md)
Expand Down Expand Up @@ -52,7 +52,7 @@ A set of satellite missions which provided input for the product.
## Fields

The fields in the table below can be used in these parts of STAC documents:
- [ ] Catalogs
- [x] Catalogs
- [x] Collections
- [x] Item Properties
- [ ] Assets (for both Collections and Items, incl. Item Asset Definitions in Collections)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "Collection",
"type": "Catalog",
"id": "4dionosphere-swarm-vip",
"stac_version": "1.0.0",
"description": "In the project Swarm satellite data and other datasets are used to determine determine the dominant scales in the ionosphere at different geomagnetic conditions and create a semi-empiric dynamic model of the ionosphere.",
Expand Down Expand Up @@ -55,27 +55,6 @@
"theme:Magnetosphere_Ionosphere"
],
"updated": "2023-03-15T16:24:03.357451Z",
"extent": {
"spatial": {
"bbox": [
[
-180,
-90,
18,
90
]
]
},
"temporal": {
"interval": [
[
"2020-04-07T00:00:00Z",
"2022-04-16T23:59:59Z"
]
]
}
},
"license": "proprietary",
"links": [
{
"rel": "via",
Expand All @@ -92,11 +71,6 @@
"href": "./model-ionosphere-4dionosphere/collection.json",
"type": "application/json",
"title": "Semi-empiric model of ionosphere processes_SWARM"
},
{
"rel": "parent",
"href": "../collection.json",
"type": "application/json"
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,21 @@
},
{
"rel": "parent",
"href": "../collection.json",
"href": "../catalog.json",
"type": "application/json",
"title": "SWARM VIP"
},
{
"rel": "root",
"href": "../catalog.json",
"type": "application/json",
"title": "SWARM VIP"
},
{
"rel": "item",
"href": "./item.json",
"type": "application/geo+json",
"title": "example"
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "Feature",
"id": "example-model",
"id": "example",
"stac_version": "1.0.0",
"stac_extensions": [
"https://stac-extensions.github.io/osc/v1.0.0-rc.2/schema.json"
Expand All @@ -26,12 +26,25 @@
],
"datetime": "2023-03-15T16:24:03.357451Z"
},
"collection": "model-ionosphere-4dionosphere",
"links": [
{
"rel": "parent",
"href": "../collection.json",
"href": "./collection.json",
"type": "application/json",
"title": "model-ionosphere-4dionosphere"
"title": "Semi-empiric model of ionosphere processes_SWARM"
},
{
"rel": "collection",
"href": "./collection.json",
"type": "application/json",
"title": "Semi-empiric model of ionosphere processes_SWARM"
},
{
"rel": "root",
"href": "../catalog.json",
"type": "application/json",
"title": "SWARM VIP"
}
],
"assets": {
Expand Down
7 changes: 5 additions & 2 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,17 @@
}
},
{
"$comment": "This is the schema for STAC Collections.",
"$comment": "This is the schema for STAC Catalogs & Collections.",
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"const": "Collection"
"enum": [
"Catalog",
"Collection"
]
}
},
"allOf": [
Expand Down

0 comments on commit 80e8194

Please sign in to comment.