Exposition and group work · Thursday, October 15, 2026
The module begins by modelling the partner problem before querying its data. The RM-ODP separates the concerns of the data platform into five viewpoints, and the Data Model Canvas records the first two of them, enterprise and information, in a single document that the group completes during Sprint 1.
Project ritual
Each group reports the progress of its deliverables, the work planned for this session and the blockers that require a decision.
By the end of the session, students should be able to explain the five RM-ODP viewpoints and the concern each one separates, describe the folders and schemas of the partner Data Package, and write the business and analytical consumption blocks of the Data Model Canvas for the partner.
A dataset opened without a question produces a description of its columns. The question comes from the organisation, and it determines which tables matter, at which grain and under which rules.
The group lists tables and columns, counts rows and draws charts. At the end of the sprint it knows the shape of the data, but it cannot say which of the findings matters to the partner.
The group first states who decides, which decision is at stake and which rules constrain it. The dataset is then read to find the facts that support that decision and to expose the facts that are missing.
Each artefact of the module records one part of this reasoning. The Data Model Canvas is the document in which those parts are written next to each other and kept consistent.
The Reference Model of Open Distributed Processing is the standard ISO/IEC 10746, also published by ITU-T as Recommendations X.901 to X.904. It describes a distributed system through five viewpoints, each with its own set of concerns and its own vocabulary.
A single model that mixes business rules, data structures, components and servers grows unreadable, and every change touches all of it. Separate viewpoints let each concern be written, reviewed and revised on its own.
The standard requires explicit correspondences between viewpoints. A KPI in the information viewpoint traces to an objective in the enterprise viewpoint, and a component in the computational viewpoint processes objects that the information viewpoint defines.
Part 1 is an overview, Part 2 sets the foundations, Part 3 defines the architecture and the viewpoints, and Part 4 gives their formal semantics. The enterprise language was later detailed in ISO/IEC 15414.
Several areas of an organisation produce and consume shared information under rules, through components that run on distributed infrastructure. These are precisely the concerns that the five viewpoints separate.
Each viewpoint asks a different question about the same platform. The last column shows where that question appears in the module project.
| Viewpoint | Question | Main concepts | In the data platform |
|---|---|---|---|
| Enterprise | Why does the system exist, and under which rules? | community, objective, role, process, policy | business objectives, analytical questions, data owner, LGPD |
| Information | Which information is handled, and which constraints does it obey? | information object; invariant, static and dynamic schemas | entities, attributes, relationships, grain, KPI definitions |
| Computational | Which functions process the information, through which interfaces? | computational object, interface, interaction | extraction, transformation and loading components; APIs |
| Engineering | How are those functions distributed and kept reliable? | node, channel, cluster, distribution transparencies | orchestration, retries, reprocessing, partitioning |
| Technology | Which technologies implement the solution? | technology object, implementable standard | Python, Docker, Spark, Prefect, cloud services and their cost |
The five sprints are grouped into three blocks. Each block works on the viewpoints that answer its question, so the project moves from purpose to processing and then to infrastructure.
The partner problem, its decision-makers and rules, and the information that supports the decision. Data Model Canvas, exploratory analysis and the market and risk analysis.
The functions that move and transform data: medallion layers, ETL from object storage, the data warehouse, data cubes and the DataApp package in layers.
How the platform runs and what it costs: DAG orchestration, automated tests, telemetry, cloud pricing, security and access control.
The enterprise viewpoint describes the system as part of an organisation. It names the community that uses it, the objective it serves, the roles people play and the policies that constrain their behaviour.
A group of actors formed to achieve an objective. In the project, the partner areas that produce and consume the data form the community.
The practical result the community expects, stated so that it can be verified, such as reducing stock-outs of a product line.
A position defined by behaviour and independent of the person who holds it. Data owner, data steward and analyst are roles.
The sequence of steps through which the objective is pursued, such as the replenishment of a store's stock.
A rule stated as an obligation, a permission, a prohibition or an authorisation. LGPD requirements and internal sharing rules are policies.
Who decides? Which decision, and how often? Which rule cannot be broken? Who is accountable for each dataset?
The information viewpoint describes the information the system handles, independently of how it is stored or processed. Part 3 of the standard organises that description into three kinds of schema.
Constraints that no state of the system may violate. Stock on hand is never negative, and every sale line refers to an existing product.
The values of the information objects at one point in time, such as the stock position of each product in each store at midnight.
The permitted transitions between states. A purchase order moves from created to approved and then to received, or it is cancelled.
A regional pharmacy chain reports that continuous-use medicines are often missing from its stores. The case is fictitious and serves only to show the reasoning that the groups apply to the partner.
Store managers, the purchasing team, pharmacists and the regional director. The purchasing director is the data owner, and an analyst of the purchasing team acts as data steward.
Reduce stock-outs of continuous-use medicines. The decision at stake is the weekly order quantity for each product in each store.
Sales reduce stock, the system suggests an order, purchasing approves it, the supplier delivers and the store records the receipt.
Health data is sensitive personal data under the LGPD (art. 5, II, and art. 11), and the chain's policy forbids using identifiable prescription data for marketing. Store managers are permitted to see only their own store.
The decision about order quantities needs information about sales, stock and orders. The entities below are what the group would expect to find in the dataset, and the reading of the data confirms or corrects them.
| Entity | Identifier and main attributes | Relationships |
|---|---|---|
store | store_id, city, region | has many stock positions and sale lines |
product | product_id, name, continuous_use, supplier_id | supplied by one supplier |
sale_line | sale_id, product_id, store_id, quantity, sold_at | refers to one product and one store |
stock_position | store_id, product_id, date, on_hand | one row per product, store and day |
purchase_order | order_id, supplier_id, store_id, status, created_at | has many order lines, one per product |
Product-store-days with on_hand = 0 divided by product-store-days observed, computed weekly for continuous-use products.
Invariant: on_hand ≥ 0. Static: the daily stock position. Dynamic: the status of a purchase order.
Every element of the information viewpoint should trace back to an element of the enterprise viewpoint. The chain below is the traceability that the canvas makes visible.
Reduce stock-outs of continuous-use medicines
Which stores run out most often, and of which products?
Weekly stock-out rate by store and product
One stock position per product, store and day
stock_position, product, store
The canvas of the module is divided into groups of numbered blocks. Each group belongs mainly to one or two viewpoints, which tells the group when it can be completed.
| Canvas group | Blocks | Viewpoint | Completed in |
|---|---|---|---|
| Business | 1 objectives · 2 analytical questions · 3 business processes | Enterprise | Sprint 1 |
| Analytical consumption | 4 KPIs · 5 users and consumption · 6 open decisions and risks | Enterprise Information | Sprint 1 |
| Corporate governance | 7 roles · 8 policies and compliance · 9 metadata and maturity | Enterprise Information | Sprint 1 |
| Cube | a–g dimensional model · h–l data · m–p governance | Information | Sprints 1–3 |
| ETL architecture | 10–16 sources, layers, orchestration, load, quality, telemetry, flow | Computational Engineering | Sprints 2–4 |
| Architectural tactics | problem, quality attribute, tactic, evidence, consequences | Engineering Technology | Sprints 4–5 |
A block is complete when another reader can verify it against the partner and the data. The criteria below apply to the blocks that belong to the enterprise and information viewpoints.
Objectives are stated as verifiable results. Analytical questions are phrased as the decision-maker would ask them. Processes are named by a verb and an object, such as "replenish store stock".
Each KPI has a formula, a unit and a periodicity. Each user is linked to the channel through which the data reaches them. Open decisions are written as questions with an owner.
Owner, steward and custodian are named people or areas. Personal and sensitive data are classified under the LGPD. The location of the data catalogue is stated.
The grain fits in one sentence. Facts and metrics are listed with their units. Each dimension answers at least one analytical question from block 2.
The Brazilian Army delivers a versioned package of public data on federal expenditure, with a cutoff from January 2014 to June 2026. Each folder plays a different role, and only the first three contain the data that the pipeline will ingest.
| Folder | Content | Volume | Role in the project |
|---|---|---|---|
01_RAW_EXECUCAO | Monthly expenditure files of the federal executive, one zipped CSV per month | 150 files, about 1 GB | Longitudinal financial series |
02_CURATED_EXECUCAO | Governed monthly and annual panels of the 2nd and 5th Military Regions, plus the 2026H1 extension | 9,936 + 828 + 374 rows | Benchmark for reconciliation |
03_RAW_DOCUMENTAL_2026H1 | Commitment, liquidation and payment documents of the 65 current UGE, nine families | 1,002 files, 417,278 rows | Documentary layer, Jan–Jun 2026 |
04_REFERENCE | UGE registry, organisations (OM), institutional bridges, special cases, IPCA factors, data dictionary | 10 CSV files | Institutional identity and validity |
05_VALIDATION | Execution manifests, acceptance tests, reconciliations and audits of the governed layers | 11 files | Control totals |
06_TEXT_FIXTURES | Invoice (NF) and process number (NUP) signals extracted from free text | 213 + 644 rows | Exploration of text, not governed |
07_CHALLENGE_GUIDE | Charter in Portuguese and English, cutoff note, volumetry diagnosis, evidence matrix | 6 documents | Framing of the challenge |
Each monthly file is the public expenditure extract of the whole federal executive, in which the Army is one body among many. The June 2026 file has 66,068 rows, of which 7,799 belong to the Army Command.
| Group | Columns (code and name pairs) | What it answers |
|---|---|---|
| Time | Ano e mês do lançamento (YYYY/MM) | When the amounts were recorded |
| Who spends | Órgão Superior, Órgão Subordinado, Unidade Gestora, Gestão, Unidade Orçamentária | Which body and which management unit executes |
| For what purpose | Função, Subfunção, Programa Orçamentário, Ação, Plano Orçamentário, Programa Governo, Subtítulo, Localizador, UF, Município, Autor Emenda | The policy and programme the expense serves |
| On what | Categoria Econômica, Grupo de Despesa (GND), Elemento de Despesa, Modalidade da Despesa | The economic nature of the expense |
| How much | Valor Empenhado, Liquidado, Pago, Restos a Pagar Inscritos, Cancelado, Pagos (R$) | The amount at each stage of execution |
separator ; encoding Latin-1 decimal comma "2026/06";"52000";"Ministério da Defesa";…;"970914,05"
The partner has already reduced the raw series to the historical executors of the two regions. The panels are a benchmark against which the groups reconcile their own pipeline, not a substitute for it.
| Column | Meaning |
|---|---|
base_ug | Canonical key of the executor, consolidating the 160xxx and 167xxx codes |
region_canonical | 2ª RM or 5ª RM |
competencia · year | Month as YYYYMM and its year |
committed · liquidated | Commitment and liquidation in nominal reais |
paid_current · paid_rp | Payment of the current budget and of carried-over commitments (restos a pagar) |
*_real | The same amounts deflated by IPCA to reais of December 2025 |
investment_* | Commitment and payment of GND 4, the formal investment group |
universe_semantics | Which universe the row belongs to |
9,936 rows, one per base_ug and month, from 2014 to 2025.
828 rows, one per base_ug and year, with the same measures.
374 rows up to the cutoff 202606, with the executor name, the 2016 archetype and governance columns.
For the first half of 2026, the package adds the documents behind the monthly sums, filtered to the 65 current UGE. Nine families record the commitment, the liquidation and the payment, and the links between them.
| Stage | Family | Rows | Key and links |
|---|---|---|---|
| Commitment (NE) | Despesas_Empenho | 34,197 | Código Empenho; unit, supplier, classification, process, bidding modality, amount |
Despesas_ItemEmpenho | 60,532 | Items of each commitment: sub-element, description, quantity, unit value | |
Despesas_ItemEmpenhoHistorico | 69,364 | Operations on each item over time: inclusion, reinforcement, annulment | |
| Liquidation (NS) | Despesas_Liquidacao | 43,500 | Código Liquidação; unit, supplier, free-text observation |
Despesas_Liquidacao_EmpenhosImpactados | 51,897 | Liquidation → commitment, with the amount liquidated in each | |
| Payment (OB) | Despesas_Pagamento | 75,933 | Código Pagamento; bank order type, supplier, observation, amount |
Despesas_Pagamento_EmpenhosImpactados | 75,752 | Payment → commitment, with the amount paid in each | |
Despesas_Pagamento_FavorecidosFinais | 997 | Final beneficiaries of payments made through lists | |
Despesas_Pagamento_ListaFaturas | 5,106 | Invoice lists settled by a payment, with discounts and interest |
_source_date, _source_member, _source_zip_sha256 and _selection_rule. The two bridge families are N:N, so one liquidation may touch several commitments and one commitment may be liquidated several times.The monthly files say which management unit spent. The reference tables say which organisation that unit is, to which region it belongs and since when, which is what the Regional and Local perspectives of the charter require.
01_uge_correntes lists the 65 current UGE, 29 in the 2nd and 36 in the 5th Military Region, with their physical codes. 02_reconciliacao relates them to the 69 historical executors and flags which ones enter the current totals.
03_dim_om describes 118 organisations keyed by om_id, preferably the CODOM. Three bridges link region to OM, brigade to OM and UGE to supported OM, each with validity dates and evidence status.
07_situacoes_especiais records five transformed or predecessor units. 08_ipca gives the deflation factor of each month to December 2025, and 09_dicionario defines 17 analytical fields.
The last three folders do not feed the pipeline directly. They tell the group whether its results are right, what free text can offer and how the partner frames the challenge.
Acceptance tests (34), column audits of the sources, completeness of documentary fields, document types and the reconciliation between the raw files and the governed 2026H1 layer, month by month.
Invoice numbers found in 213 documents and process numbers (NUP) found in 644. The package states that these signals are not governed dimensions.
The approved charter, the note on cutoff and provenance, the volumetry diagnosis, the evidence matrix that relates the PI-SSEx reports to the corpus, and the README of the governed model.
The README of the package states six rules of use. Each one points to a decision that the information viewpoint of the canvas has to record before any query is written.
The raw file, the curated panel and the documentary families describe the same expenditure at three different grains. Which grain does each analytical question of block 2 need?
A unit appears under a 160xxx and a 167xxx code, and the package counts 65 current UGE against 69 historical executors. Which key should the model use, and how is the difference explained to a manager?
Commitment, liquidation and payment are distinct concepts, and a payment may settle a commitment of an earlier year. Which stage answers the question the partner asks?
The package does not measure clinical efficiency or quality of care. Which KPIs written in block 4 would cross that limit, and how should they be rewritten?
For thirty-five minutes, each group writes the first version of the business and analytical consumption blocks for the partner, using the criteria of the previous slide. The professor goes from group to group and asks for the evidence behind each entry.
One member opens the canvas from the module home page and shares the screen with the group.
Objectives that can be verified, questions as the decision-maker asks them, and processes named by a verb and an object.
At least two KPIs, each with a formula, a unit and a periodicity, traced to an objective of block 1.
Export the JSON and commit it under /docs/data_model_canvas/ before the session moves on to the pre-class task.
The two graded artefacts of the sprint are due at the Sprint Review on Friday, October 23, and are written in the enterprise and information viewpoints. Each one is stored in the group repository at the path indicated below.
A complete canvas supported by a data analysis in a Jupyter Notebook with Apache Spark, focused on opportunities in the partner context.
Market sizing and risk management for the solution, starting with a Value Proposition Canvas of customer jobs, pains and gains.
Lesson 2, on Monday, configures Poetry and Jupyter Notebook on top of this toolchain. Each member should arrive with the four items below working on their own machine.
The interpreter used throughout the module. Apache Spark, required in the Sprint 1 notebook, also needs Java 17.
python3.12 --version # Windows: py -3.12 --version java -version
Containers for Metabase, databases and the services of later sprints. Self-study 4 compares containers with virtual machines.
docker --version docker compose version
Branch, commit and pull request conventions follow the quality criteria of self-study 5, which count towards the Sprint 5 grade.
git clone <group-repository-url>
The documentation of the project, including the canvas and the market and risk workbook, is published from the /docs folder.
pipx install mkdocs mkdocs new . # once, at the repository root mkdocs serve
Lesson 2 starts from work done at home. The class time on Monday goes to the analysis of the partner data and to the presentation of each group, so the environment and the first steps must be ready before the session.
Python 3.12 and Java 17 from the previous slide, plus Poetry, working on every member's machine.
pipx install poetry poetry --version
It generates a small synthetic dataset of the pharmacy case. Run steps 1 and 2 and keep the outputs.
The sections on steps 1 to 4 of the exploratory analysis. Monday starts with a short check on them.
Five readings assigned on Adalove for this session, about 140 minutes in total, with no grade weight. Self-study 5 is assigned by the group advisor.
Benefits an organisation obtains when decisions and strategies are grounded in data analysis.
A ten-block canvas that aligns business and technical areas around the problem a data product solves.
Data discovery as an iterative five-step process for finding patterns and outliers in organisational data.
Architecture, performance and typical use cases of containers compared with virtual machines.
Quality criteria for the group GitHub repository, assessed throughout the module and counted in the Sprint 5 grade.
The workshop is the occasion on which the groups validate with the partner what they have inferred so far. Each group arrives having studied the TAPI and with its questions already written, so that the time with the partner is spent on what the documents and the data cannot answer.
Read the problem statement, the objectives, the scope and the constraints set by the partner, and compare them with blocks 1 to 4 of the canvas. Every difference between the charter and the canvas indicates either a block to be rewritten or a question for the workshop.
Each question starts from a gap found in the session: a decision the group could not attribute to a role, or a KPI without a definition or without an objective in block 1. The group records the questions in its repository, ordered by their effect on the Sprint 1 deliverables.
Learning the Dataset with Data Model Canvas · 15/10/2026 · Prof. Afonso
By the end of the session, students should be able to explain the five RM-ODP viewpoints and the concern each one separates, describe the folders and schemas of the partner Data Package, and write the business and analytical consumption blocks of the Data Model Canvas for the partner from the enterprise and information viewpoints.
Session with in-class flipping. A fifty-minute exposition presents the RM-ODP, the order in which the module covers the viewpoints and the enterprise and information viewpoints on an illustrative case, followed by a discussion of the folders and schemas of the partner Data Package. The groups then write blocks 1 to 4 of the Data Model Canvas for the partner and commit the exported JSON, with the professor going from group to group. The session closes with the pre-class task for Lesson 2: environment, starter notebook and reading.