Skip to main content

A knowledge integration framework based on Wikidata

Project description

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 is an interface to query knowledge sources as if they were Wikidata.

  • KIF queries are written in the KIF pattern language, which is based on Wikidata's data model.

  • KIF can be used to query Wikidata itself or other knowledge sources, 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.8.tar.gz (374.5 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.8-py3-none-any.whl (423.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kif_lib-0.7.8.tar.gz
  • Upload date:
  • Size: 374.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for kif_lib-0.7.8.tar.gz
Algorithm Hash digest
SHA256 6eb493b37aafac07a5d043c8beaf0aae68bc6ecb2a14e32fb65cf4d1c9da7cc3
MD5 115db2ddaa5957f42befcc38e1d6848f
BLAKE2b-256 51889cfce3a68860cdd26c7a656a42de98b73e9bcb2e5eb48df57713cebd5a20

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kif_lib-0.7.8-py3-none-any.whl
  • Upload date:
  • Size: 423.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for kif_lib-0.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 ef78bb31530140f4a2e027d21c9687266c407809c5f1ff309ed5068742414f8b
MD5 ae4f0971acda3eeda44015c8a84728d1
BLAKE2b-256 cacb5efe1a7e5eef402f6e633e26d1e37a7af6a9cfbfa95fe4a2c3c6c2e34a77

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