Getting Started with OpenDPI
By Daco Team
OpenDPI (Open Data Product Interface) is a declarative specification for defining data products. In this guide, we'll walk through creating your first data product definition.
What is OpenDPI?
OpenDPI provides a standard way to describe your data products, including:
- Metadata - Title, version, and description
- Connections - How to connect to your data sources
- Ports - The data interfaces your product exposes
- Schema - The structure of your data
Your First Data Product
Create a file called dataproduct.yaml:
opendpi: "1.0.0"
info:
title: My First Data Product
version: "1.0.0"
description: A simple example data product
connections:
main_db:
protocol: postgresql
host: localhost
variables:
database: myapp
schema: public
ports:
users:
description: User information
connections:
- connection:
$ref: "#/connections/main_db"
location: users
schema:
type: object
properties:
id:
type: integer
name:
type: string
email:
type: string
Next Steps
Once you've defined your data product, you can use the Daco CLI to validate, build, and deploy it. Check out our CLI documentation to learn more.