Skip to content

Commit 77528ea

Browse files
Merge pull request #4 from ogcincubator/version-agnostic
Version agnostic - with assets refactored
2 parents 4b893c7 + 150a02e commit 77528ea

27 files changed

Lines changed: 266 additions & 157 deletions

_sources/collection-v1-0-0/context.jsonld

Lines changed: 0 additions & 49 deletions
This file was deleted.
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
- title: Example STAC Collection
2-
content: |
3-
STAC no longer publishes v1.0.0 examples - to be explored.
1+
- title: STAC Collection v1.0.0
2+
content: Ref to STAC example using version (1.0.0)
3+
snippets:
4+
- language: json
5+
ref: https://esa-earthcode.github.io/open-science-catalog-metadata-staging/products/polarwarp/collection.json
6+
base-uri: 'https://example.com/stac/example1/'
47
#

_sources/collection-v1-0-0/schema.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ description: 'STAC Collection V1.0.0'
33
allOf:
44
# - $ref: bblocks://ogc.geo.common.data_types.geojson
55
- $ref: https://schemas.stacspec.org/v1.0.0/collection-spec/json-schema/collection.json
6+
- $ref: bblocks://ogc.contrib.stac.collection
67
- type: object
78
properties:
89
links:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/opengeospatial/bblocks-postprocess/master/ogc/bblocks/metadata-schema.yaml",
3+
"name": "STAC Collection (v1.1.0)",
4+
"highlighted": true,
5+
"abstract": "A SpatioTemporal Asset Catalogs (STAC) collection. This building block implements validation of examples using the canonical schema and a JSON-LD context to a map to a RDF format that can support richer logical constraints and integration with related data.",
6+
"status": "under-development",
7+
"dateTimeAddition": "2023-12-08T00:00:00Z",
8+
"itemClass": "schema",
9+
"register": "ogc-incubator-building-block-register",
10+
"version": "1.1.0",
11+
"dateOfLastChange": "2023-12-09",
12+
"sources": [
13+
{
14+
"title": "STAC Specification",
15+
"link": "https://stacspec.org/en/about/stac-spec/"
16+
}
17+
],
18+
"scope": "contrib",
19+
"tags": ["stac", "collection"]
20+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- title: Example STAC Collection
2+
snippets:
3+
- language: json
4+
ref: https://github.com/radiantearth/stac-spec/raw/master/examples/collection-only/collection.json
5+
base-uri: 'https://example.com/stac/example1/'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"$schema": https://json-schema.org/draft/2020-12/schema
2+
description: 'STAC Collection V1.0.0'
3+
allOf:
4+
# - $ref: bblocks://ogc.geo.common.data_types.geojson
5+
- $ref: https://schemas.stacspec.org/v1.1.0/collection-spec/json-schema/collection.json
6+
- $ref: bblocks://ogc.contrib.stac.collection
7+
- type: object
8+
properties:
9+
stac-version:
10+
title: STAC version
11+
type: string
12+
const: 1.1.0
13+
required:
14+
- stac_version

_sources/collection/context.jsonld

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,6 @@
2424
"@id": "stac:end_datetime",
2525
"@type": "xsd:dateTime"
2626
},
27-
"assets": {
28-
"@id": "stac:hasAsset",
29-
"@container": "@set",
30-
"@context": {
31-
"thumbnail": {
32-
"@id": "stac:thumbnail"
33-
},
34-
"overview": "stac:overview",
35-
"data": "stac:data",
36-
"metadata": "stac:metadata",
37-
"type": "dct:format",
38-
"title": "dct:title",
39-
"roles": {
40-
"@id": "stac:roles",
41-
"@container": "@set"
42-
}
43-
}
44-
},
4527
"providers": "stac:hasProvider",
4628
"media_type": "dct:format",
4729
"links": "rdfs:seeAlso"

_sources/collection/examples.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
- title: Example STAC Collection
1+
- title: STAC Collection v1.1.0
2+
content: Ref to STAC example from current version (1.1.0)
23
snippets:
34
- language: json
45
ref: https://github.com/radiantearth/stac-spec/raw/master/examples/collection-only/collection.json
56
base-uri: 'https://example.com/stac/example1/'
7+
8+
- title: STAC Collection v1.0.0
9+
content: Ref to STAC example using version (1.0.0)
10+
snippets:
11+
- language: json
12+
ref: https://esa-earthcode.github.io/open-science-catalog-metadata-staging/products/polarwarp/collection.json
13+
base-uri: 'https://example.com/stac/example1/'

_sources/collection/schema.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ description: This object represents Collections in a SpatioTemporal Asset Catalo
44
allOf:
55
- "$ref": "#/definitions/collection"
66
- "$ref": "https://raw.githubusercontent.com/radiantearth/stac-spec/master/item-spec/json-schema/common.json"
7+
- $ref: bblocks://ogc.contrib.stac.components.assets
78
definitions:
89
collection:
910
title: STAC Collection
@@ -12,18 +13,13 @@ definitions:
1213
"$comment": title, description, keywords, providers and license is validated through
1314
the common metadata.
1415
required:
15-
- stac_version
1616
- type
1717
- id
1818
- description
1919
- license
2020
- extent
2121
- links
2222
properties:
23-
stac_version:
24-
title: STAC version
25-
type: string
26-
const: 1.1.0
2723
stac_extensions:
2824
title: STAC extensions
2925
type: array
@@ -90,8 +86,6 @@ definitions:
9086
- 'null'
9187
format: date-time
9288
pattern: "(\\+00:00|Z)$"
93-
assets:
94-
"$ref": "bblocks://ogc.contrib.stac.item#/definitions/assets"
9589
item_assets:
9690
additionalProperties:
9791
allOf:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/opengeospatial/bblocks-postprocess/master/ogc/bblocks/metadata-schema.yaml",
3+
"name": "Assets object",
4+
"highlighted": true,
5+
"abstract": "Assets sub-schema reused in items and collections",
6+
"status": "under-development",
7+
"dateTimeAddition": "2023-12-08T00:00:00Z",
8+
"itemClass": "schema",
9+
"register": "ogc-building-block-register",
10+
"version": "0.1",
11+
"dateOfLastChange": "2023-12-09",
12+
"sources": [
13+
{
14+
"title": "STAC Specification",
15+
"link": "https://stacspec.org/en/about/stac-spec/"
16+
}
17+
],
18+
"scope": "contrib",
19+
"tags": ["stac", "item"]
20+
}

0 commit comments

Comments
 (0)