This directory contains the gateways that transform the raw data provided by the INPS into linked data compliant with g0v financial report application profile:
Gateways are simple stand-alone php7 scripts that read a csv stream row by row from STDIN and write RDF turtle statements on STDOUT.
Gateways can be tested stand alone just with any host providing php7; e.g.:
docker run --rm -ti -v $PWD/.:/app composer bash
composer install
php gestionale.php id_ds_entrate < tests/data/entrate.csv
php gestionale.php id_ds_uscite < tests/data/uscite.csv
php categorie.php < tests/data/categorie.csv
The gateways must generate valid RDF statements in turtle (n3) or any other RDF serialization format. Check the gateway results using an online service like http://rdf-translator.appspot.com/