stac-spec icon indicating copy to clipboard operation
stac-spec copied to clipboard

OGC API - Records alignment (license/title/datetime/type)

Open m-mohr opened this issue 2 years ago • 7 comments

I'm currently working on a crosswalk between OGC API - Records and STAC and how their "data structures" (i.e. the JSON representations of Items, Catalogs, Collections) can be better aligned.

While I've also opened a couple of issues in Records for this purpose, I think there are also a couple of links STAC could work on:

title

title is required in Records for Collections and Items. Having titles in the resources and also in the links makes the browsing experience much nicer (see STAC Browser). Titles in Catalogs/Collections and their corresponding links should be aligned anyway. So I'm wondering whether we should require the title field in Catalogs and/or Collections and/or Items. Collections should always have a title, I think. It would also be good for Catalogs to explicitly choose a title and people use the id as title pretty often aynway. For Items real titles are often not available (e.g. for satellite captures), but anyway a default title provided by the provider would be good for UX.

license

  • STAC: SPDX identifier or proprietary or various
  • OAR1: SPDX identifier, SPDX expression, other or anything(?)

Due to the divergence and the cirticism we heard a couple of times about "proprietary" for "open licenses that are non-SPDX", I'd propose to add "other" to the list of allowed values in STAC. At the same time we could also deprecate "proprietary" and/or "various"

datetime

  • STAC: datetime / stac_datetime / end_datetime (in properties)
  • Records time with various sub-schemas (top-level)

Anything we can do to allow an easier mapping between the two? Generally the mapping is doable, except if "date only" is used:

  • Single instance (date + time or date only)
  • Interval (date + time or date only)
  • Both (single instance and interval)

How do we map if only a date is present?

type

In the "item properties", OAR has a required free-form string type field (max length: 64). Would this something of interest to us? For example, to distinguish between ml-models and imagery in Radiant ML Hub?

m-mohr avatar May 30 '23 10:05 m-mohr

Crosswalk/Status: https://github.com/stac-utils/stac-crosswalks/blob/master/ogcapi-records/README.md

m-mohr avatar Sep 05 '23 15:09 m-mohr

Decisions from STAC Sprint

title

  • Having title for Collections is nice, but requiring would be a breaking change
  • Having title for Items we think should not be required and want to lobby for OAR1 to remove the requirement

license

  • Adopt other to replace proprietary
  • deprecate proprietary and various
  • Allow SPDX expressions (currently SPDX licenses aren't actually validated in STAC)

datetime

  • No change in STAC

type

  • No change in STAC

One option to promote/validate compatibility is to create an "OGC API Records Compatibility" extension which would, for example, make title and type required under properties.

matthewhanson avatar Sep 27 '23 15:09 matthewhanson

The license issue has been merged, the only unresolved piece of this ticket is that we want to lobby for OAR1 to remove the requirement of a title on Collections. Leaving this open until @m-mohr weighs in on if an issue has been opened for OAR on this.

matthewhanson avatar Nov 07 '23 17:11 matthewhanson

Can't remember whether I opened an issue, but I think I mentioned in a meeting and they were not overly convinced. Maybe it's good if someone else actually lobbies for it so that it's not just me who asks for it... @matthewhanson

m-mohr avatar Nov 07 '23 21:11 m-mohr

@m-mohr @matthewhanson What are the arguments to make title an option in collections. I may write the ticket in https://github.com/opengeospatial/ogcapi-common but I need to justify it.

emmanuelmathot avatar May 14 '24 09:05 emmanuelmathot

I'm personally for requiring title and description, because it makes for a better user experience. But OGC itself is pretty undecided if you ask WGs about title and description. Some groups (e.g. Features, I think) say both shouldn't be required because otherwise people just put nonsense titles if they don't have any meaningful titles. And then there's STAC requiring description and OAR requiring title, which are rather random choices, I think. I feel that sometimes it's a little easier to fill a description because in the worst case you could just also put a title into the description, but you'd usually not put a description into a title ;-)

m-mohr avatar May 14 '24 09:05 m-mohr

Shall we close this? @emmanuelmathot

  • I'd rather require title in STAC 2.0.
  • We did some fair amount of alignment for the license field.

m-mohr avatar Jun 27 '24 22:06 m-mohr

I agree. I created a new issue for the required title in 2.0.

emmanuelmathot avatar Jul 04 '24 12:07 emmanuelmathot