GeoNames Annotation
Goobi Step Plugin for annotating automatically existing "location" NER tags in ALTO files with Geonames URLs.

Introduction

This step plugin for Goobi workflow automatically annotates existing "location" NER tags in ALTO files with GeoNames URLs. The first hit of the search query is always taken. It is therefore recommended to check and correct the results again.
Details
Text
Identifier
intranda_step_geonamesautoannotator
Licence
GPL 2.0 or newer
Compatibility
Goobi workflow 2022.03
Documentation date
25.03.2022

How the plugin works

The plugin searches the GeoNames database for all location NER tags. If one or more search hits are returned, the first search hit in the list is transferred to the ALTO.

Installation

The plugin consists of the following files:
1
goobi_plugin_step_geonamesautoannotator.jar
2
plugin_intranda_step_geonamesautoannotator.xml
Copied!
The file goobi_plugin_step_geonamesautoannotator.jar must be installed in the correct directory so that it is available at the following path after installation:
1
/opt/digiverso/goobi/plugins/step/plugin_intranda_step_geonamesautoannotator.jar
Copied!
In addition, there is a configuration file that must be located in the following place:
1
/opt/digiverso/goobi/config/plugin_intranda_step_geonamesautoannotator.xml
Copied!

Configuration

The configuration of the plugin is done via the configuration file plugin_intranda_step_geonamesautoannotator.xml and can be adjusted during operation. The following is an example configuration file:
1
<?xml version="1.0" encoding="UTF-8"?>
2
<config_plugin>
3
<!--
4
order of configuration is:
5
1.) project name and step name matches
6
2.) step name matches and project is *
7
3.) project name matches and step name is *
8
4.) project name and step name are *
9
-->
10
11
<config>
12
<!-- which projects to use for (can be more then one, otherwise use *) -->
13
<project>*</project>
14
<step>*</step>
15
16
<!-- geonames account -->
17
<geonamesAccount>testuser</geonamesAccount>
18
<!-- geonames API URL - if you have a paid plan, use http://ws.geonames.net here -->
19
<geonamesApiUrl>http://api.geonames.org</geonamesApiUrl>
20
</config>
21
22
</config_plugin>
Copied!
Parameter
Explanation
project
This parameter determines the project for which the current block <config> is to apply. The name of the project is used here. This parameter can occur several times per <config> block.
step
This parameter controls for which workflow steps the block <config> is to apply. The name of the step is used here. This parameter can occur several times per <config> block.
geonamesAccount
This parameter defines the account name for GeoNames access.
geonamesApiUrl
The URL for accessing the GeoNames API is set here.
It is recommended to purchase a higher quota from geonames for the operation of the plugin. If this has been done, the geonamesApiUrl must be changed to http://ws.geonames.net.

Integration of the plugin into the workflow

This plugin is integrated into the workflow in such a way that it is executed automatically. Manual interaction with the plugin is not necessary. For use within a workflow step, it should be configured as shown in the screenshot below.
Integration of the plugin into the workflow