iobis / pyobis

OBIS Python client
https://iobis.github.io/pyobis
MIT License
14 stars 10 forks source link

showing suggestions for possible results for a search query using undocumented API request #55

Open ayushanand18 opened 2 years ago

ayushanand18 commented 2 years ago

Overview

Many functions inside pyobis package demand the user to provide exact matches of scientificname, taxonid, or datasetid. While some researchers who are particularly interested in an individual record but many of the researchers who are starting up with their project may not know the exact id or scientific name to query for.

Notes

OBIS Mapper utilizes some endpoints to do the exact thing - suggest id or scientific name based on a query term.

Questions

Should we include a function in occurrences module for searching a species via keyword like say a search_keyword(term="query-term-you'd-like-to-search-for")?

and a seperate function search_keyword(term="query-term-you'd-like-to-search-for") in dataset module for searching datasets by name?

7yl4r commented 2 years ago

This is an interesting proposal. Taking a moment to imagine how it could work:

pyobis.occurrence(taxonid=pyobis.lookup_taxon('fish'))

It definitely looks appealing, but I think further efforts on data visualization and analysis should take priority over this.

ayushanand18 commented 2 years ago

Noted, thanks! We can jump on it later after we complete analysis notebooks.