Icon

01a Restaurants Inspection ETL Pipeline - Development

There has been no title set for this workflow's metadata.

There has been no description set for this workflow's metadata.

Learning objective: In this exercise you'll learn creation of a data transformation workflow for ETL pipeline


Workflow description: This workflow showcases the steps in creation of data transformation workflow for ETL pipeline. Find below the two major tasks performed in this workflow

  • Extract the PDF and JSON files that contain the Inspection score and Inspection reviews of the restaurants

  • Transform the data to estimate the next inspection date and capture the data transformation workflow segment via Integrated Deployment nodes and upload the workflow to KNIME Hub


You'll find the instructions to the exercises in the yellow annotations.

Session 3 - ETL and ELT; Data Pipelines Validation and Deployment Automation

Exercise 1a : Deploy the ETL workflow to KNIME Hub

Transform
Extract
Load

Get text from PDFs and Transform

Get Reviews from JSON files and transform

Calculate next Inspection date

Step 2 : Write the workflow to KNIME Hub

  1. Connect to KNIME Business Hub

    • Use Space Connector node to connect to your private space on the KNIME Business Hub

    • Set knime-edu-hub as the Hub mountpoint, and select the space (ExerciseSpace-User##) provided by your trainer


  2. Write the workflow to KNIME Hub Space

    • In the Workflow Writer node, set the output location to write the workflow as:

      • Write to : KNIME Hub Space

      • (Optional) Folder :Create a folder to save your deployment workflow

    • Make the following changes in the Workflow section

      • Select the option to Overwrite if the workflow exists

      • Check the 'Use custom workflow name' option and name the workflow as 'Inspection Results Transformation Workflow'

    • Execute the workflow to write the data transformation workflow to KNIME Business Hub

PostgreSQL Database


Step 1 : Write the transformed data to database

  1. Connect to PostgreSQL Development database and Update table

    • Provide the username, password, hostname and database name as "l3dedev" provided by the instructors in the PostgreSQL Connection component to connect

    • Provide User schema as userXX and table name as "Inspection-cleaned" in the component

Development Database


String to Date&Time
Capture Workflow End
PDF filepath
Difference between Inspection date
Date&Time Difference
List Files/Folders
append:inspection-cleaned
DB Writer
Capture Workflow Start
Column Filter
Next Inspection date
Date&Time Shift
Tika Parser URL Input
Development DB
PostgreSQL Connection
JSON Path
Read Inspection Reviews
JSON Reader
Text processing
Space Connector
Workflow Writer
Joiner

Nodes

Extensions

Links