Wikidata connector for pyHeimdall
Reason this release was yanked:
Installing pyheimdall-wikidata 1.0.0 forced you to force reinstall pyheimdall immediately after. Please use 1.0.1 or later instead.
Project description
What is this?
Heimdall is a tool for converting more easily one or more databases from one format to another. It leverages modules called “connectors”, responsible for conversion of data between specific databases schemas and the HERA format.
This repository implements a connector to Wikidata. The implementation was made without any intervention on pyHeimdall proper.
How can I use it?
Setup
You can install this connector using the pip package manager:
pip install pyheimdall-wikidata
You can use pip to either upgrade or uninstall this connector, too:
pip install --upgrade pyheimdall-wikidata
pip uninstall pyheimdall-wikidata
Usage
import heimdall
HARRY_POTTER = 'https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q216930&format=json&languages=fr|en'
tree = heimdall.getDatabase(format='api:wikidata', url=HARRY_POTTER)
heimdall.serialize(tree, format='hera:xml', url='HARRY_POTTER.xml')
Please note that you don’t need to use pyheimdall-wikidata functions directly. As long as the package is installed on your system, pyHeimdall will automatically discover its features and allow you to use them as long as any other default or external connector.
Is it tested?
Of course! Here’s the coverage report.
How can I contribute?
This project welcomes any feedback or proposal. Details can be accessed here
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyheimdall_wikidata-1.0.0.tar.gz.
File metadata
- Download URL: pyheimdall_wikidata-1.0.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dc2f61887c13c461f1fa24804a0e7b56f8d8a8634c3d772ccfa50917728eeb3
|
|
| MD5 |
5f07852932b00e4bb7180a6560f25100
|
|
| BLAKE2b-256 |
aed286666bae6f1981fb5e4bfaeeab7c162bea1deba37e9185d3f16e36a27e0f
|
File details
Details for the file pyheimdall_wikidata-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: pyheimdall_wikidata-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3f1af52ab666c2e26823bdeb7011834aaaeacc807f0a4bdbe77c051b207de6f
|
|
| MD5 |
e48b49e1f0f2dce707026f88d4c2c29c
|
|
| BLAKE2b-256 |
5061a3de71c1e33d0ad33b23362fb17959bb346c3c39162463d30fa696d42cea
|