Installation

pip

A stable version of Production simulation is periodically updated on pyPi and installed as follows:

pip install ontologysim

github

A stable version of Production simulation is periodically updated on the master and installed as follows:

git clone https://github.com/larsKiefer/ontologysim
cd ontologysim
pip3 install -r requirements.txt

How to check if everything works

run in the example folder the Main.py

Additional installation for ubuntu

installation of odbc, java and some other packages

Problem handling

Owlready2.0

**Java Path**``

  • to use owlready correctly, your java path needs to be set in the owl_config.ini
    • [owl introduction](../configs/owl/owl_config)

Java Memory

if this error occurs

owlready2.base.OwlReadyJavaError: Java error message is:
Error occurred during initialization of VM
Could not reserve enough space for 2048000KB object heap

then you need to reduce the java memory

  1. goto “site-packagesowlready2reasoning.py”

  2. reduce the Java Memory variable to 500

Database

if a database error occurs

  1. Check if file in ProductionSimulation/database/SimulationRun.db exist, otherwise create the missing file

  2. run CreateDatabase.py in ProductionSimulation/database