Manages data storage for CKAN/DCOR (import, symlink, etc.)
Project description
This plugin manages how data are stored in DCOR. There are two types of files in DCOR:
Resources uploaded by users, imported from figshare, or imported from a data archive
Ancillary files that are generated upon resource creation, such as condensed DC data, preview images (see ckanext-dc_view).
This plugin implements:
Data storage management. All resources uploaded by a user are moved to /data/users-HOSTNAME/USERNAME/PACKAGE_NAME/RESOURCE_FILENAME and symlinks are created in /data/ckan-HOSTNAME/resources/RES/OUR/CEID. CKAN itself will not notice this. The idea is to have a filesystem overview about the datasets of each user.
Importer datasets from figshare. Existing datasets from figshare are downloaded to the /data/depots/figshare directory and, upon resource creation, symlinked there from /data/ckan-HOSTNAME/resources/RES/OUR/CEID (Note that this is an exemption of the data storage management described above). When running the following command, the “figshare-import” organization is created and the datasets listed in figshare_dois.txt are added to CKAN:
ckan -c /etc/ckan/default/ckan.ini import-figshare
Please make sure that the necessary file permissions are given in /data.
Installation
pip install ckanext-dcor_depot
Add this extension to the plugins and defaul_views in ckan.ini:
ckan.plugins = [...] dcor_depot ckan.dcor_depot_path = /data/depots ckan.dcor_user_depot_name = users-HOSTNAME
This plugin stores resources to /data:
mkdir -p /data/depots/users-$(hostname) chown -R www-data /data/depots/users-$(hostname)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ckanext-dcor_depot-0.7.0.tar.gz
.
File metadata
- Download URL: ckanext-dcor_depot-0.7.0.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a070a7df487d09bd00099ef2c88ed95886fc4ae76932f596654ceb00aa6ca93 |
|
MD5 | 1de32674353393d8f9bc19848e07424d |
|
BLAKE2b-256 | 11d6a0200b02af1aefa4561e614a8a9823da1d68fd39e08ebc79b07de91f07ad |
File details
Details for the file ckanext_dcor_depot-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: ckanext_dcor_depot-0.7.0-py3-none-any.whl
- Upload date:
- Size: 27.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 65dc3f0e7d493201e207df8da65b89be90adb1357ab8688188449e90f6059b9a |
|
MD5 | 6d0055e4f606af8eeb951d4d732eff93 |
|
BLAKE2b-256 | 9ecc4647e12e6128752570065fcf9a5caedf1a556273d06b40808f630fc3a7b4 |