Skip to main content

No project description provided

Project description

Tests

ckanext-iso19115

Export dataset into ISO 19115 XML.

Requirements

Compatibility with core CKAN versions:

CKAN version Compatible?
2.9 yes
2.10 yes

Installation

To install ckanext-iso19115:

  1. Install it into virtualenv:

    pip install ckanext-iso19115
    
  2. Add iso19115 to the ckan.plugins.

Config settings

None at present

# Storage path for pre-compiled schema definition
# (optional, default: somewhere inside system's tempdir).
ckanext.iso19115.misc.cache_dir = /var/data/iso19115_cache

Usage

Customize the way of mapping dataset into ISO 19115 by implementing IIso18115 interface.

from ckanext.iso19115.interfaces import IIso19115

class Iso19115(p.SingletonPlugin):
    p.implements(IIso19115, inherit=True)

    def iso19115_metadata_converter(self, data_dict: dict[str, Any]):
        return Converter(data_dict)

Converter must be defined as a sub-class of ckanext.iso19115.converter.Converter. It already contains some basic logic that can be used as a starting point for extension.

API

iso19115_package_show

Export dataset into ISO 19115 JsonML.

Format can be changed using format parameter of the action. Possible alternatives:

  • xml

iso19115_package_check

Check if the dataset can be rendered as a valid ISO 19115 document

Tests

To run the tests, do:

pytest

License

AGPL

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ckanext-iso19115-0.1.1.tar.gz (375.8 kB view details)

Uploaded Source

Built Distribution

ckanext_iso19115-0.1.1-py3-none-any.whl (587.5 kB view details)

Uploaded Python 3

File details

Details for the file ckanext-iso19115-0.1.1.tar.gz.

File metadata

  • Download URL: ckanext-iso19115-0.1.1.tar.gz
  • Upload date:
  • Size: 375.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.13

File hashes

Hashes for ckanext-iso19115-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b478b3b7b64ee0baba700267550a7ab828f0800fb7387a2a3726cbf63b58e875
MD5 447945e533519aeb06be10ca1de9ec02
BLAKE2b-256 8c75799f757835ee4fb9df50badf7302220353e0a4e3f858db53f09d694e0fba

See more details on using hashes here.

File details

Details for the file ckanext_iso19115-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ckanext_iso19115-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 65a6b8b9c16d0b87a0ffe886ab7508ace10c6b4370f5ad25fcc927cace9ad781
MD5 1e988a004cb006202edf084ab7303621
BLAKE2b-256 2a8b35ba9895ef5cd22685270db428091b28d42e1b779ad9878d5bd920dc5e07

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page