Skip to main content

Manipulate Wikidata Objects.

Project description

=======
Welcome
=======

|build-status|
|docs|
|license|
|pypi-python|
|pypi-version|


`qwikidata` is a Python package with tools that allow you to interact with Wikidata_.

The package defines a set of classes that allow you to represent Wikidata entities
in a Pythonic way. It also provides a Pythonic way to access three data sources,

* `linked data interface`_
* `sparql query service`_
* `json dump`_

Important Links
===============

* documentation: https://qwikidata.rtfd.io/
* PyPI: https://pypi.org/project/qwikidata/
* github: https://github.com/kensho-technologies/qwikidata/

Quick Install
=============

Requirements
------------

* python >= 3.6

Install with pip
----------------

You can install the most recent version using pip,

.. code-block:: bash

pip install qwikidata


Quick Start
===========

.. code-block:: python

from qwikidata.linked_data_interface import get_entity_dict_from_api
from qwikidata.entity import WikidataItem, WikidataProperty, WikidataLexeme

q42_dict = get_entity_dict_from_api('Q42')
q42 = WikidataItem(q42_dict)

p279_dict = get_entity_dict_from_api('P279')
p279 = WikidataProperty(p279_dict)

l3_dict = get_entity_dict_from_api('L3')
l3 = WikidataLexeme(l3_dict)


License
=======

Licensed under the Apache 2.0 License. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright
=========

Copyright 2019 Kensho Technologies, LLC.


.. |build-status| image:: https://img.shields.io/travis/kensho-technologies/qwikidata.svg?style=flat
:alt: Build Status
:scale: 100%
:target: https://travis-ci.org/kensho-technologies/qwikidata

.. |docs| image:: https://readthedocs.org/projects/qwikidata/badge/?version=latest
:alt: Documentation Status
:scale: 100%
:target: https://qwikidata.readthedocs.io/en/latest/?badge=latest

.. |license| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg
:alt: License
:scale: 100%
:target: https://opensource.org/licenses/Apache-2.0

.. |pypi-python| image:: https://img.shields.io/pypi/pyversions/qwikidata.svg
:alt: PyPI Python
:scale: 100%
:target: https://pypi.python.org/pypi/qwikidata

.. |pypi-version| image:: https://img.shields.io/pypi/v/qwikidata.svg
:alt: PyPI Version
:scale: 100%
:target: https://pypi.python.org/pypi/qwikidata


.. _Wikidata: https://www.wikidata.org/wiki/Wikidata:Main_Page
.. _linked data interface: https://www.wikidata.org/wiki/Wikidata:Data_access
.. _sparql query service: https://www.wikidata.org/wiki/Wikidata:SPARQL_query_service
.. _json dump: https://www.wikidata.org/wiki/Wikidata:Database_download


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

qwikidata-0.2.0.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

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

qwikidata-0.2.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file qwikidata-0.2.0.tar.gz.

File metadata

  • Download URL: qwikidata-0.2.0.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for qwikidata-0.2.0.tar.gz
Algorithm Hash digest
SHA256 23ce45597fc20bd5d25a837f3bcdc1447772fffd0af425fa94f87eeaeb568e57
MD5 85c4a014f286ac5e209413d5fa807d89
BLAKE2b-256 90453e07e71cc8560a6d89c6f1c7a62c718334d4fb209bcc1da7d5b38f267553

See more details on using hashes here.

File details

Details for the file qwikidata-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: qwikidata-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.8

File hashes

Hashes for qwikidata-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7745f6692f25ce775bed226a88539c0d236deb2807a187cace2a9d164e7b27
MD5 11671452286c84c35099e6651e2d35f8
BLAKE2b-256 2769194f6c11f5ef5d4311622366f807fb3bb0987c19eb5465b70bdb4f5755f6

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