pyentityshape


Namepyentityshape JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/dpriskorn/PyEntityshape
SummaryPython library to validate Wikidata items using the entityshape API.
upload_time2023-06-22 21:08:36
maintainer
docs_urlNone
authorDennis Priskorn
requires_python>=3.8,<=3.12
licenseGPLv3+
keywords entityshape api wikidata entityschema entity validation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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+

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/dpriskorn/PyEntityshape",
    "name": "pyentityshape",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<=3.12",
    "maintainer_email": "",
    "keywords": "entityshape API,wikidata,entityschema,entity validation",
    "author": "Dennis Priskorn",
    "author_email": "68460690+dpriskorn@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/9a/4b/fa03dfa4cf862093fb811f09e03a984f876aeeeb1e64dc707e13cd5e7e98/pyentityshape-1.0.0.tar.gz",
    "platform": null,
    "description": "# PyEntityshape\nPython library to lookup Wikidata items in the entityshape API.\n\nThis is the alpha software. Please open an issue if you have any ideas or suggestions or bugs to report.  \n\n# Features\nIt can be used programmatically to get the results of one validation at a time.\n\n# Installation\nGet it from pypi\n\n`$ pip install pyentityshape`\n\n# Usage\n```\ne = EntityShape(eid=\"E1\", lang=\"en\", qid=\"Q1\")\nresult = e.get_result()\nprint(result)\nresult.is_valid\nFalse|True\nresult.required_properties_that_are_missing\n[\"P1\", \"P2\"]\n```\n\nThe result is a Result object with the following properties:\n* some_required_properties_are_missing\n* properties_with_too_many_statements_found\n* incorrect_statements_found\n* is_valid\n* is_empty\n* analyzed\n* error\n* general\n* incorrect_statements\n* missing_properties\n* name\n* optional_properties_that_are_missing\n* properties\n* properties_with_too_many_statements\n* required_properties\n* required_properties_that_are_missing\n* schema_\n* statements\n* validity\n\n# License\nGPLv3+\n",
    "bugtrack_url": null,
    "license": "GPLv3+",
    "summary": "Python library to validate Wikidata items using the entityshape API.",
    "version": "1.0.0",
    "project_urls": {
        "Homepage": "https://github.com/dpriskorn/PyEntityshape",
        "Repository": "https://github.com/dpriskorn/PyEntityshape"
    },
    "split_keywords": [
        "entityshape api",
        "wikidata",
        "entityschema",
        "entity validation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b4b45760e93aad3cbe8cdd69418a6ef284215387fd8c204fb7aa5689f9c8d8a",
                "md5": "ecdd41532064f674b12d9a21cf33a4e2",
                "sha256": "ec2d17fefaaba29b6536979d78404fad3e918aaeac953846c9ac352e1fb49f24"
            },
            "downloads": -1,
            "filename": "pyentityshape-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ecdd41532064f674b12d9a21cf33a4e2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<=3.12",
            "size": 17341,
            "upload_time": "2023-06-22T21:08:28",
            "upload_time_iso_8601": "2023-06-22T21:08:28.748620Z",
            "url": "https://files.pythonhosted.org/packages/8b/4b/45760e93aad3cbe8cdd69418a6ef284215387fd8c204fb7aa5689f9c8d8a/pyentityshape-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9a4bfa03dfa4cf862093fb811f09e03a984f876aeeeb1e64dc707e13cd5e7e98",
                "md5": "dab14252e3421688e00c85a295f4d20d",
                "sha256": "80a229e568a1277a92fb99621917d3e578500c645533eece70295447368cf8af"
            },
            "downloads": -1,
            "filename": "pyentityshape-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "dab14252e3421688e00c85a295f4d20d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<=3.12",
            "size": 20602,
            "upload_time": "2023-06-22T21:08:36",
            "upload_time_iso_8601": "2023-06-22T21:08:36.233980Z",
            "url": "https://files.pythonhosted.org/packages/9a/4b/fa03dfa4cf862093fb811f09e03a984f876aeeeb1e64dc707e13cd5e7e98/pyentityshape-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-22 21:08:36",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "dpriskorn",
    "github_project": "PyEntityshape",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "pyentityshape"
}
        
Elapsed time: 0.12469s