Manipulate Wikidata Objects.
Project description
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,
Important Links
documentation: https://qwikidata.rtfd.io/
Quick Install
Requirements
python >= 3.6
Install with pip
You can install the most recent version using pip,
pip install qwikidata
Quick Start
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for qwikidata-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5de7facb029a624bf57c2a660718a9269b5ae5be972048f51a558932658fe357 |
|
MD5 | e82bf1535c11132a63d4d412483b98bf |
|
BLAKE2b-256 | 46c4bc0a72f971c9fc1b0b59fded301f486ae4a20f11db6280165a1df3cacaa7 |