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.1.tar.gz (110.4 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.1-py3-none-any.whl (126.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: idp_engine-0.12.1.tar.gz
  • Upload date:
  • Size: 110.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/7.0.10-arch1-1

File hashes

Hashes for idp_engine-0.12.1.tar.gz
Algorithm Hash digest
SHA256 fc3380cd4eaf179fcf9494399062da66da3f05e1d3381be7fad1ec81a8809f1f
MD5 26ea02bb74a389b793ba9ded1a5879f1
BLAKE2b-256 58f3b1856c9a2a689352367fcaecb96f1f3fb10e5689e42f95ba3d35134dbc8c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: idp_engine-0.12.1-py3-none-any.whl
  • Upload date:
  • Size: 126.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.4.1 CPython/3.14.5 Linux/7.0.10-arch1-1

File hashes

Hashes for idp_engine-0.12.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ff7e87f6bec8745e920776e19cc32cd1dfed72cbe131931290f7f5497095899
MD5 9cfb29f71b4201fe5415a2aee8999a49
BLAKE2b-256 2dacf4dd47d2cd75b999e29f57fb06b4ef50e0de58c095722699729106397676

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