Skip to main content

Python bindings for FaCT++ reasoner

FaCT++ is a well-optimized open-source reasoner for SROIQ(D) description logic with simple datatypes (OWL 2), written in C++. FaCT++ was created in 2003-2015 by Dmitry Tsarkov and Ian Horrocks in the University of Manchester, UK.

This repository is the work in progress for linking the FaCT++ with the Python's RDFLib package. This repository is based on the works of Artur Wroblewski factpp and coras. The goals are to create the RDFLib store with inference capabilities and to demonstrate the use of the FaCT++ API.

Reasoner details

The FaCT++ implements the atomic decomposition algorithms (i.e. represents the ontologies as terse directed acyclic graphs). A tableaux decision procedure is applied for SROIQ(D) together with the set of optimisation heuristics, such as:

  • lexical normalisation and simplification,
  • synonym replacement,
  • rewriting absorption,
  • told cycle elimination,
  • dependency-directed backtracking (backjumping),
  • boolean constant propagation,
  • semantic branching,
  • ordering heuristics,
  • model merging,
  • completely defined concepts,
  • clustering for wide and shallow taxonomies.

To tackle the OWL 2 computational complexity (double exponential in time for the worst case), the FaCT++ presents persistent and incremental reasoning. In the persistent mode, FaCT++ saves the inferred information together with its internal state into a file, which can be reloaded later with much less computational effort than reasoning would require. In the incremental mode, FaCT++ determines which parts of the precomputed inferences may be affected by an incoming change and only recomputes a subset of the inferences.

The mentioned above allows to achieve a very good performance on such known ontologies as FHKB, SNOMED CT, and Thesaurus.

The FaCT++ supports Java OWL-API, Lisp API, and DIG interface. It can also be used in C. There is also a work of Levin and Cowell on C++ usage (unmaintained).

Installation

pip install cython
cd FaCT++.Python
cmake .
make && make install

(Sorry, no pip support currently!)

Usage

Run an example:

python examples/imply-class.py

Try to load FOAF ontology:

./bin/factpp-load ontologies/foaf.rdf

and print ontology report:

./bin/factpp-load ontologies/foaf.rdf 2>&1 | bin/factpp-load-report

Authors of Python part

  • Artur Wroblewski
  • Evgeny Blokhin
  • Andrey Sobolev
  • Ivan Rygaev

License

  • Kernel reasoner code: GNU LGPL 2.1
  • Coras Python interface: GNU GPL 3.0

Metadata

Release files for pyfactxx 1.8.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyfactxx 1.8.1
File Size Uploaded
pyfactxx-1.8.1.zip 464.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for pyfactxx 1.8.1
File
pyfactxx-1.8.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
pyfactxx-1.8.1-cp310-cp310-manylinux_2_27_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64 Details
pyfactxx-1.8.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
pyfactxx-1.8.1-cp39-cp39-manylinux_2_27_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.27+ x86-64 Details
pyfactxx-1.8.1-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
pyfactxx-1.8.1-cp38-cp38-manylinux_2_27_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.27+ x86-64 Details
pyfactxx-1.8.1-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
pyfactxx-1.8.1-cp37-cp37m-manylinux_2_27_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.27+ x86-64 Details

Total release size: 4.5 MB

Release files / pyfactxx-1.8.1.zip

Download URL pyfactxx-1.8.1.zip
Size 464.4 kB
Tags Source
SHA-256 checksum
How to use checksums
808b18072dde6aae266164336610e56f0af74e25b07e9a95a2510fa5b497a87a
BLAKE2b-256 checksum
How to use checksums
30c0c7338f4b7e5372c1cbcb4f5958da304ad9943507b82024ab8b3e59001ceb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp310-cp310-win_amd64.whl

Download URL pyfactxx-1.8.1-cp310-cp310-win_amd64.whl
Size 329.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
949ddb027fc391575b3aed955ca4d2bd74f49a434cac50d9e9e7632ba1debe58
BLAKE2b-256 checksum
How to use checksums
3aba510750d2a74a92ae2e3f51d657fecba241b55a381dafacfc4685434e87bf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp310-cp310-manylinux_2_27_x86_64.whl

Download URL pyfactxx-1.8.1-cp310-cp310-manylinux_2_27_x86_64.whl
Size 676.4 kB
Tags CPython 3.10 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
df3b5a8d68ee1b0a08597d85eb88406020345c7a571546e9b07062a1e989914b
BLAKE2b-256 checksum
How to use checksums
fef1d0bb624022e58d0a662b4c7b7adc31656f60388c7d20d98751e28e32b98b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp39-cp39-win_amd64.whl

Download URL pyfactxx-1.8.1-cp39-cp39-win_amd64.whl
Size 330.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
ddf99736e820327a254d89c0b38d763048c49999c9ce290a13cd603fc8304748
BLAKE2b-256 checksum
How to use checksums
1229211c8bff8d3bb50006ff68ad7bdba0baf39c6aada16944c580892c28e64c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp39-cp39-manylinux_2_27_x86_64.whl

Download URL pyfactxx-1.8.1-cp39-cp39-manylinux_2_27_x86_64.whl
Size 678.2 kB
Tags CPython 3.9 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
3af810b3bc39bb05956c9282fa006ba19f25fcda58fe9cc9213bf01f99a5b9c7
BLAKE2b-256 checksum
How to use checksums
739e2369d7dfda26599cb855386c41f096b39c681b2d4c27311c226eaf31cef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp38-cp38-win_amd64.whl

Download URL pyfactxx-1.8.1-cp38-cp38-win_amd64.whl
Size 330.3 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
d6fa041cd7b033c86223fcf9f3188337ed0d894e01db9c8ff497abe706c64af5
BLAKE2b-256 checksum
How to use checksums
48022f1df0f04a267a81b890aec6a725e2c8491d7e2507cfb7cab18df50518a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp38-cp38-manylinux_2_27_x86_64.whl

Download URL pyfactxx-1.8.1-cp38-cp38-manylinux_2_27_x86_64.whl
Size 678.0 kB
Tags CPython 3.8 Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
0df23d4c7d3d00946c7714f9203621170bc9a37c5f0c9a34326471d4426d912f
BLAKE2b-256 checksum
How to use checksums
e4da01a88911fc150857536d7f89bda0fec57725e235c63245be86f3ac484f53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp37-cp37m-win_amd64.whl

Download URL pyfactxx-1.8.1-cp37-cp37m-win_amd64.whl
Size 329.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
e01c3d842bfa57099361067c4da3a3eee52378964558adf1692cb401617ba2e6
BLAKE2b-256 checksum
How to use checksums
af8b2cb9d439a3a913a9e06cab7c5592b535bdfeea230ad62d5769f7c0eae1d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / pyfactxx-1.8.1-cp37-cp37m-manylinux_2_27_x86_64.whl

Download URL pyfactxx-1.8.1-cp37-cp37m-manylinux_2_27_x86_64.whl
Size 676.5 kB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.27+ x86-64
SHA-256 checksum
How to use checksums
afde8f586209bee9773a21ffcbde1c051d1f3fe469ef12a8479e7461e6d422ec
BLAKE2b-256 checksum
How to use checksums
28f2116eb9a4cbfb5afe61bf51863d48b72b2c3c4620c635ea16773c670c60ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

1.8.1 This release

9 release files

1.8.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page