this little PHP script can consume DCAT-AP.de metadata from a CKAN open data portal and convert them to csv.
- php >= 5.6
- composer https://getcomposer.org/
- Clone / Download Repository
- Run
composer install
To start the console run:
php start.php
Downloads all available package meta data from https://open.nrw/api/3/action/current_package_list_with_resources
Same as above, but limited to max. 5 packages
Display all options for get:packages (there is also a limit and offset option)
Main package information is written to
output/packages.csv
Group and tag information is available in
output/groups.csv
output/tags.csv
Currently, it is only possible to comsume data from Open.NRW as the link to the CKAN API is hardcoded.
This work was funded by Bertelsmann Stiftung. The code was written by Interactives Markus Wallisch.