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'}
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'}
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.5.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for acdh_id_reconciler-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d93a07d5030509103e262ef27f9f208cfcc7bb5989035b66640269c148cfdf2 |
|
MD5 | 4cbb205cd1b0baf9b3d65b1739b3edf6 |
|
BLAKE2b-256 | f0828c9e87f711b0189b4162d1501e1225bfaadb0f03f1647f5906e872b3980f |