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.

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


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.7.0.tar.gz (356.7 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.7.0-py3-none-any.whl (400.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kif_lib-0.7.0.tar.gz
  • Upload date:
  • Size: 356.7 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.7.0.tar.gz
Algorithm Hash digest
SHA256 c3ae9331205ff11a688ffd944ecf5808abb32857d0cd62902ce1d3f863e4f3f8
MD5 957554c323000c664bb9f7d3c5eda131
BLAKE2b-256 50b8142d0df1b99668d518fad29cb34f9603f36dd3275d8bdb95c563160ab835

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kif_lib-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 400.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.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 101fcab3f3156015de720ce7393328e102d911aa23e473d78b5204d29cdf9b93
MD5 67ddcb5eeb993f33a7026aa511d3cd40
BLAKE2b-256 151d8a7da6f839691fc2e17559e2c56087c52d0b8bbaddc0419eded113f3c6df

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