BiodiversiteQuebec / bdqc_taxa

`BIOQC-taxa` is a python package that interface with *Biodiversité Québec*'s database to query reference taxa sources, parse their return and generate records.
0 stars 0 forks source link

bdqc_taxa fix match_type return in taxa_ref #14

Closed BenMerSci closed 6 months ago

BenMerSci commented 6 months ago

In the API call to gnr, it returns "duplicated" results because it also matches with synonyms for example Bubo scandiacus and Bubo scandiaca if we call for Bubo scandiacus. The branch with the synonym is however already "corrected" by gnr so it returns two identical branch except that the match_type for the branch of the synonym is None instead of exact.

This is a problem because the match_type exact is used down the line in the taxonomic pipeline to only display vernacular names that are match_type exact (not yet implemented in Atlas, but it is in Coleo. Should fix the problem mentioned in https://github.com/ReseauBiodiversiteQuebec/atlas-db/issues/122) and:

TODO: