NaturalHistoryMuseum/ckanext-statistics

Name: ckanext-statistics

Owner: Natural History Museum

Description: Natural History Museum Data Portal stats plugin

Created: 2017-09-14 16:09:32.0

Updated: 2017-09-19 16:23:35.0

Pushed: 2018-03-19 16:33:58.0

Homepage: null

Size: 46

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

ckanext-statistics

API for accessing Natural History Museum Data Portal statistics.

Download statistics API

://data.nhm.ac.uk/api/3/action/download_statistics

Displays number of download events & records downloaded for the collections, research and GBIF datasets.

Parameters:

Download statistics can be filtered by date.

://data.nhm.ac.uk/api/3/action/download_statistics?year=2017&month=08

Dataset statistics API

Provides total number of records across all datasets.

://data.nhm.ac.uk/api/3/action/dataset_statistics
API Parameters:

Dataset statistics can be filtered by resource ID.

://data.nhm.ac.uk/api/3/action/dataset_statistics?resource_id=05ff2255-c38a-40c9-b657-4ccb55ab2feb

Commands

GBIF Download statistics are collected by a paster command:

er --plugin=ckanext-statistics statistics gbif -c /etc/ckan/default/development.ini

This runs daily on CRON.

TODO:


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.