High level api to interact with [HistoGIS](https://histogis.acdh.oeaw.ac.at/)
Project description
acdh-histogis is a python package providing a high level api to interact with [HistoGIS](https://histogis.acdh.oeaw.ac.at/)
Installation
pip install acdh-histogis
Use:
from histogis.histogis import HistoGis as hg
# by geonames (id or URL)
hg().query_by_service_id(id="https://www.geonames.org/2772400/", when='1860-12-12', polygon=False)
# by wikidata (id or URL)
hg().query_by_service_id(id="https://www.wikidata.org/wiki/Q41329", when='1860-12-12', polygon=False)
# by GND (id or URL)
hg().query_by_service_id(service="gnd", id="4074255-6", when='1860-12-12', polygon=False)
# returns:
{
'id': 8118,
'wikidata_id': '',
'name': 'Linz (Stadt)',
'alt_name': '',
'source': 'https://histogis.acdh.oeaw.ac.at/api/source/93/?format=json',
'source_name': 'Cisleithania Districts 1880',
'administrative_unit': 'https://histogis.acdh.oeaw.ac.at/api/skosconcepts/135/?format=json',
'adm_name': 'Statutarstadt',
'start_date': '1850-01-01',
'end_date': '1918-10-31',
...
}
Licensing
All code unless otherwise noted is licensed under the terms of the MIT License (MIT). Please refer to the file LICENSE in the root directory of this repository.
History
0.0.4 (2019-04-02)
dump data methods added
0.0.3 (2019-03-26)
code refactoring
new methods
query_by_service_id to fetch data by geonames, gnd and wikidata ID/URL
0.0.2 (2019-03-11)
fetch_geonames_rdf and query_by_geonames_id methods added
0.0.1 (2019-03-11)
First version
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-histogis-0.0.4.tar.gz
(5.1 kB
view hashes)
Built Distribution
Close
Hashes for acdh_histogis-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e503238a4410e0b05e4adcb3de12dac516510fc3ed8fd9a95b4f4aad3b1a151 |
|
MD5 | 50e6ef72871bdfdd58df9817f813374a |
|
BLAKE2b-256 | 2660696990a04a72e8021ca9bc265c0651c5641c2da504594c56d27cdede78f7 |