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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file idp_engine-0.11.2.tar.gz
.
File metadata
- Download URL: idp_engine-0.11.2.tar.gz
- Upload date:
- Size: 100.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54dec9b0971a3d0171da3c5cc7f28e1a66fbd05b83bf3afe20d0dd5ee42cebc1 |
|
MD5 | ba49fb2834f410d6e96372b5a4ce0ea7 |
|
BLAKE2b-256 | 9680a7dcbd2aafd123f9b8a5b7079408235014f1c70d4c30bd8e191b9fd7be3c |
File details
Details for the file idp_engine-0.11.2-py3-none-any.whl
.
File metadata
- Download URL: idp_engine-0.11.2-py3-none-any.whl
- Upload date:
- Size: 114.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.7 Linux/6.11.3-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d932bfd6682259656f016d3199b309904b7010812daddf62882c4f6163a70d1 |
|
MD5 | b54b939686861eabd370cc09df629a4d |
|
BLAKE2b-256 | bceb1b3bf0095a2334636c4579abb750c19a2a71baaea088f5c43f8aa0daa315 |