Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.2 KB

README.MD

File metadata and controls

40 lines (28 loc) · 1.2 KB

DCAT-AP.de to CSV

this little PHP script can consume DCAT-AP.de metadata from a CKAN open data portal and convert them to csv.

requirements

  1. php >= 5.6
  2. composer https://getcomposer.org/

install

  1. Clone / Download Repository
  2. Run composer install

usage

To start the console run: php start.php

commands

get:packages

Downloads all available package meta data from https://open.nrw/api/3/action/current_package_list_with_resources

get:packages -m 5

Same as above, but limited to max. 5 packages

get:packages -h

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

limitations

Currently, it is only possible to comsume data from Open.NRW as the link to the CKAN API is hardcoded.

acknowledgement

This work was funded by Bertelsmann Stiftung. The code was written by Interactives Markus Wallisch.