Tabular Data Service

From Gcube Wiki
Revision as of 15:42, 29 November 2013 by Luigi.fortunati (Talk | contribs) (Model)

Jump to: navigation, search

Overview

Tabular Data is a system that allows to manage the lifecycle of statistical data. It's main characteristics are:

  • Exposes its operation to the end user through a gCube Portlet;
  • Its operations can be invoked programmatically through a gCube Web Service (smart gears);
  • Provides several operations for importing/exporting from/to serveral sources/sinks;
  • Provides data validations and transformations capabilities;
  • Provides means for the management of data management processes automation.

Architecture

Tabular Data system architecture

Tabular data system is made of three main subsystems:

  • Tabular Data Portlet: human centric web application hosted on a gCube web portal. Allows management of the Tabular Data Service system on a per-user basis, allowing invocation of tabular data service methods and additional functionalities with external apps.
  • Tabular Data Service: main component of the tabular data architecture. It exposes several remote interfaces covering different areas of functionalities.
  • Data/Metadata backend: This is where raw tables data and metadata are stored and where the service keeps its management data.

The diagram shows also some of the main components that build up the service, which mainly relates to the operation management area:

  • Operation orchestrator: The operation orchestrator is a component that receives incoming call requests from the service interface and unwinds them into a sequence of operation call. The orchestrator may enforce policies and command automatic operations/validations according to its configuration.
  • Operation modules: Operation modules are classes that brings functionalities to the tabular data service. These functionalities can be reached directly with invocations on the Operation Interface. Operation modules can work directly with data on the Data backend or leverage the cube manager in order to create/clone tables or modify table metadata.
  • Cube manager: The cube manager is the lowest level component of the service stack. Its main responsibilites are managing the creation/modification of tables (and their metadata) and acting as a registry for all the created tables, allowing retrieval of tables metadata.

Model

Tables in the Tabular Data system are entities made of two separate elements:

  • Raw data: This can be imagined as the data contained in user provided CSV files
  • Metadata
    • Data structure: this metadata describes how data is structured (e.g.: columns number or column data type) and how raw data can be reached
    • Enriching Metadata: This metadata adds information on top of raw data and provides some context or additional information on top of it.

Raw data is managed directly by leveraging relational database services (PostgreSQL with Postgis extension). Metadata is managed and represented through a metadata model library called Luigi.fortunati tabular-model. Tabular Model provides

  • a description for tables entities covering the minimum table structure description requrements
  • elements that helps in enriching tables with additional metadata (column labels, descriptions, table version, etc.)

Tabular Model is Luigi.fortunati GWT friendly, which means that it can be used in GWT Web application on client side, since it's java beans are translatable into javascript code.

Service

Main Cube Manager link