Skip to main content

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

https://img.shields.io/badge/license-AGPL3.0-informational?logo=gnu&color=success https://www.repostatus.org/badges/latest/inactive.svg https://img.shields.io/badge/documentation-api-green https://gitlab.huma-num.fr/datasphere/heimdall/connectors/wikidata/badges/main/pipeline.svg https://gitlab.huma-num.fr/datasphere/heimdall/connectors/wikidata/badges/main/coverage.svg

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

GNU Affero General Public License version 3.0 or later

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

pyheimdall_wikidata-1.0.0.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyheimdall_wikidata-1.0.0-py2.py3-none-any.whl (16.4 kB view details)

Uploaded Python 2Python 3

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

Hashes for pyheimdall_wikidata-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3dc2f61887c13c461f1fa24804a0e7b56f8d8a8634c3d772ccfa50917728eeb3
MD5 5f07852932b00e4bb7180a6560f25100
BLAKE2b-256 aed286666bae6f1981fb5e4bfaeeab7c162bea1deba37e9185d3f16e36a27e0f

See more details on using hashes here.

File details

Details for the file pyheimdall_wikidata-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pyheimdall_wikidata-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3f1af52ab666c2e26823bdeb7011834aaaeacc807f0a4bdbe77c051b207de6f
MD5 e48b49e1f0f2dce707026f88d4c2c29c
BLAKE2b-256 5061a3de71c1e33d0ad33b23362fb17959bb346c3c39162463d30fa696d42cea

See more details on using hashes here.

Supported by

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