Skip to main content

PyEntityshape

Python library to lookup Wikidata items in the entityshape API.

This is the alpha software. Please open an issue if you have any ideas or suggestions or bugs to report.

Features

It can be used programmatically to get the results of one validation at a time.

Installation

Get it from pypi

$ pip install pyentityshape

Usage

e = EntityShape(eid="E1", lang="en", qid="Q1")
result = e.get_result()
print(result)
result.is_valid
False|True
result.required_properties_that_are_missing
["P1", "P2"]

The result is a Result object with the following properties:

  • some_required_properties_are_missing
  • properties_with_too_many_statements_found
  • incorrect_statements_found
  • is_valid
  • is_empty
  • analyzed
  • error
  • general
  • incorrect_statements
  • missing_properties
  • name
  • optional_properties_that_are_missing
  • properties
  • properties_with_too_many_statements
  • required_properties
  • required_properties_that_are_missing
  • schema_
  • statements
  • validity

License

GPLv3+

Metadata

Release files for pyentityshape 1.0.0

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

Source distribution (sdist)

Source distribution for pyentityshape 1.0.0
File Size Uploaded
pyentityshape-1.0.0.tar.gz 20.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyentityshape 1.0.0
File Interpreter ABI Platform
pyentityshape-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 37.9 kB

Release files / pyentityshape-1.0.0.tar.gz

Download URL pyentityshape-1.0.0.tar.gz
Size 20.6 kB
Tags Source
SHA-256 checksum
How to use checksums
80a229e568a1277a92fb99621917d3e578500c645533eece70295447368cf8af
BLAKE2b-256 checksum
How to use checksums
9a4bfa03dfa4cf862093fb811f09e03a984f876aeeeb1e64dc707e13cd5e7e98
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.1.34-1-lts

Release files / pyentityshape-1.0.0-py3-none-any.whl

Download URL pyentityshape-1.0.0-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec2d17fefaaba29b6536979d78404fad3e918aaeac953846c9ac352e1fb49f24
BLAKE2b-256 checksum
How to use checksums
8b4b45760e93aad3cbe8cdd69418a6ef284215387fd8c204fb7aa5689f9c8d8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Linux/6.1.34-1-lts

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.0.2

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