FAIR Data Point Harvester
CKAN harvester for FAIR Data Point. Contains a harvester for FAIR data points. In the future, the FAIR data point API might be supported by this extension too.
Requirements
- CKAN 2.9 (tested), 2.8/2.10 not tested
- ckanext-scheming
- ckanext-harvest
- ckanext-dcat
Features
The harvester runs in three stages:
- Gather stage: Uses FairDataPointRecordProvider to create list of identifiers (catalogs and datasets) for harvest
- Fetch stage: Downloads source data, may include additional data from other sources
- Import stage: Maps RDF from FAIR data point to CKAN packages/resources using application profiles
Installation
git clone https://github.com/CivityNL/ckanext-fairdatapoint.git
cd ckanext-fairdatapoint
pip install -e .
pip install -r requirements.txt
Add fairdatapoint to ckan.plugins in your CKAN config file.
Dependencies
pip install -e 'git+https://github.com/ckan/ckanext-scheming.git@release-3.0.0#egg=ckanext-scheming[requirements]'
pip install -e 'git+https://github.com/ckan/ckanext-harvest.git@v1.5.6#egg=ckanext-harvest[requirements]'
pip install -e 'git+https://github.com/ckan/ckanext-dcat.git@v1.5.1#egg=ckanext-dcat'
Harvester Configuration
Set the profile for harvesting:
{ "profiles": "fairdatapoint_dcat_ap" }
Commands
# Run harvester from command line
ckan --config=<full path to CKAN ini-file> harvester run-test <id of harvester>
# Rebuild search index
ckan --config=<full path to CKAN ini-file> search-index rebuild