-
Notifications
You must be signed in to change notification settings - Fork 37
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
Links to files #211
Comments
Looks all right to me 👍 |
I was also thinking about the best way of doing this, but to return multiple files. Do I need a separate key per file in this scheme (as example 1 below) or is this better suited to using the 1/
2/
|
Maybe |
You are right, it's better to think how to support any number of files. My initial idea was the same as shown in your first example, but I don't like the idea of allowing any keys under
I agree. |
Since we are now using the To continue on @ml-evs model (2), it seems to me that these are indeed relationships to files, rather than relationships to "links"/urls. So, how about:
The end result would thus be more like (with an
(Note: as I am typing this up, I realize that our present description of how to do relationships with descriptions isn't fully clear. Where should that |
I like this a lot. Introducing |
I'd support the addition of an optional I think it would be nice to have some way of grouping files together with an extra field without having to rely on the descriptions. A field, say,
|
I am uncomfortable adding a lot to the resource object identifiers. Already adding the However, I recognize your need for having a grouping option, but this could surely be done by filtering on Also, don't the |
Typed this up too quickly, meant for kind to only be an attribute under |
Briefly, the suggestion of a "files datatype with properties such as |
I assume this feature to be a post-v1.0 addition. I will draft the proposal later, as we're in feature freeze right now. Or should we rush this feature to v1.0? |
In the COD the primary description of a structure is a Crystallographic Information Framework (CIF) file. Thus we at the COD desire a standard method to present a link to such file in OPTiMaDe entries. In JSON API format I suggest using links, for example:
Thus
links/file
would be a JSON API link object. A link object would containhref
field with URL andmeta/type
field with media type string.The text was updated successfully, but these errors were encountered: