Skip to main content

acdh-id-reconciler

python package to reconcile GND and GeoNames IDs via WikiData.

Test PyPI version codecov flake8 Lint

install

pip install acdh-id-reconciler
uv add acdh-id-reconciler

use

from GND to WikiData and GeoNames ID

from acdh_id_reconciler import gnd_to_geonames

test = "https://d-nb.info/gnd/4010858-2"
results = gnd_to_geonames(test)
print(results)
# {'wikidata': 'http://www.wikidata.org/entity/Q261664', 'gnd': '4010858-2', 'geonames': '2781124'}

from GND to WikiData

from acdh_id_reconciler import gnd_to_wikidata

test = "https://d-nb.info/gnd/4074255-6"
results = gnd_to_wikidata(test)
print(results)
# {'wikidata': 'http://www.wikidata.org/entity/Q41329', 'gnd': '4074255-6'}

from GND to WikiData plus Custom-ID

from acdh_id_reconciler import gnd_to_wikidata_custom

test = "https://d-nb.info/gnd/118634712"
custom = "P6194" # https://www.wikidata.org/wiki/Property:P6194
results = gnd_to_wikidata_custom(test, custom)
print(results)
# {'wikidata': 'http://www.wikidata.org/entity/Q215747', 'gnd': '118634712', 'custom': 'W/Wolf_Hugo_1860_1903'}

from Geonames to WikiData

from acdh_id_reconciler import geonames_to_wikidata

test = "https://www.geonames.org/2761369"
results = geonames_to_wikidata(test)
print(results)
# {'wikidata': 'http://www.wikidata.org/entity/Q1741', 'geonames': '2761369'}

from Geonames to GND

from acdh_id_reconciler import geonames_to_gnd

test = "https://www.geonames.org/2761369"
results = geonames_to_gnd(test)
print(results)
# {'wikidata': 'http://www.wikidata.org/entity/Q1741', 'geonames': '2761369', 'gnd': '4066009-6'}

from Wikidata to Wikipedia

from acdh_id_reconciler import wikidata_to_wikipedia

test = "https://www.wikidata.org/wiki/Q1186567/"
result = wikidata_to_wikipedia(test)
print(result)
# 'https://de.wikipedia.org/wiki/Alexandrinski-Theater'

# default language is set to german, can be changed by settings param result e.g. `wiki_lang='enwiki'`
result = wikidata_to_wikipedia(test, wiki_lang='enwiki')
print(result)
# 'https://en.wikipedia.org/wiki/Alexandrinsky_Theatre'

Metadata

Release files for acdh-id-reconciler 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acdh-id-reconciler 0.8.0
File Size Uploaded
acdh_id_reconciler-0.8.0.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acdh-id-reconciler 0.8.0
File Interpreter ABI Platform
acdh_id_reconciler-0.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / acdh_id_reconciler-0.8.0.tar.gz

Download URL acdh_id_reconciler-0.8.0.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
da088f2b19f6cd1e1b09c5cd119ac136e534ec55b7a12e1746c4e9e4eb701e7f
BLAKE2b-256 checksum
How to use checksums
3ff46b19779d577a9dc845105c11a24079ae4338d155f79e7a058f526adfd77e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / acdh_id_reconciler-0.8.0-py3-none-any.whl

Download URL acdh_id_reconciler-0.8.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d155ca21d8959272a96fd802eede78b837b4f7b68b530dbd49c815c066abe038
BLAKE2b-256 checksum
How to use checksums
ef180d2d3fd59819d2eaad3f0b8539277283386572d0ada1883db7c2aca56415
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.8.0 This release

2 release files

0.7.1

2 release files

0.7

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.3.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page