Skip to main content

IDP-Z3 is a reasoning engine for knowledge represented using the FO(.) (aka FO-dot) language.

Project description

idp-engine is a reasoning engine for knowledge represented using the FO(·) language. FO(·) (aka FO-dot) is First Order logic, with various extensions to make it more expressive: types, equality, arithmetic, inductive definitions, aggregates, and intensional objects. The idp-engine uses the Z3 SMT solver as a back-end.

It is developed by the Knowledge Representation group at KU Leuven in Leuven, Belgium, and made available under the GNU LGPL v3 License.

See more information at www.IDP-Z3.be.

Installation

idp_engine can be installed from pypi.org, e.g. using pip:

   pip install idp_engine

Get started

The following code illustrates how to run inferences on a knowledge base.

    from idp_engine import IDP, model_expand
    kb = IDP.parse("path/to/file.idp")
    T, S = kb.get_blocks("T, S")
    for model in model_expand(T,S):
        print(model)

For more information, please read the documentation.

Contribute

Contributions are welcome! The repository is on GitLab.

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

idp_engine-0.12.0.tar.gz (105.3 kB view details)

Uploaded Source

Built Distribution

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

idp_engine-0.12.0-py3-none-any.whl (119.3 kB view details)

Uploaded Python 3

File details

Details for the file idp_engine-0.12.0.tar.gz.

File metadata

  • Download URL: idp_engine-0.12.0.tar.gz
  • Upload date:
  • Size: 105.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.2 Linux/6.13.8-arch1-1

File hashes

Hashes for idp_engine-0.12.0.tar.gz
Algorithm Hash digest
SHA256 8ba0070a44cc4657105fc8abe51b1d41fed619ed8cbbea10edc08c8222a5021a
MD5 86ff9ff77caa38c3be4dc1b11d80cb63
BLAKE2b-256 316960b5c033ce623489854f6169f31b4fd52d5a3871dc78c86fc5c97f1de6f3

See more details on using hashes here.

File details

Details for the file idp_engine-0.12.0-py3-none-any.whl.

File metadata

  • Download URL: idp_engine-0.12.0-py3-none-any.whl
  • Upload date:
  • Size: 119.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.13.2 Linux/6.13.8-arch1-1

File hashes

Hashes for idp_engine-0.12.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c03471698662f8463db2c73ba854eb4d0b6a9149a6399a3fd7bb42231632b49a
MD5 a6047841432740aed600f19ded254be4
BLAKE2b-256 d2ea86ff463262a8598b692da0804c845c0676cd4a84bc5e9555c82151f3358f

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