Skip to main content

py_ez_wikidata

Mapping for Wikidata allows simplified / easy creation of wikidata entries from dicts

Join the discussion at https://github.com/WolfgangFahl/py_ez_wikidata/discussions pypi Github Actions Build PyPI Status GitHub issues GitHub closed issues API Docs License

Docs

  • Tutorial - mapping, record, dry run, author order and the worked examples
  • Wiki - project page and release notes

Install

pip install py-ez-wikidata

CLI (ezwd)

ezwd creates a Wikidata item from a YAML/JSON record via a named property mapping. It is dry-run by default — add -w to actually write.

ezwd -m scholar --list-mappings            # the columns of a mapping
ezwd -m scholar --example                  # the worked example embedded in the mapping
ezwd -m scholar -r robert_david.yaml --strict   # your record as dry-run, exit 1 on problems

robert_david.yaml:

label: Robert David
description: knowledge graph researcher
instanceof: Q5
orcid: "0000-0002-3244-5341"
dblp: "173/3493-1"
linkedInId: "robert-david-39b47692"

This record created Q140424194. Only add an identifier once you have verified it belongs to this exact person.

--format turtle prints the built item as RDF in the Wikidata model, -s "Robert David" searches Wikidata before you create, --test targets test.wikidata.org.

Bundled mappings

name creates example
scholar human (Q5) with scholarly identifiers Q140424194
paper scholarly article (Q13442814), authors in their order Q141609355
proceedings CEUR-WS proceedings volume (Q1143604) Q141623730
event event of a CEUR-WS volume, class from the record Q141623731
extension MediaWiki extension (Q6805426) Q140770649

Every mapping file carries the record of its example in its header, how this works and all five examples are in the tutorial.

Metadata

Release files for py-ez-wikidata 0.5.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-ez-wikidata 0.5.4
File Size Uploaded
py_ez_wikidata-0.5.4.tar.gz 186.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-ez-wikidata 0.5.4
File Interpreter ABI Platform
py_ez_wikidata-0.5.4-py3-none-any.whl Python 3 none any Details

Total release size: 356.2 kB

Release files / py_ez_wikidata-0.5.4.tar.gz

Download URL py_ez_wikidata-0.5.4.tar.gz
Size 186.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f9ce13d5b927d66b91d8c65b46625c3cf90594c191b8b42c78f16647226234f9
BLAKE2b-256 checksum
How to use checksums
381f8331c33e38fa4ec3d0c38db745bec3a6c66a2d81f68e4d90bb2d484f9c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release files / py_ez_wikidata-0.5.4-py3-none-any.whl

Download URL py_ez_wikidata-0.5.4-py3-none-any.whl
Size 170.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26faf67edaf62d66483087d6a0e0aab582fb2fcad56a94bb228142285f59b1da
BLAKE2b-256 checksum
How to use checksums
01e320f5c246e2b00b2f79cb4a57cb2b6ea718f57790e98802aef348059b1e12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.4 This release

2 release files

0.5.3

2 release files

0.5.2

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page