radiantearth / stac-spec

SpatioTemporal Asset Catalog specification - making geospatial assets openly searchable and crawlable
https://stacspec.org
Apache License 2.0
757 stars 180 forks source link

Assign specific media types to relation types #1259

Closed m-mohr closed 2 months ago

m-mohr commented 9 months ago

Related Issue(s): None

Proposed Changes:

Clarified which media types should be used for the hierarchical relation types.

Intention is to make clients more aware of checking media types as with OGC API - Records etc. we'll run more and more into examples where the media types could be different.

Example with a child link with JSON & HTML media types: https://api.weather.gc.ca/stac/?f=json or as a JSON excerpt:

{
   "type":"Catalog",
   ...
   "links":[
      {
         "rel":"child",
         "href":"https://api.weather.gc.ca/stac/msc-datamart?f=json",
         "type":"application/json"
      },
      {
         "rel":"child",
         "href":"https://api.weather.gc.ca/stac/msc-datamart",
         "type":"text/html"
      }
   ]
}

Nothing in the spec disallows this, I think. And we should not disallow it iMHO, to keep compliant with OGC API - Records.

PR Checklist:

m-mohr commented 2 months ago

Yes, we should probably add what @gadomski proposed.

m-mohr commented 2 months ago

@gadomski Added in https://github.com/radiantearth/stac-spec/pull/1259/commits/80b75c98c923769ca2b5021b5b3baafcc3596a0d

m-mohr commented 2 months ago

@gadomski Fixed, please re-review.