For this demonstration we will load the truth set demo files as a set of customers and a watch list. But you could really name them anything based on your use case. For instance, an insider threat use case would have employees and watchlist.
Please follow the instructions below and/or watch this Video tutorial
This demo requires that you have already installed the Senzing API product. If not, please install it via one of the following two methods ...
- To install the product directly in linux, follow the Senzing API Quickstart guide
- Or if you are a fan of docker, visit the the GitHub repository at https://github.com/Senzing/senzing-up
For the next step ...
- If you installed directly in linux, navigate to <your project>/g2/python directory.
- If you installed the senzing-up docker image, execute the <install directory>/docker-bin/senzing-console.sh shell script. From there, navigate to /opt/senzing/g2/python.
From there, your directory structure should look like this ...
Step 1 - Load the the first truthset file as customer records.
From the python directory type ...
./G2Loader.py -P -f demo/truth/truthset-person-v1-set1-data.csv/?data_source=CUSTOMERS
- ./G2Loader.py is a python script that loads files
- the -P parameter causes the database to be purged before loading the file
- the -f parameter specifies the file to load
- the /?data_source=CUSTOMERS assigns the records in the file to a data source
Your screen should look something like this ...
If you received errors on this step it's likely due to the environment not being properly initialized. Try executing the following statement from the python directory ...
source ../setupenv
If you are still receiving errors, something went wrong during installation. Please review the prior installation documents or file a support ticket here
Step 2 - Load the second truthset file as a watchlist.
From the python directory type ...
./G2Loader.py -f demo/truth/truthset-person-v1-set2-data.csv/?data_source=WATCHLIST
- notice that the -P to purge is missing from this command as we want both files loaded together!
- ./G2Loader.py is a python script that loads files
- the -f parameter specifies the file to load
- the /?data_source=WATCHLIST assigns the records in the file to a data source
Your screen should look something like this ...
Comments
0 comments
Please sign in to leave a comment.