Skip to content

Commit

Permalink
add logo, move docu into code
Browse files Browse the repository at this point in the history
  • Loading branch information
seebi committed Jan 6, 2025
1 parent 3c1959e commit d1c90fa
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 29 deletions.
9 changes: 4 additions & 5 deletions .idea/cmem-plugin-irdi.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,32 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)

## [Unreleased]

## [0.7.0] 2025-01-06

### Changed

- move README documentation into plugin code

### Added

- logo


## [0.6.1] 2025-01-06

### Changed

- Update to plugin template 7.0.0


## [0.6.0] 2025-01-06

### Changed

- Changed counter ontology upload to use `post_streamed` instead of `post`


## [0.5.0] 2024-01-03

### Added
Expand Down
8 changes: 0 additions & 8 deletions README-public.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,3 @@ cmemc admin workspace python install cmem-plugin-irdi
[copier]: https://copier.readthedocs.io/
[copier-shield]: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-grayscale-inverted-border-purple.json

## Plugin Usage

- All fields of the IRDI are configurable, minus `Item Code`, which is created by the plugin
- Created IRDIs are unique per configuration
- Specify a graph that stores the state of `Item Codes`
- Input and output paths are configurable
- if no input path is configured, values are read from the URIs of the input (Transformation Input)

8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@ Create unique International Registration Data Identifier (IRDI).
- Use [pre-commit](https://pre-commit.com/) to avoid errors before commit.
- This repository was created with [this copier template](https://github.com/eccenca/cmem-plugin-template).

## Plugin Usage

- All fields of the IRDI are configurable, minus `Item Code`, which is created by the plugin
- Created IRDIs are unique per configuration
- Specify a graph that stores the state of `Item Codes`
- Input and output paths are configurable
- if no input path is configured, values are read from the URIs of the input (Transformation Input)

[cmem-link]: https://documentation.eccenca.com
[cmem-shield]: https://img.shields.io/endpoint?url=https://dev.documentation.eccenca.com/badge.json
[poetry-link]: https://python-poetry.org/
Expand Down
24 changes: 17 additions & 7 deletions cmem_plugin_irdi/workflow/irdi_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import rfc3987
from cmem_plugin_base.dataintegration.context import ExecutionContext
from cmem_plugin_base.dataintegration.description import Plugin, PluginParameter
from cmem_plugin_base.dataintegration.description import Plugin, PluginParameter, Icon
from cmem_plugin_base.dataintegration.entity import (
Entities,
Entity,
Expand All @@ -23,6 +23,18 @@
# Version Identifier
VI = "001"

DOCUMENTATION = """Create unique [ECLASS](https://eclass.eu/support/technical-specification/structure-and-elements/irdi) IRDIs.
IRDIs are unique for each combination of (non-advanced) parameters.
If no input path is configured, values are read from the URIs of the input (Transformation Input).
- All fields of the IRDI are configurable, except `Item Code`, which is created by the plugin.
- Created IRDIs are unique per configuration.
- Specify a graph that stores the state of Item Codes.
- Input and output paths are configurable.
- if no input path is configured, values are read from the URIs of the input (transformation input).
"""

PARAMETERS = [
PluginParameter(
name="graph",
Expand Down Expand Up @@ -56,13 +68,11 @@


@Plugin(
label="Generate base36 IRDI",
description="Create unique [ECLASS]"
"(https://eclass.eu/support/technical-specification/structure-and-elements/irdi) IRDIs. "
"IRDIs are unique for each combination of (non-advanced) parameters. "
"If no input path is configured, values are read from the URIs of the input "
"(Transformation Input) ",
label="Generate base36 IRDIs",
description="Create unique ECLASS IRDIs.",
documentation=DOCUMENTATION,
parameters=PARAMETERS,
icon=Icon(file_name="logo.svg", package=__package__)
)
class IrdiPlugin(WorkflowPlugin):
"""IRDI Plugin"""
Expand Down
28 changes: 28 additions & 0 deletions cmem_plugin_irdi/workflow/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d1c90fa

Please sign in to comment.