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

Decide on an Item <-> Asset linking structure. #22

Closed
lossyrob opened this issue Oct 30, 2017 · 3 comments
Closed

Decide on an Item <-> Asset linking structure. #22

lossyrob opened this issue Oct 30, 2017 · 3 comments
Assignees

Comments

@lossyrob
Copy link
Collaborator

At the end of the Boulder Sprint, we came up with a number of ideas for linking together Assets and Items. We need to finalize that linking concept and codify it into the spec.

@lossyrob
Copy link
Collaborator Author

One idea is what was present in the diagram below, and was codified in the NAIP example hacked together at the Boulder Sprint:

20171025_120214

  • Items contain links. Links are an object that contains at least a rel and an href property.
  • The rel describes the relationship of the link to the current Item.
  • The href points to either an Item JSON, an Asset JSON, or the bare asset itself (e.g. a GeoTiff).
  • rel=asset links can have additional properties that describe the asset, such as format or product. These would be inlining the Asset json directly into the link, in which case the href points directly to the asset file.

In this way, we can have links handle both assets and other links (such as thumbnails). Thoughts?

@lossyrob
Copy link
Collaborator Author

lossyrob commented Nov 9, 2017

Proposal described here and here

@cholmes
Copy link
Contributor

cholmes commented Nov 29, 2017

Closing this, decision was made to not get too crazy with items that only contain assets and not other metadata. Though there likely are some good use cases to model things in Item hierarchy more. But it's not the core recommendation at this moment.

@cholmes cholmes closed this as completed Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants