1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
|
interactions:
- request:
body: null
headers:
Connection:
- close
Host:
- stac-extensions.github.io
User-Agent:
- Python-urllib/3.12
method: GET
uri: https://stac-extensions.github.io/label/v1.0.1/schema.json
response:
body:
string: "{\n \"$schema\": \"http://json-schema.org/draft-07/schema#\",\n \"$id\":
\"https://stac-extensions.github.io/label/v1.0.1/schema.json#\",\n \"title\":
\"Label Extension\",\n \"description\": \"STAC Label Extension for STAC Items
and STAC Collections.\",\n \"oneOf\": [\n {\n \"$comment\": \"This
is the schema for STAC Items.\",\n \"allOf\": [\n {\n \"type\":
\"object\",\n \"required\": [\n \"type\",\n \"properties\",\n
\ \"links\",\n \"assets\"\n ],\n \"properties\":
{\n \"type\": {\n \"const\": \"Feature\"\n },\n
\ \"properties\": {\n \"allOf\": [\n {\n
\ \"$comment\": \"Require fields here for item properties.\",\n
\ \"required\": [\n \"label:properties\",\n
\ \"label:description\",\n \"label:type\"\n
\ ]\n },\n {\n \"$ref\":
\"#/definitions/fields\"\n }\n ]\n },\n
\ \"links\": {\n \"type\": \"array\",\n \"items\":
{\n \"$ref\": \"#/definitions/link_fields\"\n }\n
\ },\n \"assets\": {\n \"type\": \"object\",\n
\ \"additionalProperties\": {\n \"$ref\": \"#/definitions/fields\"\n
\ }\n }\n }\n },\n {\n \"$ref\":
\"#/definitions/stac_extensions\"\n }\n ]\n },\n {\n \"$comment\":
\"This is the schema for STAC Collections.\",\n \"allOf\": [\n {\n
\ \"type\": \"object\",\n \"required\": [\n \"type\"\n
\ ],\n \"properties\": {\n \"type\": {\n \"const\":
\"Collection\"\n },\n \"assets\": {\n \"type\":
\"object\",\n \"additionalProperties\": {\n \"$ref\":
\"#/definitions/fields\"\n }\n },\n \"item_assets\":
{\n \"type\": \"object\",\n \"additionalProperties\":
{\n \"$ref\": \"#/definitions/fields\"\n }\n }\n
\ }\n },\n {\n \"$ref\": \"#/definitions/stac_extensions\"\n
\ }\n ]\n }\n ],\n \"definitions\": {\n \"stac_extensions\":
{\n \"type\": \"object\",\n \"required\": [\n \"stac_extensions\"\n
\ ],\n \"properties\": {\n \"stac_extensions\": {\n \"type\":
\"array\",\n \"contains\": {\n \"const\": \"https://stac-extensions.github.io/label/v1.0.1/schema.json\"\n
\ }\n }\n }\n },\n \"link_fields\": {\n \"type\":
\"object\",\n \"properties\": {\n \"label:assets\": {\n \"type\":
\"array\",\n \"items\": {\n \"type\": \"string\"\n }\n
\ }\n },\n \"patternProperties\": {\n \"^(?!label:)\":
{}\n },\n \"additionalProperties\": false\n },\n \"fields\":
{\n \"type\": \"object\",\n \"properties\": {\n \"label:properties\":
{\n \"title\": \"Property\",\n \"oneOf\": [\n {\n
\ \"type\": \"array\",\n \"minItems\": 1,\n \"items\":
{\n \"type\": \"string\"\n }\n },\n
\ {\n \"type\": \"null\"\n }\n ]\n
\ },\n \"label:classes\": {\n \"title\": \"Classes\",\n
\ \"type\": \"array\",\n \"items\": {\n \"type\":
\"object\",\n \"required\": [\n \"name\",\n \"classes\"\n
\ ],\n \"properties\": {\n \"name\": {\n
\ \"title\": \"Name\"\n },\n \"classes\":
{\n \"title\": \"Classes\",\n \"oneOf\": [\n
\ {\n \"type\": \"array\",\n \"items\":
{\n \"type\": \"string\"\n }\n },\n
\ {\n \"type\": \"array\",\n \"items\":
{\n \"type\": \"number\"\n }\n }\n
\ ]\n }\n }\n }\n },\n
\ \"label:description\": {\n \"title\": \"Description\",\n
\ \"type\": \"string\",\n \"minLength\": 1\n },\n
\ \"label:type\": {\n \"title\": \"Type\",\n \"type\":
\"string\",\n \"enum\": [\n \"raster\",\n \"vector\"\n
\ ]\n },\n \"label:tasks\": {\n \"title\":
\"Task\",\n \"type\": \"array\",\n \"items\": {\n \"type\":
\"string\"\n }\n },\n \"label:methods\": {\n \"title\":
\"Method\",\n \"type\": \"array\",\n \"items\": {\n \"type\":
\"string\"\n }\n },\n \"label:overviews\": {\n \"title\":
\"Overview\",\n \"type\": \"array\",\n \"items\": {\n \"type\":
\"object\",\n \"properties\": {\n \"property_key\":
{\n \"title\": \"Property Key\",\n \"type\":
\"string\"\n },\n \"counts\": {\n \"title\":
\"Counts\",\n \"type\": \"array\",\n \"items\":
{\n \"type\": \"object\",\n \"properties\":
{\n \"name\": {\n \"title\": \"Class
Name\",\n \"type\": \"string\"\n },\n
\ \"count\": {\n \"title\": \"Count\",\n
\ \"type\": \"integer\"\n }\n }\n
\ }\n },\n \"statistics\": {\n \"title\":
\"Statistics\",\n \"type\": \"array\",\n \"items\":
{\n \"type\": \"object\",\n \"properties\":
{\n \"name\": {\n \"title\": \"Stat
Name\",\n \"type\": \"string\"\n },\n
\ \"value\": {\n \"title\": \"Value\",\n
\ \"type\": \"number\"\n }\n }\n
\ }\n }\n }\n }\n }\n
\ },\n \"if\": {\n \"properties\": {\n \"label:type\":
{\n \"const\": \"raster\"\n }\n }\n },\n \"then\":
{\n \"properties\": {\n \"label:classes\": {\n \"items\":
{\n \"properties\": {\n \"name\": {\n \"type\":
\"null\"\n }\n }\n }\n }\n
\ }\n },\n \"else\": {\n \"properties\": {\n \"label:classes\":
{\n \"items\": {\n \"properties\": {\n \"name\":
{\n \"type\": \"string\",\n \"minLength\":
1\n }\n }\n }\n }\n }\n
\ },\n \"patternProperties\": {\n \"^(?!label:)\": {}\n },\n
\ \"additionalProperties\": false\n }\n }\n}"
headers:
Accept-Ranges:
- bytes
Access-Control-Allow-Origin:
- '*'
Age:
- '5'
Cache-Control:
- max-age=600
Connection:
- close
Content-Length:
- '6847'
Content-Type:
- application/json; charset=utf-8
Date:
- Thu, 23 Jan 2025 15:04:24 GMT
ETag:
- '"61eb1dc9-1abf"'
Last-Modified:
- Fri, 21 Jan 2022 20:55:37 GMT
Server:
- GitHub.com
Strict-Transport-Security:
- max-age=31556952
Vary:
- Accept-Encoding
Via:
- 1.1 varnish
X-Cache:
- HIT
X-Cache-Hits:
- '1'
X-Fastly-Request-ID:
- 06d22412a1d1c9fe31aa6e41fdca8e8a8e1915a2
X-GitHub-Request-Id:
- 4D47:168048:F2615B:1102B6A:67925A72
X-Served-By:
- cache-den-kden1300038-DEN
X-Timer:
- S1737644665.534691,VS0,VE1
expires:
- Thu, 23 Jan 2025 15:14:19 GMT
permissions-policy:
- interest-cohort=()
x-proxy-cache:
- MISS
status:
code: 200
message: OK
version: 1
|