-
Notifications
You must be signed in to change notification settings - Fork 0
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
name vs title #10
Comments
I'm +1 on all this - dropping title and description and just using 'name' from common metadata. |
I'll create PR, @matthewhanson to review. |
Reconsidering this - there is already a key used in the alternate dictionary, in this case "s3". Having a name is a bit redundant, but if there is a name then Best Practices should state that the key and name should be the same. |
Hmm, I don't think I agree. Name for me is human readable with spaces, special characters, and might be localized (language extension). A key should be stable and machine-optimized. Usually, I'd put the name in a title, but it's ambiguous with the main asset title, which describes the title for the asset and usually also applies without change to the alternate asset. Example: Name (English localization of an Item: "Local filesystem" You don't want to change the asset key when you change languages in a single catalog, don't you? |
Currently, the alternate asset extension defines title and description. I think this is not ideal, due to the reasone below:
Here's an example that I've seen in the wild:
The title in the overall asset is a generic title for the file and looks fine. Providing the title again in the sub-asset doesn't make a lot of sense though, it would be the same, just hosted on S3.
STAC Browser implements this extension as a Tab interface. Showing the titles for the tabs doesn't make sense. I've implemented it as such, that it supports a
name
field to provide short labels for the tab headers.I'd actually propose to add a name field for such cases to the Alternate Asset Object.
title and description I'd remove and refer back to common metadata, saying that extensions and common metadata fields such as title and description can be used to further define the alternative asset.
The updates example would look like this:
and render as such:
See also: radiantearth/stac-browser@47dea4f
The text was updated successfully, but these errors were encountered: