Skip to main content

A knowledge integration framework based on Wikidata

Project description

KIF — Knowledge Integration Framework

KIF is a knowledge integration framework from IBM Research. It is licensed under the Apache-2.0 license.

First time here? Check out the quickstart guide.

What? How?

KIF is a knowledge integration framework based on Wikidata.

  • Using KIF, one can easily combine heterogeneous knowledge sources into a virtual knowledge base which behaves like an "extended Wikidata" and which can be queried through a simple but expressive pattern language.

  • KIF leverages Wikidata's data model plus user-defined mappings to construct a unified view of the underlying knowledge sources while keeping track of the context and provenance of their statements.

  • KIF's pattern language is based on Wikidata's data model and is embedded in Python—its constructs can be created and operated programmatically from within Python.

Hello world!

Prints an arbitrary statement from Wikidata:

from kif_lib import *      # import KIF namespacee
kb = Store('wikidata')     # create a store pointing to Wikidata
print(next(kb.filter()))   # obtain and print one arbitrary statement

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kif_lib-0.5.tar.gz (381.0 kB view details)

Uploaded Source

Built Distribution

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

kif_lib-0.5-py3-none-any.whl (427.3 kB view details)

Uploaded Python 3

File details

Details for the file kif_lib-0.5.tar.gz.

File metadata

  • Download URL: kif_lib-0.5.tar.gz
  • Upload date:
  • Size: 381.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for kif_lib-0.5.tar.gz
Algorithm Hash digest
SHA256 6a067e4b67dfa77344ebbb59401596dbea0d08adce1f031e16f4a5804188adf8
MD5 8b34de9c22fe0db7184e97091b39d500
BLAKE2b-256 1548c161b359b5a11e42aede1e4cd465d0aaedf07ff5f29b68ed656210fd364c

See more details on using hashes here.

File details

Details for the file kif_lib-0.5-py3-none-any.whl.

File metadata

  • Download URL: kif_lib-0.5-py3-none-any.whl
  • Upload date:
  • Size: 427.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.13.2

File hashes

Hashes for kif_lib-0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c71e1946e50d8f9b1e251dc89f712e72e82f76e1b24fb3a0f486f7c1930fc573
MD5 42eab87e2a0d2a390aafe73622353c3c
BLAKE2b-256 b48dff856f8c13a0b7f27e24037e4776e73200702a3549e506771766641f84b2

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