Skip to content

Commit 80e8194

Browse files
committed
Support Catalogs, update examples
1 parent 36086d4 commit 80e8194

File tree

6 files changed

+39
-36
lines changed

6 files changed

+39
-36
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2020

2121
### Changed
2222

23+
- Support catalogs
2324
- Use `osc:themes` instead of the themes extension
2425

2526
## [1.0.0-rc.1]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
- **Title:** Open Science Catalog
44
- **Identifier:** <https://stac-extensions.github.io/osc/v1.0.0-rc.2/schema.json>
55
- **Field Name Prefix:** osc
6-
- **Scope:** Collection
6+
- **Scope:** Catalog, Collection, Item
77
- **Extension [Maturity Classification](https://github.com/radiantearth/stac-spec/tree/master/extensions/README.md#extension-maturity):** Proposal
88
- **Owner**: @constantinius
99

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

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

5454
The fields in the table below can be used in these parts of STAC documents:
55-
- [ ] Catalogs
55+
- [x] Catalogs
5656
- [x] Collections
5757
- [x] Item Properties
5858
- [ ] Assets (for both Collections and Items, incl. Item Asset Definitions in Collections)

examples/4dionosphere-swarm-vip/collection.json renamed to examples/4dionosphere-swarm-vip/catalog.json

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "Collection",
2+
"type": "Catalog",
33
"id": "4dionosphere-swarm-vip",
44
"stac_version": "1.0.0",
55
"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.",
@@ -55,27 +55,6 @@
5555
"theme:Magnetosphere_Ionosphere"
5656
],
5757
"updated": "2023-03-15T16:24:03.357451Z",
58-
"extent": {
59-
"spatial": {
60-
"bbox": [
61-
[
62-
-180,
63-
-90,
64-
18,
65-
90
66-
]
67-
]
68-
},
69-
"temporal": {
70-
"interval": [
71-
[
72-
"2020-04-07T00:00:00Z",
73-
"2022-04-16T23:59:59Z"
74-
]
75-
]
76-
}
77-
},
78-
"license": "proprietary",
7958
"links": [
8059
{
8160
"rel": "via",
@@ -92,11 +71,6 @@
9271
"href": "./model-ionosphere-4dionosphere/collection.json",
9372
"type": "application/json",
9473
"title": "Semi-empiric model of ionosphere processes_SWARM"
95-
},
96-
{
97-
"rel": "parent",
98-
"href": "../collection.json",
99-
"type": "application/json"
10074
}
10175
]
10276
}

examples/4dionosphere-swarm-vip/model-ionosphere-4dionosphere/collection.json

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,21 @@
5454
},
5555
{
5656
"rel": "parent",
57-
"href": "../collection.json",
57+
"href": "../catalog.json",
5858
"type": "application/json",
5959
"title": "SWARM VIP"
60+
},
61+
{
62+
"rel": "root",
63+
"href": "../catalog.json",
64+
"type": "application/json",
65+
"title": "SWARM VIP"
66+
},
67+
{
68+
"rel": "item",
69+
"href": "./item.json",
70+
"type": "application/geo+json",
71+
"title": "example"
6072
}
6173
]
6274
}

examples/4dionosphere-swarm-vip/model-ionosphere-4dionosphere/item.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"type": "Feature",
3-
"id": "example-model",
3+
"id": "example",
44
"stac_version": "1.0.0",
55
"stac_extensions": [
66
"https://stac-extensions.github.io/osc/v1.0.0-rc.2/schema.json"
@@ -26,12 +26,25 @@
2626
],
2727
"datetime": "2023-03-15T16:24:03.357451Z"
2828
},
29+
"collection": "model-ionosphere-4dionosphere",
2930
"links": [
3031
{
3132
"rel": "parent",
32-
"href": "../collection.json",
33+
"href": "./collection.json",
3334
"type": "application/json",
34-
"title": "model-ionosphere-4dionosphere"
35+
"title": "Semi-empiric model of ionosphere processes_SWARM"
36+
},
37+
{
38+
"rel": "collection",
39+
"href": "./collection.json",
40+
"type": "application/json",
41+
"title": "Semi-empiric model of ionosphere processes_SWARM"
42+
},
43+
{
44+
"rel": "root",
45+
"href": "../catalog.json",
46+
"type": "application/json",
47+
"title": "SWARM VIP"
3548
}
3649
],
3750
"assets": {

json-schema/schema.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,17 @@
3333
}
3434
},
3535
{
36-
"$comment": "This is the schema for STAC Collections.",
36+
"$comment": "This is the schema for STAC Catalogs & Collections.",
3737
"type": "object",
3838
"required": [
3939
"type"
4040
],
4141
"properties": {
4242
"type": {
43-
"const": "Collection"
43+
"enum": [
44+
"Catalog",
45+
"Collection"
46+
]
4447
}
4548
},
4649
"allOf": [

0 commit comments

Comments
 (0)