Skip to main content

Python library to validate Wikidata items using the entityshape API.

Project description

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+

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

pyentityshape-1.0.0.tar.gz (20.6 kB view hashes)

Uploaded Source

Built Distribution

pyentityshape-1.0.0-py3-none-any.whl (17.3 kB view hashes)

Uploaded Python 3

Supported by

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