Skip to content
Ontology development environment for Common Logic (CL)
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
conf
doc
macleod
.gitignore
LICENCE.txt
README.md
setup.py

README.md

Macleod

Installation

Dependencies

At the moment, pyparsing is still required: https://pypi.python.org/pypi/pyparsing, though portions of the code are moving away from it (e.g. clif_converter).

The following dependencies are required:

  • ply
  • pyparsing
  • texttable
  • owlready (only for conversion to OWL)
  • PyQt5 (only for the GUI in macleod/gui/gui_main.py)

This is most easily obtained with sudo pip install [library]

Windows:

For Windows, in addition to the above dependencies, the following additional dependencies are required:

Again, they are most easily obtained via the command pip install [library] (may need administrator rights)

Quick Start

  • Install required dependencies
  • Navigate to the gui subfolder
  • Add the macleod/ and bin/ folders to your python path
  • Execute the gui_alpha.py file with python

To check the consistency of modules you will need to place the prover executables into the provers/ sub-directory. Once you have the provers in the correct directory edit the configuration file for your platform within the conf/ sub-directory.

About the project:

This program consists of a set of scripts designed for key reasoning tasks frequently encountered in ontology design and verification. At the moment it focuses on automating tasks that can be accomplished independent of the semantic of concepts and relations. These tasks are consistency checking of ontologies and their modules as well as checking whether competency questions, providing as ''lemmas'', are entailed.

While the program primarily targets first-order ontologies specified in the Common Logic (CL) syntax, some parts of it can also be used for reasoning about ontologies in LADR (Prover9/Mace4) or TPTP syntax (accepted by many first-order theorem provers and model finders). The tasks are accomplished by running existing automated theorem provers and model finders in parallel to establish consistency or inconsistency of an ontology or a module thereof, or to prove a sentence from an ontology (or module) or to find a counterexample of the sentence. Moreover, the tool exploits the modularity of ontologies, which manifests itself in its file CL imports structure.

In the near future it will be integrated with COLORE to provide design, verification, and other reasoning support for all ontologies in the repository.

Troubleshooting:

certain errors (for example "bad magic number in 'macleod': b'\x03\xf3\r\n': ImportError") that appear after updating the repository locally can be fixed by deleting the Python cache for the macleod directory. This can be accomplished with the command "find . -name *.pyc -delete"

You can’t perform that action at this time.