Skip to content

Commit

Permalink
Add mapping of Gele maskerbloem
Browse files Browse the repository at this point in the history
  • Loading branch information
damianooldoni committed Apr 22, 2024
1 parent e952513 commit 6377c0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion sql/dwc_occurrence.sql
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ SELECT
WHEN o."Sporen Waarnemingen Naam" = 'Watercrassula' THEN 'Crassula helmsii'
WHEN o."Sporen Waarnemingen Naam" = 'Moerashyacint' THEN 'Pontederia cordata'
WHEN o."Sporen Waarnemingen Naam" = 'Moerasanemoon' THEN 'Houttuynia cordata'
WHEN o."Sporen Waarnemingen Naam" = 'Gele maskerbloem' THEN 'Mimulus guttatus DC.'
-- Animalia
WHEN o."Sporen Waarnemingen Naam" = 'Muskusrat' THEN 'Ondatra zibethicus'
WHEN o."Sporen Waarnemingen Naam" = 'Muskusr. > 400gr' THEN 'Ondatra zibethicus'
Expand Down Expand Up @@ -176,7 +177,8 @@ SELECT
o."Sporen Waarnemingen Naam" = 'Afghaanse duizendknoop' OR
o."Sporen Waarnemingen Naam" = 'Watercrassula' OR
o."Sporen Waarnemingen Naam" = 'Moerashyacint' OR
o."Sporen Waarnemingen Naam" = 'Moerasanemoon' THEN 'Plantae'
o."Sporen Waarnemingen Naam" = 'Moerasanemoon' OR
o."Sporen Waarnemingen Naam" = 'Gele maskerbloem' THEN 'Plantae'
ELSE 'Animalia'
END AS kingdom
FROM occurrences AS o
Expand Down
3 changes: 2 additions & 1 deletion tests/test_dwc_occurrence.R
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ testthat::test_that("scientificName is never NA and one of the list", {
"Koenigia polystachya",
"Crassula helmsii",
"Pontederia cordata",
"Houttuynia cordata"
"Houttuynia cordata",
"Mimulus guttatus DC."
)
testthat::expect_true(all(!is.na(dwc_occurrence$scientificName)))
testthat::expect_true(all(dwc_occurrence$scientificName %in% species))
Expand Down

0 comments on commit 6377c0f

Please sign in to comment.