-
Notifications
You must be signed in to change notification settings - Fork 47
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
Priority: child links vs. collections #388
Comments
In the current implementation of STAC Browser is prioritizing to a default view., but since there are different approaches/implementations then the possibility to choose which way to go is the most sensible. I believe this is connected with every discussion/issue concerning Browseable API |
I think Browsable is something different, it doesn't say whether childs or collections are to be preferred, IMHO it just says that you can reach everything via links/collections that you can search for. |
Exactly. My point was that no view should be prioritized over the other. |
Well, but the browser and whatever other software attached to the APIs needs to know which view to prioritize or it won't know what to show. I'm not sure that adding a new field would be the best way to go. It may be too specific for the specs. From my point of view in this part of the specs it should be suggested to put mandatory one of the following options:
This way it should be obvious what is the needed behavior. |
At this moment collection, catalog and subcatalog are equally "seen" by the API specs, so I dont get why in the landing page there should be a link to data (aka. collections) and I am not sure where should the (sub)catalogs reside. Calling |
STAC follows Hypermedia, which basically says you can explore everything just by following links. The /collections endpoint can only return Collections. What is your usecase around the (sub)catalogs? I don't quite get it, but I'm hearing it now for the second time (also from @chiarch84) and I'm somewhat confused. Could we discuss this in the next STAC community meeting? (27.2. 17:00 CET - @iliion @chiarch84 @philvarner ) |
Here the past discussion where our usecase was explianed and where it was suggested to use the same endpointfor both collections and catalogs. |
To answer to this question in fact catalogs have a subset of fields of the collections, so in fact catalogs fields are also collections field. |
The type field conflicts though! Otherwise, I've answered in the other issue. |
by the way, happy to discuss it directly in a meeting. |
yes I agree and I think I understood the situation. What you are practically saying is that there is no room for catalogs right now (although we have a working implementation). @chiarch84 One possible solution is to return the catalogs with @m-mohr Maybe a |
Ok. I just saw that STAC API Spec has also a |
Yes, indeed. You can of course implement that, but it violates the spec and clients may get confused by it or may completely reject such an endpoint.
No, the link only specifies a proposed path for accessing specific catalogs easily, but it does NOT define a /catalogs endpoint to list all sub-catalogs. (Generally, this recommendation is not defined and explained very well, I'll open a separate issue for it. Edit: See #398) I'm just trying to clarify misunderstandings here, I'm not sure myself what a good solution could look like, but I'm pretty sure that given the RC status of the API, it would be in an extension. |
Hi @m-mohr May i ask how to participate? Where is this meeting held? |
@iliion It's held at https://meet.google.com/bfn-dssc-mjd |
In client applications such as STAC Browser we have two sources for catalogs and collections:
I've seen implementations where the implementors want different behavior for the client:
My first thought was to add a config option in STAC Browser to configure this, but on the other hand I'm wondering whether that's something that is of broader interest and may result in a new field or a set of conformance classes?
The text was updated successfully, but these errors were encountered: