ckanext-stadtzh-harvest
Harvester for the City of Zurich.
Loads data from “dropzones” (mounted network drives) where each folder is considered a dataset.
Features
Each dataset has:
- meta.xml (required) with fields: titel, beschreibung, rechtsgrundlage, lizenz, raeumliche_beziehung, aktualisierungsintervall, aktualisierungsdatum, datentyp, erstmalige_veroeffentlichung, kategorie, lieferant, zeitraum, quelle, datenqualitaet, aktuelle_version, bemerkungen, attributliste, schlagworte, ressourcen
- link.xml (optional) for APIs/services (WMS, WFS)
- XSD schema validation for meta.xml and link.xml
Requirements
Installation
To install ckanext-stadtzh-harvest:
- Activate your CKAN virtual environment.
- Clone the source and install it:
git clone https://github.com/opendatazurich/ckanext-stadtzh-harvest.git
cd ckanext-stadtzh-harvest
pip install -e .
pip install -r requirements.txt
- Add
stadtzh_harvest to the ckan.plugins setting in your CKAN config file.
- Restart CKAN.
Harvest Config
JSON configuration for harvester:
{
"data_path": "/path/to/dropzone",
"metafile_dir": "meta",
"update_datasets": true,
"update_date_last_modified": true,
"dataset_prefix": "stadt-zurich",
"delete_missing_datasets": false
}
Documentation
http://opendatazurich.github.io/ckanext-stadtzh-harvest/
License
AGPL-3.0