forked from datamesh-architecture/dataproduct-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataproduct.schema.json
More file actions
314 lines (314 loc) · 11.7 KB
/
dataproduct.schema.json
File metadata and controls
314 lines (314 loc) · 11.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "DataProductSpecification",
"description": "Data product description, including the output ports. It is based on the [Data Product Specification](https://dataproduct-specification.com/).",
"required": ["id", "info"],
"properties": {
"dataProductSpecification": {
"type": "string",
"title": "DataProductSpecificationVersion",
"enum": [
"0.0.1"
],
"description": "Specifies the Data Product Specification being used."
},
"id": {
"type": "string",
"description": "An organizational unique technical identifier for this data product, such as an UUID, URN, string, number. Format must be a valid path parameter for GET and DELETE requests, so no URI or '/' allowed.",
"example": "search-queries-all"
},
"info": {
"type": "object",
"description": "Information about the data product",
"required": ["title", "owner"],
"properties": {
"title": {
"type": "string",
"description": "The display name of this data product",
"example": "Search Queries all"
},
"owner": {
"type": "string",
"description": "The technical id of the team that owns the data product",
"example": "search-team"
},
"description": {
"type": "string",
"example": "All search queries with user interactions"
},
"status": {
"type": "string",
"x-extensible-enum": ["proposed", "in development", "active", "retired"],
"example": "active"
},
"archetype": {
"type": "string",
"description": "The domain data archetype of the data product, such as consumer-aligned, aggregate, source-aligned.",
"x-extensible-enum": ["consumer-aligned", "aggregate", "source-aligned"],
"example": "consumer-aligned"
},
"maturity": {
"type": "string",
"description": "The maturity level of the data product.",
"x-extensible-enum": ["raw", "defined", "managed"],
"example": "managed"
}
}
},
"inputPorts": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "name", "sourceSystemId"],
"properties": {
"id": {
"type": "string",
"description": "A technical identifier for this input port, such as an UUID, URN, string, number.",
"example": "kafka_search_topic"
},
"name": {
"type": "string",
"description": "The display name for this input port.",
"example": "kafka_search_topic"
},
"description": {
"type": "string",
"description": "The description for this input port.",
"example": "Kafka Topic with search events"
},
"sourceSystemId": {
"type": "string",
"description": "A technical identifier for the source system connected to this input port",
"example": "search-service"
},
"type": {
"type": "string",
"description": "The technical type of the output port",
"example": "Kafka"
},
"location": {
"type": "string",
"description": "The location with the actual data",
"example": "search topic"
},
"links": {
"type": "object",
"description": "Links are used to reference external resources, such as schemas or the dataset in a data catalog. You can add any links.",
"additionalProperties": {
"type": "string"
},
"example": {
"schema": "https://catalog.example.com/search/search-queries",
"catalog": "https://catalog.example.com/search/search-queries/"
}
},
"custom": {
"type": "object",
"description": "Custom fields can be used to add additional information to the input port.",
"additionalProperties": {
"type": "string"
}
},
"tags": {
"type": "array",
"description": "Tags are used to categorize input ports.",
"items": {
"type": "string",
"example": "kafka"
},
"example": ["kafka", "search"]
}
}
}
},
"outputPorts": {
"type": "array",
"items": {
"type": "object",
"required": ["id", "name"],
"properties": {
"id": {
"type": "string",
"description": "A technical identifier for this output port, such as an UUID, URN, string, number.",
"example": "snowflake_search_queries_all_npii_v1"
},
"name": {
"type": "string",
"description": "The display name for this output port.",
"example": "snowflake_search_queries_all_npii_v1"
},
"description": {
"type": "string",
"description": "The description for this output port.",
"example": "All search queries and result sets with PII removed."
},
"type": {
"type": "string",
"description": "The technical type of the output port",
"x-extensible-enum": ["snowflake", "kafka", "bigquery", "s3", "postgres", "redshift"],
"example": "snowflake"
},
"status": {
"type": "string",
"description": "The status of the output port implementation. The allowed status values might be customized for your organization.",
"x-extensible-enum": ["proposed", "in development", "active", "retired"],
"example": "active"
},
"location": {
"type": "string",
"description": "DEPRECATED. Use the appropriate fields in server instead.",
"example": "SEARCH_DB.SEARCH_QUERIES_ALL_NPII_V1",
"deprecated": true
},
"server": {
"type": "object",
"properties": {
"project": {
"type": "string",
"description": "The project name (bigquery)",
"example": "dp-search"
},
"dataset": {
"type": "string",
"description": "The dataset name (bigquery)",
"example": "search-queries"
},
"account": {
"type": "string",
"description": "The account name (snowflake)",
"example": "https://acme-test_aws_us_east_2.snowflakecomputing.com"
},
"database": {
"type": "string",
"description": "The database name (snowflake,postgres)",
"example": "SEARCH_DB"
},
"schema": {
"type": "string",
"description": "The schema name (snowflake,postgres)",
"example": "SEARCH_QUERIES_ALL_NPII_V1"
},
"host": {
"type": "string",
"description": "The host name (kafka)",
"example": "kafka.acme.com"
},
"topic": {
"type": "string",
"description": "The topic name (kafka)",
"example": "search-queries"
},
"location": {
"type": "string",
"description": "The location url (s3)",
"example": "s3://acme-search-queries"
},
"delimiter": {
"type": "string",
"description": "The delimiter (s3)",
"example": "\"newline\""
},
"format": {
"type": "string",
"description": "The format of the data, e.g., csv, json, parquet, delta (s3)",
"example": "\"json\""
},
"table": {
"type": "string",
"description": "The table name (postgres)",
"example": "search_queries"
},
"view": {
"type": "string",
"description": "The view name (postgres)",
"example": "search_queries"
},
"share": {
"type": "string",
"description": "The share name (databricks)"
},
"additionalProperties": {
"type": "string"
}
},
"description": "The server contains all connection details to find the actual data. Depending on the output port type, this might be different attributes. The main ones are listed explicitly, but feel free to add your own server info."
},
"links": {
"type": "object",
"description": "Links are used to reference external resources, such as schemas or the dataset in a data catalog. You can add any links.",
"additionalProperties": {
"type": "string"
},
"example": {
"schema": "https://catalog.example.com/search/search-queries",
"catalog": "https://catalog.example.com/search/search-queries/"
}
},
"custom": {
"type": "object",
"description": "Custom fields can be used to add additional information to the output port.",
"additionalProperties": {
"type": "string"
}
},
"containsPii": {
"type": "boolean",
"description": "Flag, if this output port contains personally identifiable information (PII)",
"example": false,
"default": false
},
"autoApprove": {
"type": "boolean",
"description": "Automatically approve requested data usage agreements towards this output port. You might want to use this for public or internal data that is not sensitive.",
"example": false,
"default": false
},
"dataContractId": {
"type": "string",
"description": "The technical identifier of the data contract that is implemented by this output port",
"example": "search-queries-all"
},
"tags": {
"type": "array",
"description": "Tags are used to categorize output ports.",
"items": {
"type": "string",
"example": "snowflake"
},
"example": ["snowflake", "search"]
}
}
}
},
"links": {
"type": "object",
"description": "Links are used to reference external resources, such as schemas or the dataset in a data catalog. You can add any links.",
"additionalProperties": {
"type": "string"
},
"example": {
"dataProduct": "https://example.com/dataproducts/search-queries",
"documentation": "https://git.example.com/search/search-queries/README.md",
"catalog": "https://catalog.example.com/search/search-queries/",
"repository": "https://git.example.com/search/search-queries"
}
},
"custom": {
"type": "object",
"description": "Custom fields can be used to add additional information to the data product.",
"additionalProperties": {
"type": "string"
}
},
"tags": {
"type": "array",
"description": "Tags are used to categorize data products.",
"items": {
"type": "string",
"example": "high-quality"
},
"example": ["high-quality", "marketing"]
}
}
}