Extension Data.gov.mk


Extension Basics

Title
Data.gov.mk
Name
ckanext-datagovmk
Type
Public extension
Description
Extension for the Macedonian open data portal (data.gov.mk), providing custom schemas, DCAT-AP profile and dataset management features.
CKAN versions
Download-Url (zip)
Last commit
3 years ago (2022-07-15 13:16:10)
Url to repo
Category
Regional Government Themes


Background Infos

Description (long)
Show details

ckanext-datagovmk

Extension for the Macedonian open data portal (data.gov.mk).

Prerequisites (must install first)

  1. ckanext-schemingpip install -e "git+https://github.com/keitaroinc/ckanext-scheming.git@dgm-ckan2.9#egg=ckanext-scheming"
  2. ckanext-repeatingpip install -e "git+https://github.com/keitaroinc/ckanext-repeating.git#egg=ckanext-repeating"
  3. ckanext-dcatpip install -e "git+https://github.com/keitaroinc/ckanext-dcat.git#egg=ckanext-dcat"
  4. ckanext-mk_dcatappip install -e "git+https://github.com/keitaroinc/ckanext-mk_dcatap#egg=ckanext-mk_dcatap"

Plugin order in ckan.plugins

ckan.plugins = <other plugins> dcat datagovmk scheming_datasets repeating mk_dcatap

Installation

  1. Activate virtualenv
  2. pip install ckanext-datagovmk
  3. Add datagovmk to ckan.plugins
  4. Restart CKAN
  5. Copy solr schema: cp solr/schema.xml /opt/solr/server/solr/ckan/conf/schema.xml
  6. Create DB tables: ckan -c ../path/to/ini/file datagovmk initdb
  7. Populate custom tables (one-time):
    • paster --plugin=ckanext-datagovmk sort_organizations -c ../path/to/ini/file
    • paster --plugin=ckanext-datagovmk sort_groups -c ../path/to/ini/file

Configuration

scheming.dataset_schemas = ckanext.mk_dcatap:mk_dcatap_schema.json
scheming.presets = ckanext.scheming:presets.json ckanext.repeating:presets.json
ckanext.dcat.rdf.profiles = mk_dcat_ap
ckanext.datagovmk.osm_overpass_url = https://lz4.overpass-api.de/api/interpreter
ckanext.datagovmk.site_admin_email = sysadmin@example.com
ckanext.datagovmk.authority_file_max_size = 50
smtp.server = <server_name>:<port>
smtp.user = full_email_address
smtp.password = password
smtp.mail_from = email_address
smtp.starttls = True

Testing

pytest --ckan-ini=test.ini ckanext/datagovmk/tests/

License

AGPL-3.0

Version
0.0.1
Version release date
2021-05-10
Contact name
Keitaro AB
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Requires ckanext-scheming, ckanext-repeating, ckanext-dcat, and ckanext-mk_dcatap. Custom Solr schema required. Database initialization needed via ckan datagovmk initdb.

Plugins to configure (ckan.ini)
datagovmk
CKAN Settings (ckan.ini)
# scheming.dataset_schemas = ckanext.mk_dcatap:mk_dcatap_schema.json
# scheming.presets = ckanext.scheming:presets.json ckanext.repeating:presets.json
# ckanext.dcat.rdf.profiles = mk_dcat_ap
# ckanext.datagovmk.osm_overpass_url = https://lz4.overpass-api.de/api/interpreter
# ckanext.datagovmk.site_admin_email = sysadmin@example.com
# ckanext.datagovmk.authority_file_max_size = 50
DB migration to be executed
datagovmk initdb
<< back to Extensions