Skip to content

Commit

Permalink
initial test harness for testing STAC/records examples
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-metalinkage committed Mar 25, 2024
1 parent e76c9dd commit 45a98bf
Show file tree
Hide file tree
Showing 10 changed files with 70 additions and 36 deletions.
26 changes: 0 additions & 26 deletions _sources/collection/context.jsonld

This file was deleted.

2 changes: 1 addition & 1 deletion _sources/collection/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'STAC Collection'
allOf:
# - $ref: bblocks://ogc.geo.common.data_types.geojson
- $ref: https://github.com/radiantearth/stac-spec/raw/master/collection-spec/json-schema/collection.json
- $ref: bblocks://ogc.api.records.core
# - $ref: bblocks://ogc.api.records.core
- type: object
properties:
links:
Expand Down
20 changes: 20 additions & 0 deletions _sources/extensions/eo/bblock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://raw.githubusercontent.com/opengeospatial/bblocks-postprocess/master/ogc/bblocks/metadata-schema.yaml",
"name": "STAC Forecast Extension",
"abstract": "This extension defines some high-level fields to get a basic understanding of weather forecast data. Some fields may also be applicable for climate forecast data, but it hasn't been written specifically for that domain.",
"status": "under-development",
"dateTimeAddition": "2023-12-08T00:00:00Z",
"itemClass": "schema",
"register": "ogc-building-block-register",
"version": "0.1",
"dateOfLastChange": "2023-12-09",
"link": "https://github.com/stac-extensions/forecast",
"sources": [
{
"title": "GitHub Repository",
"link": "https://github.com/stac-extensions/forecast"
}
],
"scope": "contrib",
"tags": ["stac", "stac-extension", "forecast"]
}
22 changes: 22 additions & 0 deletions _sources/extensions/eo/context.jsonld.wip
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"@context": {
"stac": "urn:stac:vocab#",
"raster": "urn:stac:extensions/raster#",
"sosa": "http://www.w3.org/ns/sosa/",
"qudt": "http://qudt.org/1.1/schema/qudt#",
"raster:bands": {
"@id": "raster:bands",
"@context": {
"aotk": "http://vocab.nerc.ac.uk/standard_name/atmosphere_optical_thickness_due_to_ambient_aerosol_particles/",
"grib:element": {
"@id": "sosa:observedProperty",
"@type": "@id",
"@context": {
"@base": "http://w3id.org/ogc/dev/stac-examples/bands/"
}
},
"unit": "qudt:unit"
}
}
}
}
6 changes: 6 additions & 0 deletions _sources/extensions/eo/examples.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
- title: Example of Electro-Optical using projection extension

snippets:
- language: json
ref: https://raw.githubusercontent.com/radiantearth/stac-spec/master/examples/extensions-collection/proj-example/proj-example.json
base-uri: https://example.com/stac/raster/example-1/
8 changes: 8 additions & 0 deletions _sources/extensions/eo/schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
"$schema": https://json-schema.org/draft/2020-12/schema
title: "Forecast Extension"
description: "STAC Forecast Extension for STAC Items and STAC Collections."
allOf:
- anyOf:
- $ref: ../../collection/schema.yaml
- $ref: ../../item/schema.yaml
- $ref: https://stac-extensions.github.io/raster/v1.1.0/schema.json
5 changes: 2 additions & 3 deletions _sources/extensions/raster/examples.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
- title: Example of Raster feature with Forecast extension
- title: Example of Raster item - Sentinel2

snippets:
- language: json
ref: https://raw.githubusercontent.com/stac-extensions/forecast/main/examples/item.json
base-uri: https://example.com/stac/raster/example-1/
ref: https://raw.githubusercontent.com/stac-extensions/raster/main/examples/item-sentinel2.json
5 changes: 0 additions & 5 deletions _sources/item/context.jsonld

This file was deleted.

11 changes: 10 additions & 1 deletion _sources/item/examples.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
- title: STAC simple item
- title: STAC spec simple item
content: |
This is the simple item example from the STAC specification.
snippets:
- language: json
ref: https://raw.githubusercontent.com/radiantearth/stac-spec/master/examples/simple-item.json
base-uri: 'https://example.com/stac/example1/'

- title: STAC spec core item
content: |
This is the complete "core" item example from the STAC specification.
snippets:
- language: json
ref: https://raw.githubusercontent.com/radiantearth/stac-spec/master/examples/core-item.json
base-uri: 'https://example.com/stac/example1/'
1 change: 1 addition & 0 deletions _sources/item/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
description: 'STAC Collection'
allOf:
- $ref: bblocks://ogc.geo.common.data_types.geojson
# - $ref: bblocks://ogc.api.records.core
- $ref: https://github.com/radiantearth/stac-spec/raw/master/item-spec/json-schema/item.json

0 comments on commit 45a98bf

Please sign in to comment.