https://github.com/acdh-oeaw/pmb-service

PMB - Personen der Moderne Basis

https://github.com/acdh-oeaw/pmb-service

Science Score: 26.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (10.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

PMB - Personen der Moderne Basis

Basic Info
Statistics
  • Stars: 0
  • Watchers: 5
  • Forks: 1
  • Open Issues: 0
  • Releases: 1
Created over 2 years ago · Last pushed 10 months ago
Metadata Files
Readme License

README.md

flake8 Lint Test codecov

PMB-SERVICE

lightweight APIS-PMB instance to generate TEI/XML dumps

maybe in future also with PMB CRUD included

install

  • clone the repo
  • create a virtual env python -m venv venv
  • activate it source venv/bin/activate
  • install packages pip install -r requirements_dev.txt
  • get a recent db-dump (./dump_and_restore.sh) (create a postgres-db pmb and run ./dump_and_restore.sh, make sure you tunneled to production db first)
  • set env variables
  • run python manage.py runserver
  • (create a superuser) python manage.py creatsuperuser

jupyter notebook

  • pip install notebook (1 time)
  • set env varibles ./set_env_variables
  • python manage.py shell_plus --lab

cheat-sheet

process gnd-beacon

python manage.py process_beacon --beacon=https://thun-korrespondenz.acdh.oeaw.ac.at/beacon.txt --domain=thun-korrespondenz

python manage.py process_beacon --beacon=https://raw.githubusercontent.com/Auden-Musulin-Papers/amp-entities/main/out/beacon.txt --domain=Auden-Musulin-Papers

python manage.py process_beacon --beacon=https://raw.githubusercontent.com/Hanslick-Online/hsl-entities/main/out/beacon.txt --domain=Hanslick

set up new instance

in order to avoid errors on a new instance you'll need to set an environment variable PMB_NEW=whatever. After you run the inital python manage.py migrate you should unset PMB_NEW

vite

  • bundling js-code (used for network-vis) is not part of the docker-setup
  • for development make sure the vite-dev-server is running pnpm run vite
  • for building new bundle, run pn run build

reset sequence

SQL BEGIN; SELECT setval(pg_get_serial_sequence('"django_migrations"','id'), coalesce(max("id"), 1), max("id") IS NOT null) FROM "django_migrations"; COMMIT;

Docker

building the image

  • docker build -t pmb:latest .
  • docker build -t pmb:latest --no-cache .

running the image

To run the image you should provide an .env file to pass in needed environment variables; see pmb/settings.py for possible varibles:

docker run -it --network="host" --rm --env-file .env pmb:latest

Owner

  • Name: Austrian Centre for Digital Humanities & Cultural Heritage
  • Login: acdh-oeaw
  • Kind: organization
  • Email: acdh@oeaw.ac.at
  • Location: Vienna, Austria

GitHub Events

Total
  • Push event: 39
  • Pull request event: 90
Last Year
  • Push event: 39
  • Pull request event: 90

Issues and Pull Requests

Last synced: 10 months ago

All Time
  • Total issues: 3
  • Total pull requests: 235
  • Average time to close issues: about 8 hours
  • Average time to close pull requests: 1 minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 211
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 92
  • Average time to close issues: less than a minute
  • Average time to close pull requests: 1 minute
  • Issue authors: 1
  • Pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 78
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • csae8092 (3)
Pull Request Authors
  • csae8092 (235)
Top Labels
Issue Labels
Pull Request Labels

Dependencies

.github/workflows/lint.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v1 composite
  • py-actions/flake8 v1 composite
.github/workflows/starter.yaml actions
Dockerfile docker
  • python 3.10 build
requirements.txt pypi
  • acdh-id-reconciler >=0.2,<1
  • apis-core >=0.18,<1
  • gunicorn ==20.1.0
  • pandas *
  • pyocclient ==0.6
  • rdflib *
.github/workflows/test.yml actions
  • actions/cache v3 composite
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
  • codecov/codecov-action v3 composite
  • postgres 13 docker
requirements_dev.txt pypi
  • coverage * development