commit | 108233ab5b323de2e0cc6905fb66fe329abc688b | [log] [tgz] |
---|---|---|
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | Mon Aug 19 16:05:09 2024 +0000 |
committer | Akron <nils@diewald-online.de> | Wed Aug 28 16:12:17 2024 +0200 |
tree | 965d5f77d7ee8e2ad492205368b0b51d6cef67cf | |
parent | 23c1c43e27301870feaf9839bf665305c4f78bb9 [diff] |
Bump github.com/gin-contrib/i18n from 1.1.3 to 1.1.4 (closes #27) Bumps [github.com/gin-contrib/i18n](https://github.com/gin-contrib/i18n) from 1.1.3 to 1.1.4. - [Release notes](https://github.com/gin-contrib/i18n/releases) - [Changelog](https://github.com/gin-contrib/i18n/blob/master/.goreleaser.yaml) - [Commits](https://github.com/gin-contrib/i18n/compare/v1.1.3...v1.1.4) Change-Id: I0ddbe7523baa93330e1a9b7edd1abd5b606559d2 --- updated-dependencies: - dependency-name: github.com/gin-contrib/i18n dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Change-Id: Iffce8d7afb332f6f4a86fe27a8a0c3cc1438303e
Kalamar-Plugin-ExternalResources
is a web service that integrates in the plugin framework of Kalamar, to allow linking texts by their text sigle to external data providers, mainly for full text access.
Kalamar-Plugin-ExternalResources
is meant to be a basic plugin and should demonstrate and evaluate the plugin capabilities of Kalamar.
This is software in an early development stage. Its behaviour may change without warnings!
Go 1.19 or later
To build the latest version of Kalamar-Plugin-ExternalResources
, do ...
git clone https://github.com/KorAP/Kalamar-Plugin-ExternalResources cd Kalamar-Plugin-ExternalResources go test . go build .
The binary can be started without prerequisites. The templates
folder has to be kept in the root directory. A db
folder contains the database.
Registration of the plugin in Kalamar is not yet officially supported - but it works by passing the JSON blob generated at /plugin.json
to the plugin registration handler.
To index further data, the mappings need to be stored in a csv
-file, like
"WPD11/A00/00001","Wikipedia","http://de.wikipedia.org/wiki/Alan_Smithee" "WPD11/A00/00003","Wikipedia","http://de.wikipedia.org/wiki/Actinium" "WPD11/A00/00005","Wikipedia","http://de.wikipedia.org/wiki/Ang_Lee"
With the first column being the textSigle (aka the document identifier), the second being the provider name and the third being the URL. These files can be gzipped as well. Then run the indexation with:
./Kalamar-Plugin-ExternalResources data.csv
The following environment variables can be set either as environment variables or via .env
file in the calling directory.
KORAP_SERVER
: The server URL of the hosting service.KORAP_EXTERNAL_RESOURCES_PORT
: The port the service should be listen to.KORAP_EXTERNAL_RESOURCES
: The exposed URL the service is hosted.Currently no official Docker image is provided. To build an image based on the provided Dockerfile, run
docker build \ -f Dockerfile \ -t korap/kalamar-plugin-externalresources .
To create a container on Linux based on the image with a mounted database in db
and a configuration file, run
docker run \ --rm \ --network host \ -v ${PWD}/db/:/db/:z \ -v ${PWD}/.env:/.env korap/ \ kalamar-plugin-externalresources
To index using docker, run
docker run \ --rm \ --network host \ -v ${PWD}/db/:/db/:z \ -v ${PWD}/data/:/data \ -v ${PWD}/.env:/.env \ korap/kalamar-plugin-externalresources \ data/data.csv.gz
Copyright (c) 2023-2024, IDS Mannheim, Germany
Author: Nils Diewald
Kalamar-Plugin-ExternalResources is developed as part of the KorAP Corpus Analysis Platform at the Leibniz Institute for the German Language (IDS).
Kalamar-Plugin-ExternalResources is published under the BSD-2 License.