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

Filter records based on trait data (Bushfire data too) #24

Open
nickdos opened this issue Sep 9, 2022 · 1 comment
Open

Filter records based on trait data (Bushfire data too) #24

nickdos opened this issue Sep 9, 2022 · 1 comment
Assignees
Labels
back-end SOLR, ES, Node front-end React good first issue Good for newcomers

Comments

@nickdos
Copy link
Collaborator

nickdos commented Sep 9, 2022

Has a requirement on trait data being imported into the SOLR index.

Initially, this should be another drop-down option to filter by a handful of trait types.

Edit: see AusTraits info from David C:

I'm attaching some resources that will help give an introduction to the AusTraits database and some of the ways you might like to access our data.

Firstly, the AusTraits Zenodo page doi.org/10.5281/zenodo.3568417 has a "Files" section if you scroll to the bottom of the page, with the entire database in .csv format (as a zip file) and as an .rds R object file. I've attached a copy of the database dictionary and trait dictionary which are really helpful for searching through to find the meanings of terms used in AusTraits.

You can also interact with the existing endpoints of the API. The link here takes you to a Swagger summary of the API with some point-and-click examples of how to download the AusTraits data in different formats.

I would recommend starting with /download-taxon-data endpoint which downloads all trait data for a given taxon in a single .csv file with some key metadata fields.

Nick, I tried downloading a couple of fire traits (fire_response and fire_response_detailed) for every taxon into a .csv file using the /download-trait-data endpoint. There was a ~ 5 second delay on my laptop but it returned the complete 56 MB spreadsheet ok. I guess if you were going to call it frequently, it might be worth just downloading the entire database from Zenodo.

@nickdos nickdos added good first issue Good for newcomers front-end React back-end SOLR, ES, Node labels Sep 9, 2022
@nickdos nickdos self-assigned this Sep 9, 2022
@nickdos
Copy link
Collaborator Author

nickdos commented Sep 9, 2022

Nigel's user story example:

As a bush fire researcher I want to filter the ARGA species list so that I can see which species have bush fire resistant traits

nickdos added a commit that referenced this issue Sep 27, 2022
nickdos added a commit that referenced this issue Sep 28, 2022
nickdos added a commit that referenced this issue Sep 30, 2022
Conservation values are now working
nickdos added a commit that referenced this issue Oct 4, 2022
@nickdos nickdos changed the title Filter records based on trait data Filter records based on trait data (Bushfire data too) Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
back-end SOLR, ES, Node front-end React good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant