Generic import plugin for JSON files
This generic import plugin allows the bulk import of data from JSON files
Last updated
This generic import plugin allows the bulk import of data from JSON files
Last updated
Name | Wert |
---|---|
Identifier | intranda_workflow_import_json |
Repository | |
Licence | GPL 2.0 or newer |
Last change | 14.08.2024 19:06:00 |
This is the technical documentation for the workflow plugin for Goobi workflow, which is used to read metadata from multiple JSON files and create processes based on it.
To install the plugin, the following two files must be installed:
To configure how the plugin should behave, various values can be adjusted in the configuration file. The configuration file is usually located here:
The content of this configuration file is as follows:
The configuration of the plugin is as follows:
Value | Description |
---|---|
| Path to the directory where the JSON files are located. |
| Path to the directory where the images to be downloaded are to be saved before they are imported into the processes. |
| Name of the production template to be used. |
| Publication type for the transactions to be created. |
| Type of metadata in which the URL from which the images are to be downloaded is specified. This value is repeatable. |
| A metadata object is generated from each tag. The attribute |
| Metadata groups are configured here. There are six attributes, which are explained below. Several |
| Structure elements are configured here. There are five attributes, which are explained below. Several |
The following attributes can be configured in a group
element:
Value | Description |
---|---|
| JSON path to the parent element of a list. Starts with a |
| Type of the metadata group. |
| Alternative type of the metadata group. If the alternative type is configured correctly, a metadata group of this type is created from all filtered entries. If the attribute is not configured or if the configured type cannot be found, all filtered entries are not imported. This parameter is optional. |
| Key of the JSON objects for filtering. This parameter is optional. |
| Value for comparison when filtering. This parameter is optional. |
| Logic to be used for filtering. Options here are |
The following attributes can be configured in a child
element:
Value | Description |
---|---|
| JSON path to the parent element of a list. Starts with a |
| Type of the structure element. |
| Key of the JSON objects for filtering. This parameter is optional. |
| Value for comparison when filtering. This parameter is optional. |
| Logic to be used for filtering. Options here are |
There is an option to generate and save a metadata for the partner's URL. The URL to be generated is defined as follows: {urlBase}/{urlPart_1}/{urlPart_2}/.../{urlPart_k}/{urlTail}/
Value | Description |
---|---|
| The |
| Here you configure the URL to the partner's server. This parameter is optional. A maximum of one hit is possible. |
| The parts of the URL whose values from the JSON objects are to be appended to the |
| The trailing part of the URL is configured here. This parameter is optional. A maximum of one hit is possible. |
| Type of metadata. |