Skip to content

Latest commit

 

History

History
127 lines (84 loc) · 5.66 KB

File metadata and controls

127 lines (84 loc) · 5.66 KB

Overview

We have used the SAP Data Intelligence for the data ingestion and orchestration (see 01-data-ingestion-and-orchestration). To harmonize and model the acquired data, we have used SAP Datasphere which is a comprehensive data service responsible for Data Warehousing in BTP. We used it to build comprehensive views to be consumed in the front-end for specific analytics purposes (for example, to provide a global picture of London bus the service performance in real-time).

To this end, we have exploited the Datasphere integration capabilities (for instance the virtual access to remote table or remote table federation) and the possibility to bring in data by means of external data movement tools (in our case Data Intelligence). Moreover we have integrated, enriched, transformed and modeled the data in Datasphere through graphical views, SQL views and analytic models.

drawing

Here we provide all the objects created in Datasphere for the Urban Public Transport use case in the form of a ".package" file that can be imported in your Datasphere instance in order to reproduce what we developed. NB: it is not guaranteed the file can be imported (for example because of version incompatibilities) and that all the objects will be able to work (see the list of prerequisites below). The .package file contains:

  • the space folder (named URBANPUBLICTRANSPORT);
  • the remote tables definitions (from SAP Digital Vehicle Hub and the HANA Cloud Data Lake);
  • the local tables definitions (created by Data Intelligence or target tables of the views);
  • the graphical and SQL views;
  • the analytic models.

Prerequisites

Brief description of the export content

  • Local tables

    Tables created by the Data Intelligence pipeline.

    • Feeded by load_gtfs_rt_to_datasphere:

      • GTFS_RT
      • GTFS_RT_SPEEDS
    • Feeded by load_gtfs_to_datasphere:

      • agency_di
      • calendar_dates_di
      • calendar_di
      • frequencies_di
      • road_disruptions
      • routes_di
      • shapes_di
      • stop_times_di
      • stops_di
      • trips_di
    • Populated by move_gtfs_rt_to_datalake:

      • vehicle_activity_last_update: technical table used for the data tiering
    • Not feeded by any pipeline:

      • simulation_social_media: it hosts the social media simulated data used to populate the relative dashboard in SAC
  • Remote tables

    • VEHICLE_ACTIVITY: HANA Cloud Data Lake table with the historical data about the bus activity
    • plannedMaintenanceInterval: vehicle planned maintenance from Digital Vehicle Hub
    • registration: vehicle masterdata from Digital Vehicle Hub
    • usage: vehicle usage information from Digital Vehicle Hub
  • Graphical views

    • Used to build Speed_Analysis_Model:

      • vehicle_activity_for_speed_analysis_vw
    • Used to build Digital_Vehicle_Hub_Model:

      • vehicle_activity_vw
      • agency_vw
      • calendar_dates_vw
      • calendar_vw
      • find_latest_load_date
      • frequencies_vw
      • gtfs_rt_vw
      • routes_vw
      • shapes_vw
      • social_media_vw
      • stop_times_vw
      • stops_vw
      • trips_vw
    • Used to build Digital_Vehicle_Hub_Model:

      • dvh_planned_maintenance_vw
      • dvh_vehicle_masterdata_vw
      • dvh_vehicle_usage_vw
    • Used to build Road_Data_Analytic_Model:

      • road_disruptions_vw
  • Analytic models

    • Digital_Vehicle_Hub_Model
    • Road_Data_Analytic_Model
    • Social_Media_Analytic_Model
    • Speed_Analysis_Model
    • Urban_Public_Transport_Model

How to import the .package file

  1. Download the ".package" file from this GitHub repository;

  2. Go to "Transport" at the bottom left and click on "Export" and then on "My Content";

    Screenshot 2023-08-23 at 15 11 20
  3. Load the .package file by clicking on the "Load" button and selecting the file from your local disk;

    Screenshot 2023-08-23 at 17 15 40
  4. Go to Transport/Import. In My Content it will appear the content you uploaded (refresh if it does not), click on it;

    Screenshot 2023-08-23 at 15 12 00
  5. In the "Import options" select the options that apply and all the objects, then click on Import;

    Screenshot 2023-08-23 at 15 12 25
  6. You can enable the automatic deployment in the import procedure. In case you don't do that, you will need to deploy the object one by one.

License

Copyright (c) 2023 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.