Tsammalex Data
This repository holds the data served by http://tsammalex.clld.org/ The data is licensed under a Creative Commons Attribution 4.0 International License.
The data is stored as collection of csv files, suitable for editing with LibreOffice.
Adding images
Adding an image is done in two steps:
- Adding a row to
images.csv
, specifying a publicly available URL to access the image in thesource_url
column (this may be a temporary GitHub repository, wikimedia commons or other publicly available webspace). - Providing the image at the specified URL for download.
Notes:
- Use the md5 hash of the image file as
id
for the row inimages.csv
. Computing this hash can be done using FCIV on Windows, with the md5sum command on Linux or with the md5 command on mac. - When a data release is created, new images will be fetched from the sources and uploaded to Edmond - the MPS' media repository.
Referential Integrity
Currently, insuring referential integrity of the data is the responsibility of the editor. In particular editors have to make sure
id
columns hold unique values,<name>__id
columns hold values which exist asid
in the referenced table,<name>__ids
columns hold comma-separated lists of values which exist asid
in the referenced table.
Upon push, referential integrity will be checked by travis-ci.
Changing the scientific name of a species
Since the id
of a species is created from its scientifc name, changing this name involves the following steps:
- Add a new species with the updated name and
id
tospecies.csv
. - Update all references to the
id
inimages.csv
andwords.csv
. - TODO redirect the old species to the new one by ...
Supplemental Data
In addition to the data managed in this repository, we fetch data from other sources to enhance the usability of the site.
- Given a proper scientific name for a species we can fetch a corresponding identifier from EOL.
- Given an EOL identifier, we can information about the biological classification of a species and a common english name.
- We also use information on terrestrial ecoregions from WWF, which can be referenced using ecoregion identifiers in the format
AT0101
. - WWF ecoregions and countries in which a species occurs can be computed by matching occurrence information from GBIF against region borders.
Notes
Notes to self:
To diff sorted lines, you may run:
diff -b <(sort words.csv) <(sort words_CN.csv)