Trait data of selected accessions
Embedded Genesys uses AccessionFilter
to limit its scope, this is usually by { institute: { code: [ .. ] } }
, but can also be by { crop: [ .. ] }
.
Listing datasets of accessions
There are two aspects to this issue: the first is to just find the Set<UUID> datasets
for the accession filter. The list of published datasets where the accession is documented is stored in accession.datasets
, but it should be further filtered to only return Amphibian datasets.
The service method needs to use caching for the one argument: filter
.
The second is an API endpoint in DatasetController
that returns Page<Datasets>
using the Set<UUID> datasets
.
Listing descriptors of accessions
Add an API endpoint in DatasetController
that returns Page<Descriptor>
of all datasets from Set<UUID> datasets
for the filter
.
New endpoint to query Amphibian
We need to be able to query Amphibian to return observations for selected descriptors in selected datasets for selected accessions, while applying the filters for the selected traits.
- This is very similar to returning observations for one accession, just that we now need to return more rows
- Pagination will be an interesting challenge
- Observations from different datasets need to be merged under the same descriptor
This will allow us to find all datasets and all traits for the selected accessions.
From here, we can allow the user to:
- (Optionally) De-select some of the datasets
- Select the descriptors of interest
- This is a mandatory step
- (Optionally) specify filters for the selected trait descriptors
- Query Amphibian to return observations for selected descriptors in selected datasets for selected accessions, while applying the filters for the selected traits
- With this we are able to data from across datasets and display it