Open csadorf opened 3 years ago
Just tried this and didn't get this issue. This may be a temporary issue that can not be reliably mediated. Perhaps a better error message would be nice though?
I just tried again and the connection appeared to work, but the query fails:
Indeed, this is an issue on COD's side not correctly implementing the specification for the version they specify, where structure_features
is a mandatory field for querying.
Furthermore, this issue is the subject of #125.
Where can I report this bug so that it is resolved?
Where can I report this bug so that it is resolved?
You can try and contact @merkys. He is the main implementer of the OPTIMADE implementations related to crystallography.net.
But maybe this would indeed be valuable information to present in the client as well! To whom one shoule address issues unrelated to the client. There is usually some information available in the list of providers.
I see this issue is due to COD not handling queries on structure_features
right now. This issue is reported in COD's issue tracker as #828.
Note, COD, TCOD, and NOMAD have temporarily been "disabled" in the application as of #220.
This issue will now serve as a reminder to "activate" them again, according to compliance with the specification.
Added OMDB and OQMD since #248.
Added AFLOW and MatCloud since #277, but this is due to them not having a reachable database.
Added MPDS since #296 due to it not being supported by the filters used in the client (it doesn't support the ANY
operator, which is used to remove all assemblies
structures).
It will be added once supported by the client.
Would it be helpful if the providers dashboard also served the raw JSON from the validator? You could then exclude providers on client start-up by checking the dashboard for that day against the features you know the client requires (e.g. grepping error messages for "HAS ANY", or we could tag validation requests by the feature they test and provide a better digest).
Update: #343 has implemented some improvements so that OMDB can be re-enabled. In the process of created #343 I also tried all the other currently disabled providers, however, they are all still either missing client-critical query support or have internal implementation bugs.
Some updates on this issue. I test COD, TCOD, NOMAD, OQMD, AFLOW, JARVIS, MPDS and OMDB
structure_feature
mentioned by @merkys. The workaround is we ignore query this field specifically for COD and TCOD. @merkys could you comment here the plan you have we discussed? elasticsearch
and have some issue with the sort
we used in query.species
not returned as specification required and structure adapter failed to process it but I add a workaround similar on optimade-python-tool
to get it from species_on_sites
. We can add it back after https://github.com/CasperWA/voila-optimade-client/pull/431ANY
which used in structure_feature
. This can also be dropped from query request as COD, TCOD./info
not supported by client yet. http://aflow.org/API/optimade/v1/info/structures?response_format=json@unkcpz
- COD, TCOD still have issue with
structure_feature
mentioned by @merkys. The workaround is we ignore query this field specifically for COD and TCOD. @merkys could you comment here the plan you have we discussed?
Right, to get COD/TCOD structures without disorder you may query on NOT _cod_flags CONTAINS "disorder"
.
Right, to get COD/TCOD structures without disorder you may query on
NOT _cod_flags CONTAINS "disorder"
.
Since the structure_features
is a MUST return field for structures (unless it has changed recently?), could you bump the internal issue in your issue tracker to get this field in for your returned data?
Since the
structure_features
is a MUST return field for structures (unless it has changed recently?), could you bump the internal issue in your issue tracker to get this field in for your returned data?
I am well aware of the lack of compliance from COD/TCOD side regarding structure_features
. I am just unable to make this happen any faster now, alas.
Since the
structure_features
is a MUST return field for structures (unless it has changed recently?), could you bump the internal issue in your issue tracker to get this field in for your returned data?I am well aware of the lack of compliance from COD/TCOD side regarding
structure_features
. I am just unable to make this happen any faster now, alas.
Sorry, it wasn't to stress you out - it just seemed that the mapping of the _cod_flags
parameter to structure_features
was the solution there :) But I'm sure it's more involved than that to implement in the end.
I'd prefer to be able to use standardized OPTIMADE fields for handling the general sorting of results instead of having to use provider-specific fields, since it's a slippery slope, but I suppose it could be done for COD/TCOD for now.
But I might then also set up a CI test to run for testing structure_features
in COD/TCOD and have GitHub "add" you whenever the test fails... 😆 😅 just kidding, of course 😅
Sorry, it wasn't to stress you out - it just seemed that the mapping of the
_cod_flags
parameter tostructure_features
was the solution there :) But I'm sure it's more involved than that to implement in the end.
No problem :) The trouble here is that COD and OPTIMADE concepts are not 1:1-relatable. The filter I gave earlier excludes most of the disordered structures, but certainly not all of them.
I'd prefer to be able to use standardized OPTIMADE fields for handling the general sorting of results instead of having to use provider-specific fields, since it's a slippery slope, but I suppose it could be done for COD/TCOD for now.
I completely share the preference for standardization :) However, it cannot be properly done right now.
But I might then also set up a CI test to run for testing
structure_features
in COD/TCOD and have GitHub "add" you whenever the test fails... laughing sweat_smile just kidding, of course sweat_smile
Oh noes :sweat_smile: Some time ago there were talks of introducing badges of shame :sweat_smile:
I just (2020-11-04 14:35 CEST) tried to perform a search query on the COD database via the OPTIMADE client hosted here, which failed with the following error message: