SMILE Controller
- GraphDB can be installed for your distribution.
- Make sure it's running port
7200
, e.g. http://localhost:7200. - Make sure you have GraphDB running on http://localhost:7200.
- For testing, make sure the username and password are set to
admin
- Create a new test repository. Go to http://localhost:7200
- Create new repository:
- Name the repository (Repository ID) as
smile
- Set context index to True *(checked).
- Set query timeout to 45 second.
- Set the
Throw exception on query timeout
checkmark to True (checked) - Click on create repository.
- Name the repository (Repository ID) as
- Make sure the repository is in "Running" state.
- Create new repository:
A few notes on configurting SMILE to connect to the database.
- The main SMILE Flask application can be configured in the src/config/local_config.yml file.
- The config must match the knowledge source config.yml file. See the following for testing: src/config/local_config_test.yml.
conda env create -f PySMILEController.yml
- You will need to start knowledge source listeners.
cd src
python -i -m smile_controller.main
- To view the results, run
show_trace(trace_id)
, where trace_id is the id of the last trace.
Results can be seen in the <logs>/<trace_id>.txt file
, where <logs>/
is a folder set up in src/config/local_config.yml