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.post1.tar.gz (376.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file ckanext_iso19115-0.1.1.post1.tar.gz.

File metadata

File hashes

Hashes for ckanext_iso19115-0.1.1.post1.tar.gz
Algorithm Hash digest
SHA256 ceffe792ce81678c4ca77f71796671fa9c9aa544993abdf570bd8a5b6f8cf97e
MD5 cc8882d124ee4ac1b3e551830b91b807
BLAKE2b-256 3cb2ce7b4e2f36d06847c1e4c328a2a3cc066bbdb8c8f8ff66095b48bad0ec01

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for ckanext_iso19115-0.1.1.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4bf142aac2e8cb2e128ca0dc447edf05fab987846208f17caad1794f9e14f8d
MD5 9c43613922a7cd5c32f6853f1c8b7c63
BLAKE2b-256 81b07d7c59c560f46367f89f186c3255aa9e6b3fe7de599027efa69ab7c5f84e

See more details on using hashes here.

Provenance

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