factsmission / synospecies

Using Plazi Data to find currently accepted scientific names
https://synospecies.plazi.org/
MIT License
5 stars 1 forks source link

include vernacular names in Synospecies #89

Closed myrmoteras closed 6 months ago

myrmoteras commented 1 year ago

there is an interest in the wider public to be able to find names linked to a vernacular names

see also https://github.com/plazi/treatmentBank/issues/65

nleanba commented 6 months ago

If vernacular names are given*, they are displayed in Synospecies. Searching for vernacular names is not yet possible in the ui, but the follwing query (use in advanced tab) can be used to get the taxon-names for a given vernacular name:

PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
SELECT DISTINCT ?tn WHERE {
  ?tn dwc:vernacularName ?vn .
  FILTER (str(?vn) = "Zwergfledermaus")
}

Note that the string has to be an exact match, whether fuzzy searching is possible (and how to do it) depends on the endpoint.

*note: currently, synospecies only knows of the (few) vernacular names listed in https://github.com/plazi/treatments-rdf/blob/main/vernacular/bats.ttl. I will create an issue in gg2rdf to get vernacular names from the xml.

nleanba commented 6 months ago

Update: gg2rdf produces now vernacular names, a list of all taxon-names with vernacular names can be generated with

PREFIX dwc: <http://rs.tdwg.org/dwc/terms/>
SELECT DISTINCT ?tn (GROUP_CONCAT(DISTINCT ?vn; separator="; ") as ?vernacular_names) WHERE {
  ?tn dwc:vernacularName ?vn .
}
GROUP BY ?tn
nleanba commented 6 months ago

Open todo: Synospecies currently only displays vernacular Names with an associated language, it shiuld also display those without.

klausriede commented 6 months ago

Notabene: vernacular names are often more stable than scientific names...example: birds