Extension Wikidata Keyword


Extension Basics

Title
Wikidata Keyword
Name
ckanext-wikidatakeyword
Type
Public extension
Description
CKAN extension adding Wikidata-powered keyword field for datasets, with autocomplete search and integration with ckanext-scheming.
CKAN versions
Download-Url (zip)
Last commit
a year ago (2024-07-08 17:28:26)
Url to repo
Category
Standards Compliance


Background Infos

Description (long)
Show details

ckanext-wikidatakeyword

This extension adds Wikidata-powered keyword field in CKAN datasets.

This new extra field “Wikidata Keywords” will appear in the dataset form by the form snippet.

When displayed, each keyword will appear by the display snippet.

Requirements

This extension is only tested in CKAN 2.9 and later with ckanext-scheming installed.

Installation

To install ckanext-wikidatakeyword:

  1. Activate your CKAN virtual environment: . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-wikidatakeyword Python package: pip install -e 'git+https://github.com/depositar/ckanext-wikidatakeyword.git#egg=ckanext-wikidatakeyword'
  3. Install Python dependencies: pip install -r /usr/lib/ckan/default/src/ckanext-wikidatakeyword/requirements.txt
  4. Add wikidatakeyword and scheming_datasets to the ckan.plugins setting.
  5. Add ckanext.wikidatakeyword:presets.json to your scheming.presets: scheming.presets = ckanext.scheming:presets.json ckanext.wikidatakeyword:presets.json
  6. Configure a keyword field in a scheming schema: “`yaml
    • field_name: keywords label: Wikidata Keywords preset: wikidata_keyword “`
  7. Add templates for read.html and additional_info.html.
  8. Add a new field in your CKAN Solr schema file: xml <field name="keywords_facet" type="string" indexed="true" stored="true" multiValued="true"/>
  9. Restart CKAN and Solr.
Version
Version release date
(not set)
Contact name
depositar
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Requires ckanext-scheming (supports v3.0.0). Requires Solr schema modification to add keywords_facet field.

Plugins to configure (ckan.ini)
wikidatakeyword
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions