This directory contains example scripts for starting the restapi and interacting with it through a client.
-
Install atomspace and cogutil.
-
Install
flaskandflask-restful. On Ubuntu, this issudo apt install python3-flask python3-flask-restful python3-flask-cors -
Run the following, replace
/path/to/opencog/clonewith your actual git clone path.export PYTHONPATH="${PYTHONPATH}:/usr/lib/python3/dist-packages" -
Start the restapi. There are two options use either one.
- run
python start_restapi.py - run
guile -l start-restapi.scm
- run
-
In a separate terminal run
python exampleclient.pyfor interacting with the atomspace.