This repository generates an RDF data cube from data used in the the ONS' subnational indicators explorer.
- The original data provided by the ONS team is located in
datafolder. main.Redits the original data into a format suitable for generation into an RDF data cube (20220331-subnational-indicators.csv).- The
datafolder contains the output of this transform, the accompanying CSVW metadata and the turtle output which was created by runningcsv2rdfover the CSVW. - The reference-data folder contains all associated catalogue metadata and codelists.
deploy.shuses the drafter API to upload the RDF to PMD.
csv2rdf was run over the CSVW with the following command:
docker run --rm -v $PWD:/workspace -w /workspace -it gsscogs/csv2rdf \
csv2rdf -u data/20220331-subnational-indicators.csv-metadata.json -m annotated -o data/20220331-subnational-indicators.ttldeploy.sh assumes a drafter CLIENT_ID and CLIENT_SECRET are set in a .env file which is available to the script.
# .env -------------------------------------
export CLIENT_ID="<your-client-id>";
export CLIENT_SECRET="<your-client-secret>";