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/anno/)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file abnormal_hieratic_indexer-1.0.0.tar.gz
.
File metadata
- Download URL: abnormal_hieratic_indexer-1.0.0.tar.gz
- Upload date:
- Size: 17.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78bf34779dc6fca9363f1aea327214da1f0d6fcd64be533b29a04b24c9cc3313 |
|
MD5 | 68e17e19b60e3e904b7a72296a3b127e |
|
BLAKE2b-256 | 0540a2a5eb65431b6412e4ca3479ffbc2e46e635c987f6e891fc1102d20d97fd |
File details
Details for the file abnormal_hieratic_indexer-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: abnormal_hieratic_indexer-1.0.0-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bbab8a39d22e3b49780a2ae83a3d84ada05a107dd5f2c45a680c9dd48eecfd5 |
|
MD5 | b4ac63c49cedd5dd271305b76009ab0a |
|
BLAKE2b-256 | 584ede407d45224982c1eda669de81713a0f237a66296669eab8bfd36f0a12a3 |