ArticleslgStudy

science

Data contract

Data contract is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Data contract rather than just read about it. In short: In data management, a data contract is an agreement between data producers and data consumers. It contains a detailed schema creating a link between business (logical representation of the data) and technology (its physical implementation).

Key takeaways

  • Data contract belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Data contract to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Data contract from memory before moving on to harder problems.

Reference excerpt

In data management, a data contract is an agreement between data producers and data consumers. It contains a detailed schema creating a link between business (logical representation of the data) and technology (its physical implementation). A data contract also describes advanced metadata, such as data quality rules, SLA, and behavior. Data contracts can take several forms, but YAML is very common. The Linux Foundation project Bitol has published a data contract standard called Open Data Contract Standard (ODCS). Its current version is 3.0.2.

History In December 2021, Andrew Jones at GoCardless wrote about how they were using Data Contracts, and in October 2022 wrote about their implementation. In August 2022, Jean-Georges Perrin published in the PayPal Technology Blog a popular reference article where he describes the use of data contracts in a Data Mesh implementation. A little later, in May 2023, PayPal open-sourced its Data Contract Template. In June 2023, Andrew Jones published Driving Data Quality with Data Contracts: A comprehensive guide to building reliable, trusted, and effective data platforms, which is, up to now, the only published book on this topic. In November 2023, Bitol, a Linux Foundation project, released the first version of ODCS (Open Data Contract Standard), a compatible fork from the PayPal template. In September 2024, Ronald Angel at Miro wrote about their implementation of data contracts. In October 2024, Bitol released ODCS v3.0.0 with enhanced support for data quality.

Implementation The Apache 2.0-based Bitol project divides data contracts into several sections:

Fundamentals: Contains general information about the contract, like name, domain, version, and much room for information. Schema: Describes the dataset and the schema of the data contract. The schema is a critical element of the contract, it is the support for data quality. A data contract focuses on a single dataset with several tables (and, obviously, columns). Data quality: Describes data quality rules & their parameters. They are tightly linked to the schema defined in the dataset & schema section. Pricing: Explains pricing if/when there is a need to bill customers for using this data product, whether the customer is internal or external. Team: Important part lists stakeholders and the history of their relation with this data contract. It usually excludes consumers. Roles: Lists the roles that a consumer may need to access the dataset depending on the type of access they require. Service-level agreement (SLA): Describes the service-level agreements (SLA). Data, data quality and SLA are combined together as data quality of service. Infrastructure: Describes the servers and storage in potentially several environments, like production, development, test, and so on. Business rules: Describes the rules associated with the organization’s business rules. Custom properties: Covers custom and other properties in a data contract using a list of key–value pairs. This structure offers flexibility without requiring the creation of a new version of the standard whenever someone needs additional properties.

Product-oriented data engineering and management Data contracts are gaining popularity as Data Products are gaining traction.

Best practices Usually, a data contract is created by one data producer for one or many data consumers. A data contract is designed to be enhanced iteratively. Data engineers can start with the few elements in the header and the schema. Over time, data engineers and owners can add more information, like data quality and SLA. Most data contracts are implemented using a YAML file, which is both human -and computer-readable and language-agnostic. The symbol for a data contract is either an equilateral triangle (rotated 90°) – symbolizing schema, business meaning, and SLAs or a file icon.

References

Worked examples

Example 1 — a first encounter with Data contract

Start with the simplest possible case. Write down what Data contract claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Data contract before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Data contract ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Data contract

In research
Data contract appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Data contract in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Data contract is common in secondary-school and first-year university syllabi. It links to neighbouring topics Data management, so understanding it makes those chapters shorter.
In everyday life
Look for Data contract outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Data contract” →

How to study Data contract in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Data contract means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Data contract out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Data contract in simple terms?

In data management, a data contract is an agreement between data producers and data consumers. It contains a detailed schema creating a link between business (logical representation of the data) and technology (its physical implementation).

Why does Data contract matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Data contract?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Data contract.

Tags

  • Data management

Keep exploring