-
The project is set up to run with Python 3.6
-
To avoid conflicts between this Python version and your current version, use a conda environment:
- You will need to install Anaconda from: https://docs.anaconda.com/anaconda/install/
- Create a conda environment with Python 3.6 from:
https://docs.anaconda.com/anaconda/install/ 2. Create a conda environment with Python 3.10 from:
conda create --name Roboprof python=3.10
-
Activate comp474 from:
-
Activate Roboprof from:
conda activate Roboprof
- Make sure that the Python version within your environment is 3.6 from:
python -V
- You need to install dependencies for the project from:
pip install -r requirements.txt
- Create the knowledge base from:
python create_knowledge_base.py
-
Start Apache Fuseki server, which will listen for requests on port 3030
-
Access Fuseki's web interface by navigating to http://localhost:3030/ in your browser
-
Select the 'manage' tab
-
Select the 'new dataset' tab
-
Create a dataset named Roboprof
-
Under the 'existing datasets' tab, select Roboprof dataset
-
Select 'add data' button
-
Select 'select files' button
-
Select 'Vocabulary.ttl' and 'Knowledge_Base.ttl'
-
Select 'upload all' button to upload 'Vocabulary.ttl' and 'Knowledge_Base.ttl'
-
Now the SPARQL server is ready to query
-
Go to the 'query' tab to start querying
After uploading “Knowledge_Base.ttl” and “Vocabulary.ttl” to the SPARQL server, you can execute Statistics queries about the Knowledge Base and 13 given queries from:
python main.py
All output files are stored in /outputs folder
- Navigate to the
roboprof
directory. - Train the Rasa model using the command rasa train.
- Start the Rasa server using the command rasa run --enable-api.
- Interact with the chatbot through the Rasa REST API.