-
Notifications
You must be signed in to change notification settings - Fork 180
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
Collection and Catalog inheritance #1082
Comments
That Collections can't be a root seems also be to be an issue, but more for the API, right? Why should we restrict that? |
@m-mohr not sure what you mean, in an API you'd always have a root catalog. |
That's what I meant to express. Root catalogs should be allowed to be Collections. It is allowed since 0.6, why drop this now? I don't see a good reason. (Dropping inheritance for the type field is not a good reason IMHO.)
Why? Is this just because the name is "root catalog" and not "root catalog or collection"? It feels like the addition of |
Correct a root Catalog is a "Catalog", not a Collection. If we want to define that a Root can be Catalog or Collection that's fine, but as it stands I don't think a Collection can act as a root Catalog because it's not a Catalog. |
+1 to define a root catalog to also be a collection. Intent of the change
to me was to have everything operate as it has before. So we should change
the definition to say the root can be a catalog or a collection.
…On Thu, Apr 8, 2021, 3:09 AM Matthias Mohr ***@***.***> wrote:
That's what I meant to express. Root catalogs should be allowed to be
Collections. It is allowed since 0.6, why drop this now? I don't see a good
reason. (Dropping inheritance for the type field is not a good reason IMHO.)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1082 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADDL2MYFCV2DQF6WI6MXXTTHV6HNANCNFSM42NOVNXQ>
.
|
Does it make sense to word this as saying that a Collection can act like a Catalog? Or do we explicitly state that a root object can be a Catalog or Collection? |
I think we should say both. I do think we should be explicit that a root object can be caalog or collection. |
@matthewhanson can you say more about "a root Catalog is a "Catalog", not a Collection" ? Where is that specified? I think this has more to do with slippage about catalogs vs. Catalogs than it does to do with the type and broken inheritance. |
@jisantuc I think you are probably right, a root Catalog has been referred to as a capital-C Catalog, implying that it is a STAC Catalog. Maybe it's just a root catalog, where catalog can be Catalog or Collection. Which is fine, if not a tad confusing |
Just looked through the occurrences for root and there's definitely room to improve a number of them. I can take on going through and improving, will make a PR |
Finds most occurances: |
We recently talked about changing the spec so that Collection does not inherit from Catalog, but I'm having trouble finding where there was wording changes to reflect that. There also doesn't appear to be anything in the CHANGELOG about it.
@pgadomski pointed out where the spec still allows a root link to point to a Collection. But since a Collection is no longer a Catalog, it cannot serve as a root catalog.
The text was updated successfully, but these errors were encountered: