Note: This documentation was autogenerated by ChatGPT based on an example configuration file and the python functions used in the bookkeeping system to transform the files into information usable by single moduls.
Publication Harvesting System – Configuration File Documentation
1. Purpose and Scope
This document describes the structure, semantics, and processing rules of the configuration files used by the publication harvesting system. These configuration files define how publication data is harvested, validated, processed, and ingested for different sources, journals, and processing groups.
The configuration format is JSON and supports:
- Multiple publication sources (e.g. publishers)
- Journal-level and group-level customization
- Two distinct workflows: default and inLTA
- Schema-based structure validation
- Module-specific configuration parameters
- Hierarchical overrides (source → journal / group)
The documentation is intended for developers and operators configuring or extending harvesting pipelines.
2. High-Level Structure
At the top level, the configuration file contains a single key:
{
"Sources": [ ... ]
}
Each entry in Sources defines the configuration for one publication source (e.g. MDPI, Copernicus).
3. Sources
A source represents a publisher or content provider and defines default values that apply to all its journals and processing groups unless explicitly overridden.
3.1 Required Source Fields
| Key | Type | Description |
|---|---|---|
source-name |
string | Human-readable name of the source. |
default-modules |
array of strings | Module pipeline for the default workflow. |
default-modules-inLTA |
array of strings | Module pipeline for the inLTA workflow. |
default-metadata-format |
string | Metadata format used by default (e.g. crossref, datacite). |
default-schemas |
array of strings | Paths to schemas used for structural validation. |
3.2 Optional Source Fields
| Key | Type | Description |
|---|---|---|
Journals |
array | Journal-specific configuration entries. |
Processing-Groups |
array | Alternative processing configurations independent of journals. |
Example:
{
"source-name": "MDPI",
"default-metadata-format": "crossref",
"default-schemas": ["Schemadateien2/mdpi_jats_relaxng_schema.rng"],
"default-modules": ["crossrefcrawler", "validate_metadata", "mdpi"],
"default-modules-inLTA": ["crossrefcrawler", "validate_metadata", "mdpi"]
}
4. Pipelines and Identifiers
The transformation step builds per-module context dictionaries. Each context entry represents one pipeline target (a journal or a processing group) for which a given module is present in the workflow.
4.1 Identifier Resolution (Journals)
For journals, the pipeline identifier is resolved in this order:
identifier(explicit journal identifier)issn-eissn-p
If none of these are present, the transformer raises an error.
When the inLTA workflow is requested, the transformer **appends the suffix **-inLTA to the journal identifier (e.g. 2311-5521-inLTA).
4.2 Identifier Resolution (Processing Groups)
For processing groups, identifier is required. If it is missing, the transformer raises an error.
When the inLTA workflow is requested, the transformer **appends the suffix **-inLTA to the group identifier (e.g. default-inLTA). This ensures that default and inLTA workflows for the same group do not overwrite each other in the transformation output.
5. Workflows
The system supports two workflows:
| Workflow | Description |
|---|---|
default |
Full harvesting and preservation workflow. |
inLTA |
Reduced workflow optimized for ingestion into LTA environments. |
5.1 When the workflows run
Which workflow is executed depends on the processing state of a publication:
- inLTA workflow: executed if a publication has previously been ingested in the long-term archiving (LTA) system.
- default workflow: executed if a publication has never been processed before, or if a previous run did not reach LTA ingestion before the pipeline is started again.
Each workflow is defined as an ordered list of module names.
5.2 Workflow Key Names
The transformer expects these keys:
-
Journal workflow overrides
-
default:
modules -
inLTA:
modules-inLTA -
Source defaults / fallbacks (journals)
-
default-journal-modules/default-journal-modules-inLTA default-modules/default-modules-inLTA-
standard-modules/standard-modules-inLTA(deprecated; logs a warning) -
Group workflow overrides
-
default:
modules -
inLTA:
modules-inLTA -
Source defaults / fallbacks (groups)
-
default-group-modules/default-group-modules-inLTA default-modules/default-modules-inLTAstandard-modules/standard-modules-inLTA(deprecated; logs a warning)
5.3 Module Presence Filtering
The transformer only creates a context entry for a journal/group if the requested module name appears in the resolved module list.
For each created context entry it also records:
position: index of the module in the workflow listprevious_module: the preceding module name (ornull)next_module: the following module name (ornull)
6. Configuration Parameters (including Metadata Format and Schemas)
The transformer supports both fixed, common parameters (e.g. schemas, metadata-format) and module-specific parameters.
6.1 Parameter Resolution Order
For each parameter requested by a module (plus the global defaults from default_configuration_parameters), the transformer resolves the value in this order:
- Journal/Group level:
<parameter> - Source level:
default-journal-<parameter>ordefault-group-<parameter>(depending on target type) - Source level:
default-<parameter> - Source level:
standard-<parameter>(deprecated; logs a warning) null(if not found anywhere)
This means modules can declare additional required parameters; if they are not provided in config (and have no default), they will appear as null in the context dict and should be validated by the module.
6.2 Metadata Format
Commonly used key: metadata-format
Example:
"default-metadata-format": "crossref",
"metadata-format": "datacite"
In the current transformer, metadata-format is treated like any other parameter and follows the general resolution order above.
6.3 Schemas
Commonly used key: schemas
Example:
"default-schemas": ["schema.rng"],
"schemas": ["Schemadateien2/other.rng"]
In the current transformer, schemas is treated like any other parameter and follows the general resolution order above.
7. Schemas and Validation
Schemas are used to validate the structure of harvested content (e.g. XML).
7.1 Schema Resolution Order
Schemas are resolved using this precedence:
- Journal or processing group
schemas - Source-level
default-schemas
Schemas are typically Relax NG (.rng) files.
Example:
"schemas": ["Schemadateien2/other.rng"]
8. Journals
A journal entry defines configuration overrides for a specific journal within a source.
8.1 Required Journal Fields
| Key | Type | Description |
|---|---|---|
issn-e |
string | Electronic ISSN of the journal. |
journal-name |
string | Human-readable journal name. |
8.2 Optional Journal Fields
| Key | Type | Description |
|---|---|---|
identifier |
string | Explicit pipeline identifier. |
modules |
array | Overrides default workflow modules. |
modules-inLTA |
array | Overrides inLTA workflow modules. |
metadata-format |
string | Overrides metadata format. |
schemas |
array | Overrides schemas. |
| Any other key | any | Module-specific configuration parameters. |
Example:
{
"issn-e": "2311-5521",
"journal-name": "Fluids",
"identifier": "overwritten-identifier"
}
9. Processing Groups
Processing groups define alternative pipelines that are not bound to a specific journal.
9.1 Required Group Fields
| Key | Type | Description |
|---|---|---|
group-name |
string | Human-readable name of the group. |
identifier |
string | Unique pipeline identifier. |
9.2 Optional Group Fields
| Key | Type | Description |
|---|---|---|
modules |
array | Workflow module list. |
modules-inLTA |
array | inLTA workflow module list. |
metadata-format |
string | Metadata format override. |
schemas |
array | Schema override. |
| Any other key | any | Module-specific configuration parameters. |
Example:
{
"group-name": "Other",
"identifier": "non-default",
"modules": ["other-metadata-source", "mdpi"],
"schemas": ["Schemadateien2/other.rng"],
"metadata-format": "datacite"
}
10. Module-Specific Parameters
Modules may define custom configuration parameters. These parameters:
- Are optional unless the module is part of the active workflow
- Can be defined at source, journal, or group level
- Follow the same override rules as other configuration values
Example:
"other-config-parameter": "value",
"config-parameter-without-default-value": "another-value"
The system does not enforce a fixed schema for module-specific parameters; validation is performed by the module implementation itself.
11. Configuration Override Rules (Summary)
11.1 Workflow resolution
For journals, the transformer selects the module list in this order (per workflow):
modules/modules-inLTA(journal)default-journal-modules/default-journal-modules-inLTA(source)default-modules/default-modules-inLTA(source)standard-modules/standard-modules-inLTA(source, deprecated)
For processing groups, the transformer selects the module list in this order (per workflow):
modules/modules-inLTA(group)default-group-modules/default-group-modules-inLTA(source)default-modules/default-modules-inLTA(source)standard-modules/standard-modules-inLTA(source, deprecated)
If no module list can be resolved, the transformer returns null for that target (meaning: no context entry is created).
11.2 Parameter resolution
For each requested parameter, the transformer resolves values using:
- Journal/Group:
<parameter> - Source:
default-journal-<parameter>/default-group-<parameter> - Source:
default-<parameter> - Source:
standard-<parameter>(deprecated) null
11.3 Transformation output shape
get_module_context_dicts() returns:
{
<source-name>: {
"journals": { <identifier>: <context-dict>, ... },
"processing-groups": { <identifier>: <context-dict>, ... }
},
...
}
Each <context-dict> contains:
- all resolved configuration parameters requested for that module
identifier,ISSN,position,previous_module,next_module
12. Minimal Valid Configuration Example
{
"Sources": [
{
"source-name": "Example",
"default-metadata-format": "crossref",
"default-schemas": ["schema.rng"],
"default-modules": ["moduleA", "moduleB"],
"default-modules-inLTA": ["moduleA"],
"Journals": [
{
"issn-e": "1234-5678",
"journal-name": "Example Journal"
}
]
}
]
}
13. Notes for Developers
-
Module parameters passed through: The transformer does not enforce a strict schema for module-specific parameters. It simply resolves requested keys and returns them (possibly as
null). Modules should validate required parameters themselves. -
Deprecated prefixes:
-
standard-modules*andstandard-<parameter>are supported but considered deprecated; the transformer emits warnings via Prefect logger. -
Workflow coverage flags:
-
get_module_context_dicts(..., default_workflow=True, inLTA_workflow=True)can be used to build contexts for default and/or inLTA. - Journals and processing groups are evaluated separately for default vs. inLTA depending on these flags.
End of documentation.