Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do the relation types work for assets? #11

Closed
gadomski opened this issue Oct 13, 2023 · 2 comments
Closed

How do the relation types work for assets? #11

gadomski opened this issue Oct 13, 2023 · 2 comments
Labels
question Further information is requested

Comments

@gadomski
Copy link
Member

This extension defines some relation types, e.g. latest-version, and describes how they should be used in links. This extension also applies to Assets, which do not have a links field defined in the spec. How is this intended to work? Should assets get a links attribute to hold a latest-version link?

@gadomski gadomski added the question Further information is requested label Oct 13, 2023
@m-mohr
Copy link
Contributor

m-mohr commented Oct 13, 2023

The relation types were not meant to work for assets, only the fields are scoped as such.

  • Either you have a deprecated asset and a "new" version of it in the same STAC resource, then you usually don't really need a link, I think.
  • Otherwise, you have a deprecated asset and the "new" version of it is in another STAC resource, then you just link to the other STAC resource (and ask yourself whether your model is really making sense, because it sounds like the whole STAC resource should be deprecated).

By the way, this is not an issue specific to this extension. The same applies in STAC for for the license field, which is allowed in assets but you can't provide a license link in the assets.

@gadomski
Copy link
Member Author

Cool, thanks for the clarification. I bumped up against this issue when working in tooling (pystac), and shouldn't be a problem to implement, just a bit more complex. Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants