Skip to main content

Index annotations from the Abnormal Hieratic Global Portal in Elasticsearch

Project description

Abnormal Hieratic Indexer

Script that indexes annotations in the Abnormal Hieratic Global Portal. This script is specifically tailored towards the annotations created for the AHGP.

Annotations in the AHGP are stored in a Simple Annotation Server, but for search we use Elasticsearch.

Installation

This script was developed with Python 3.9. It may run on other versions, but tests are very limited.

To install, run pip install abnormal-hieratic-indexer in your environment.

Usage

$ abhier-indexer -h
usage: abhier-indexer [-h] [--canvas-uri-prefix CANVAS_URI_PREFIX] [--index INDEX] source target

positional arguments:
  source                Base URL for the Simple Annotation Server
  target                Base URL for ElasticSearch (default: http://localhost:9200)

optional arguments:
  -h, --help            show this help message and exit
  --canvas-uri-prefix CANVAS_URI_PREFIX
                        Index only annotations targeting canvases whose URIs start with this prefix (default:
                        https://lab.library.universiteitleiden.nl/manifests/external/louvre/)
  --index INDEX         URI path to the ElasticSearch index (default: /annotations/)

To enable periodic indexing, you can set up a cronjob or Systemd timer.

Author and license

Abnormal Hieratic Indexer was created by Ben Companjen at the Centre for Digital Scholarship.

© 2024 Leiden University Libraries

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

abnormal_hieratic_indexer-1.1.2.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

abnormal_hieratic_indexer-1.1.2-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file abnormal_hieratic_indexer-1.1.2.tar.gz.

File metadata

File hashes

Hashes for abnormal_hieratic_indexer-1.1.2.tar.gz
Algorithm Hash digest
SHA256 b0c768fc51f87cff06b299b9b704b073afaba0d3a4c293b47128f4290109bf53
MD5 b1447f560910249cd8884eed4551bdbf
BLAKE2b-256 60c1d953026710970a41db6c530b283b5dbaaadea96f2b767d5afe838bb35e79

See more details on using hashes here.

Provenance

The following attestation bundles were made for abnormal_hieratic_indexer-1.1.2.tar.gz:

Publisher: python-publish.yml on LeidenUniversityLibrary/abnormal-hieratic-indexer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file abnormal_hieratic_indexer-1.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for abnormal_hieratic_indexer-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dc24aaf1493298df4509d36f00df8531fbb008ca32dcbe9d77d6824b538267f1
MD5 98c7d55339fa8c5ed4f82ba85dd11b32
BLAKE2b-256 2f43d5112dfcce6da3758b8f85c809be1a1390c5396f60725faf222c4901c7e8

See more details on using hashes here.

Provenance

The following attestation bundles were made for abnormal_hieratic_indexer-1.1.2-py3-none-any.whl:

Publisher: python-publish.yml on LeidenUniversityLibrary/abnormal-hieratic-indexer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page