Uploading Data into Cogynt
The first task in this exercise is to upload the capitals_training.json file into Cogynt. This involves three steps:
- Creating a project to store the model you'll build.
- Creating a deployment target to specify the data sources for the model.
- Uploading the sample data file for Cogynt to process.
Creating a Project
First, you must create a project. A project is the container for all the different parts of a model in Cogynt. This is where your data will be stored.
To create a project:
- Open Cogynt Authoring.
- On the main screen, click + New Project.
- In the New Project dialog:
- Type a name for your project in the Name field. For this exercise, "Hello World" followed by your initials is recommended (for example, "Hello World CS").
- In the Description field, type an optional description for the project if desired.
- Click Create.
Once the project is created, the next step is to create a deployment target.
Creating a Deployment Target
A deployment target identifies event patterns for deployment, and defines a model's data sources. You'll use the Deployment Management utility to set the initial deployment target. For more information, refer to Deploying Models and Deployment Targets in the Cogynt Authoring User Guide.
Access the Deployment Management utility by clicking the Deployments button in the application toolbar. This brings you to the Deployment Management window. From here, you can put together your deployment target as follows:
- In the Deployment Management window, click the Deployment Targets tab.
- From the Project dropdown menu, select the project you created earlier.
- Click the Add New Deployment Target (+) button.
- In the Create Deployment Target dialog:
- Type a name for the deployment target in the Name field.
- Click Create.
The connection information for an Apache Flink cluster is not a part of a deployment target, as it should have already been set up and configured as part of the Cogynt installation process. If this information is unavailable, contact your system administrator, or reach out to Cogility Support.
Once you have finished creating your deployment target, you can move on to uploading the JSON file.
Uploading a File
With the project and deployment target created, Cogynt is ready to receive the data in the capitals_training.json data set. The next step is to load the file into Cogynt.
To upload the capitals_training.json into Cogynt:
- Open the Data Management Tool.
- Click Data File Upload.
- From the Select Project dropdown menu, select your project.
- From the Select Topic dropdown menu, select + Use New Topic.
- In the New Topic dialog:
- In the Topic field, enter a name for the topic. For this exercise, "capitals_" followed by your initials is recommended (for example, "capitals_cs").
- Click Confirm.
- From the Select Deployment Target dropdown menu, select your deployment target.
- Under Data File, either drag the capitals_training.json file to the space indicated on the page, or click the space to browse for and select the file. A preview of the data is shown if the file was correctly selected.
- Click Upload.
With the data file uploaded, the next step is to build a model to analyze the data.