ckanext-csvtocsvw
Extension automatically generating CSVW metadata for uploaded textual tabular data. It uploads the data of the first table documented into a datastore for the source CSV file. Should be used as replacement for DataPusher.
Requirements
Needs a running instance of the CSVToCSVW Application. Point at it through env variables. Also needed is an API Token for an account with the right privileges to make the background job work on private datasets and resources.
CKANINI__CKANEXT__CSVTOCSVW_URL=http://${CSVTOCSVW_HOST}:${CSVTOCSVW_APP_PORT}
CKANINI__CKANEXT__CSVTOCSVW__CKAN_TOKEN=${CKAN_API_TOKEN}
You can set the default formats to annotate:
CKANINI__CKANEXT__CSVTOCSVW__FORMATS="csv txt asc"
Default formats: csv, txt, asc, tsv
Purpose
Reacts to CSV files uploaded:
- /annotate creates CSVW annotation file for a CSV in JSON-LD format
- /transform utilizes CSVW metadata to transform CSV content to RDF
Compatibility
| CKAN Version |
Compatible |
| 2.9 and earlier |
not tested |
| 2.10 |
yes |
| 2.11 |
yes |
Installation
- Activate your CKAN virtual environment
pip install ckanext-csvtocsvw
- Add
csvtocsvw to ckan.plugins
- Restart CKAN
License
AGPL-3.0