dwc/build
Peter Desmet 8d657e4827 Correct HTML validation errors 2015-03-13 15:39:13 +01:00
..
README.html Add a simple markdown site generator script, see https://github.com/tdwg/dwc/issues/76 2015-01-15 22:12:50 +01:00
README.md Write script readme and migrate xml guide to new design 2015-01-14 18:24:08 +01:00
buildsite.py Improve site generator to use simple file metadata in capital words at the top of the MD file. Detect menu entry automatically based on path 2015-01-16 15:50:55 +01:00
dc.yaml Update inline link anchor regex to avoid brackets and ending dots 2015-01-13 17:45:57 +01:00
footer.inc Improve site generator to use simple file metadata in capital words at the top of the MD file. Detect menu entry automatically based on path 2015-01-16 15:50:55 +01:00
header.inc Update header.inc 2015-01-16 16:15:42 +01:00
requirements.txt Add a simple markdown site generator script, see https://github.com/tdwg/dwc/issues/76 2015-01-15 22:12:50 +01:00
term_order.yaml update yaml and implement graph/yaml consistency check. Add local bootstrap assets 2015-01-13 14:33:37 +01:00
term_type.yaml Adding generation of resources files to update script 2015-01-13 16:58:50 +01:00
terms.tmpl Correct HTML validation errors 2015-03-13 15:39:13 +01:00
update_terms.py Write script readme and migrate xml guide to new design 2015-01-14 18:24:08 +01:00

README.md

The build folder contains a python script to rebuild the terms index page and all resources. It will use the current terms/dwc_normaltive.rdf and some yaml configurations inside this build folder for term definitions and order.

Run the script

Install the required libraries for this script with PIP once: $ easy_install pip $ sudo pip install -r requirements.txt

To run the script just run it from inside the build folder: $ ./update_terms.py

Adding new terms

Simple changes for definitions should just be done in the RDF file. In case a DwC term has been renamed, removed or added this also needs to be reflected in the following files:

dc.yaml

This file contains the Dublin Core terms to be used in the record level group in the right order and their DwC definitions.

term_order.yaml

This file contains a nested list of all DwC terms to be shown in the terms index. The order and grouping of terms is defined here, but the definitions and other metadata is taken from the dwc_normative.rdf

term_type.yaml

In order to generate the postgres sql table definition the script needs to know all data types different from the default text. This file contains a list of those terms with the exact data type as used in postgres.

TODO

  • add DOI explanations