Python package to reconcile GND, GeoNames IDs via WikiData
Project description
acdh-id-reconciler
python package to reconcile GND and GeoNames IDs via WikiData.
install
pip install 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'}
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
acdh_id_reconciler-0.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for acdh_id_reconciler-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0b707b62c11edc78dec1ce54c0573b4cc932e1f332a046bf067ce7a2bf21cd1b |
|
MD5 | ed9cd5430d2bd712c2f50680d507af95 |
|
BLAKE2b-256 | 2ad2b817b162f7a3db186394ab128db17f1db4e59d440ca3a73e0de8485ce79e |