The following software programs need to be installed:
-
Set these environment variable values:
export GIT_ACCOUNT=senzing export GIT_REPOSITORY=resolver export GIT_ACCOUNT_DIR=~/${GIT_ACCOUNT}.git export GIT_REPOSITORY_DIR="${GIT_ACCOUNT_DIR}/${GIT_REPOSITORY}"
-
Follow steps in clone-repository to install the Git repository.
- Install prerequisites:
- Debian-based installation - For Ubuntu and others
- RPM-based installation - For Red Hat, CentOS, openSuse and others.
-
Make sure the following environment variables are set. Example:
export LD_LIBRARY_PATH=/opt/senzing/g2/lib:/opt/senzing/g2/lib/debian:$LD_LIBRARY_PATH export PYTHONPATH=/opt/senzing/g2/python
-
View
file-input
subcommand parameters. Example:cd ${GIT_REPOSITORY_DIR} ./resolver.py file-input --help
-
Run command for file input/output. Example:
cd ${GIT_REPOSITORY_DIR} ./resolver.py file-input \ --input-file test/test-data-1.json \ --output-file ${GIT_REPOSITORY_DIR}/resolver-output.json
-
Run command for starting HTTP API. Example:
cd ${GIT_REPOSITORY_DIR} ./resolver.py service
-
Test HTTP API. Once service has started, try the HTTP requests.