-
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
Include properties in response upon requests #184
Comments
Thinking a bit about this, is it better to formulate it this way?:
Both "existing" implementations complained about the cost of producing coordinate data for large amounts of entries when the user didn't explicitly need it, so it is my impression from our OPTiMaDe videocall that this needs to be addressed for v1.0. Hence, I'm marking it with the 1.0 milestone. |
Agree. We already have attributes Requirements/Conventions for all the properties, thus we just need to agree on the set of properties which should have 'SHOULD NOT be present unless explicitly included'.
Thanks - I was about to bring this issue up myself. |
My point here was that we may want to instead agree on the set of properties that are present "by default" in the response. And then have general text that says that all others "SHOULD NOT" be present unless explicitly included. |
Sounds reasonable. From the point of view of COD, all current fields could by present by default except:
|
This all seems like a very valuable addition to the specification indeed.
In which case will
For all others it can make sense 👍 |
Exactly. In the general case to us there is no better way to get the value of |
@merkys if I understand this correctly, the issue for you is that your database uses non-equivalent atom form, right? So, doesn't this form require the multiplicity of each non-equivalent site to be given? Or, at least, the Wyckoff name from which the multiplicity follows? So, while I understand that generating the full
Edit: also taking account for sites without full occupancy in the pseudocode. |
It's true, though both multiplicities and Wyckoff positions tend to be absent in CIF files. Moreover, not always these pieces of data can be trusted. We have observed that different programs use the same multiplicity fields to store ontologically different data. |
Ok, thanks @merkys, thas is a fair point for not including Who writes up the PR? It needs to update the text about what is included in the response, and then in the relevant property subsections of section 6 indicate for the small set of "default" properties that they are part of that set. |
I can take it. |
Due to some properties being either derived on the fly or very voluminous (for example coordinates), it might be useful to make certain properties excluded from responses by default, but added upon request. This could be implemented by reusing
response_fields
: if a field is excluded by default, but mentioned inresponse_fields
, it MUST be present in the response.The text was updated successfully, but these errors were encountered: