Installation
Here's how you install and run the Knowledge Client and the Universal Knowledge Collaboration Network.
-
Berkeley DB libraries need to be available on the system. On a Mac, these can be installed using Homebrew:
brew install berkeley-db4On Ubuntu,
sudo apt install libdb-dev -
Move to the desired directory and clone the GitHub repository using the code below
git clone https://github.com/mikecafarella/KNP -
From the newly created
KNPdirectory, use the following command to install the Knowledge Client package. (Recommended: install within a virtual environment.)pip3 install -e clientThis command will install the client package as
knpsand some required packages. You can usepip3 uninstall knpsto remove the package. -
You can now use
import knpsin python programs. The package APIs can be found at here.
UKCN server configuration
-
To run a UKCN server locally, edit the
personal.yamlfile in the repo root directory, setting the address and port to your liking:server: SERVER_ADDRESS: 'http://127.0.0.1' SERVER_PORT: '4242' -
Use the following commands to configure the flask app and run the server
python server/server.py
Tutorial
Now that you've installed the system, try out the tutorial.