A knowledge integration framework based on Wikidata
Project description
KIF — Knowledge Integration Framework
KIF is a knowledge integration framework from IBM Research.
KIF is based on Wikidata and it's licensed under the Apache-2.0 license.
First time here? Check out the quickstart guide.
Highlights
-
KIF can be seen as a Python interface to query Wikidata (RDF).
-
KIF queries are written in the KIF pattern language, which is based on Wikidata's data model.
-
KIF can be used to query knowledge sources other than Wikidata, provided proper SPARQL mappings are given.
-
KIF comes with built-in mappings for DBpedia and PubChem RDF. Other mappings can be added programmatically.
Hello world!
Prints an arbitrary statement from Wikidata:
from kif_lib import *
kb = Store('wdqs')
print(next(kb.filter()))
Prints an arbitrary Wikidata-like statement from DBpedia:
kb = Store('dbpedia-sparql')
print(next(kb.filter()))
Installation
$ pip install kif-lib
Documentation
See documentation and examples.
Citation
Guilherme Lima, João M. B. Rodrigues, Marcelo Machado, Elton Soares, Sandro R. Fiorini, Raphael Thiago, Leonardo G. Azevedo, Viviane T. da Silva, Renato Cerqueira. "KIF: A Wikidata-Based Framework for Integrating Heterogeneous Knowledge Sources", arXiv:2403.10304, 2024.
License
Released under the Apache-2.0 license.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kif_lib-0.7.2.tar.gz.
File metadata
- Download URL: kif_lib-0.7.2.tar.gz
- Upload date:
- Size: 357.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d97aff977775318c81fd6fda0a59761265fa943d3ea4c99fbdcd8eb34cdd476e
|
|
| MD5 |
9e57de0aab79c13103000a489b8acd20
|
|
| BLAKE2b-256 |
94c21f80523f5086ff823edc01cef207430818cca5a3cec46734b92e6e01e7c8
|
File details
Details for the file kif_lib-0.7.2-py3-none-any.whl.
File metadata
- Download URL: kif_lib-0.7.2-py3-none-any.whl
- Upload date:
- Size: 401.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88e918fc4fd784925f78e4a130db53a3aeba43d129931559b6ba0550067fffe1
|
|
| MD5 |
e22cc792491689d3770a01b0ed6e78d9
|
|
| BLAKE2b-256 |
3480d6b87634823355815583f3c33f11e31f25b2bc61e51ef46e8798d0717216
|