Skip to main content

Python package to reconcile GND, GeoNames IDs via WikiData

Project description

Test PyPI version codecov flake8 Lint


python package to reconcile GND and GeoNames IDs via WikiData.


pip install acdh-id-reconciler


from GND to WikiData and GeoNames ID

from acdh_id_reconciler import gnd_to_geonames

test = ""
results = gnd_to_geonames(test)
# {'wikidata': '', 'gnd': '4010858-2', 'geonames': '2781124'}

from GND to WikiData

from acdh_id_reconciler import gnd_to_wikidata

test = ""
results = gnd_to_wikidata(test)
# {'wikidata': '', 'gnd': '4074255-6'}

from GND to WikiData plus Custom-ID

from acdh_id_reconciler import gnd_to_wikidata_custom

test = ""
custom = "P6194" #
results = gnd_to_wikidata_custom(test, custom)
# {'wikidata': '', 'gnd': '118634712', 'custom': 'W/Wolf_Hugo_1860_1903'}

from Geonames to WikiData

from acdh_id_reconciler import geonames_to_wikidata

test = ""
results = geonames_to_wikidata(test)
# {'wikidata': '', 'geonames': '2761369'}

from Geonames to GND

from acdh_id_reconciler import geonames_to_gnd

test = ""
results = geonames_to_gnd(test)
# {'wikidata': '', 'geonames': '2761369', 'gnd': '4066009-6'}

from Wikidata to Wikipedia

from acdh_id_reconciler import wikidata_to_wikipedia

test = ""
result = wikidata_to_wikipedia(test)
# ''

# 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')
# ''

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.7.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

acdh_id_reconciler-0.7.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page