You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/overview/changelog.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,42 @@ This document includes all meaningful changes made to the **Data Package standar
12
12
13
13
[fieldsMatch](/standard/table-schema/#fieldsMatch) has been corrected from array to string to match its definition ([#965](https://github.com/frictionlessdata/datapackage/issues/965)).
14
14
15
+
##### `schema.name` (new)
16
+
17
+
[`name`](/standard/table-schema/#name) allows to specify a name for a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
18
+
19
+
##### `schema.title` (new)
20
+
21
+
[`title`](/standard/table-schema/#title) allows to specify a title for a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
22
+
23
+
##### `schema.description` (new)
24
+
25
+
[`description`](/standard/table-schema/#description) allows to specify a description for a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
26
+
27
+
##### `schema.homepage` (new)
28
+
29
+
[`homepage`](/standard/table-schema/#homepage) allows to specify a homepage for a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
30
+
31
+
##### `schema.version` (new)
32
+
33
+
[`version`](/standard/table-schema/#version) allows to specify a version for a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
34
+
35
+
##### `schema.created` (new)
36
+
37
+
[`created`](/standard/table-schema/#created) allows to specify when a schema was created ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
38
+
39
+
##### `schema.keywords` (new)
40
+
41
+
[`keywords`](/standard/table-schema/#keywords) allows to specify keywords for a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
42
+
43
+
##### `schema.contributors` (new)
44
+
45
+
[`contributors`](/standard/table-schema/#contributors) allows to specify contributors for a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
46
+
47
+
##### `schema.examples` (new)
48
+
49
+
[`examples`](/standard/table-schema/#examples) allows to specify a list of illustrative data resources that use a schema ([#961](https://github.com/frictionlessdata/datapackage/pull/961)).
50
+
15
51
## v2.0
16
52
17
53
This release includes a rich set of specification improvements to make Data Package a finished product (see [announcement](https://frictionlessdata.io/blog/2023/11/15/frictionless-specs-update/)). All changes were reviewed and accepted by the Data Package Working Group.
Copy file name to clipboardExpand all lines: content/docs/standard/data-package.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -229,7 +229,7 @@ An Array of string keywords to assist users searching for the package in catalog
229
229
230
230
### `contributors`
231
231
232
-
The people or organizations who contributed to this Data Package. It `MUST` be an array. Each entry is a Contributor and `MUST` be an `object`. A Contributor `MUST` have at least one property. A Contributor is `RECOMMENDED` to have `title` property and `MAY` contain `givenName`, `familyName`, `path`, `email`, `roles`, and `organization` properties:
232
+
The people or organizations that contributed to this Data Package. It `MUST` be an array. Each entry is a Contributor and `MUST` be an `object`. A Contributor `MUST` have at least one property. A Contributor is `RECOMMENDED` to have `title` property and `MAY` contain `givenName`, `familyName`, `path`, `email`, `roles`, and `organization` properties:
233
233
234
234
-`title`: A string containing a name of the contributor.
235
235
-`givenName`: A string containing the name a person has been given, if the contributor is a person.
Copy file name to clipboardExpand all lines: content/docs/standard/table-schema.mdx
+40-2Lines changed: 40 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,14 +202,14 @@ In contrast with `field.constraints.unique`, `uniqueKeys` allows to define uniqu
202
202
203
203
#### `foreignKeys`{#foreignKeys}
204
204
205
-
A foreign key is a reference where values in a field (or fields) on the table ('resource' in data package terminology) described by this Table Schema connect to values a field (or fields) on this or a separate table (resource). They are directly modelled on the concept of foreign keys in SQL.
205
+
A foreign key is a reference where values in a field (or fields) of the table ('resource' in Data Package terminology) described by this Table Schema connect to values a field (or fields) of this or a separate table (resource). This concept is directly modelled on the concept of foreign keys in SQL.
206
206
207
207
The `foreignKeys` property, if present, `MUST` be an Array. Each entry in the array `MUST` be a `foreignKey`. A `foreignKey``MUST` be a `object` and `MUST` have the following properties:
208
208
209
209
-`fields` - `fields` is an array of strings specifying the field or fields on this resource that form the source part of the foreign key. The structure of the array is as per `primaryKey` above.
210
210
-`reference` - `reference``MUST` be a `object`. The `object`
211
211
-`MUST` have a property `fields` which is an array of strings of the same length as the outer `fields`, describing the field (or fields) references on the destination resource. The structure of the array is as per `primaryKey` above.
212
-
-`MAY` have a property `resource` which is the name of the resource within the current data package, i.e. the data package within which this Table Schema is located. For referencing another data resource the `resource` property `MUST` be provided. For self-referencing, i.e. references between fields in this Table Schema, the `resource` property `MUST` be omitted.
212
+
-`MAY` have a property `resource` which is the name of the resource within the current Data Package, i.e. the Data Package within which this Table Schema is located. For referencing another Data Resource the `resource` property `MUST` be provided. For self-referencing, i.e. references between fields in this Table Schema, the `resource` property `MUST` be omitted.
213
213
214
214
Here's an example:
215
215
@@ -277,6 +277,44 @@ If the value of the `foreignKey.reference.resource` property is an empty string
277
277
Data consumer MUST support the `foreignKey.fields` and `foreignKey.reference.fields` properties in a form of a single string e.g. `"fields": "a"` which was a part of the `v1.0` of the specification.
278
278
:::
279
279
280
+
#### `name`
281
+
282
+
A simple name or identifier for the schema (cf. [Data Package](https://datapackage.org/standard/data-package/#name)).
283
+
284
+
#### `title`
285
+
286
+
A string providing a title or one sentence description for the schema.
287
+
288
+
#### `description`
289
+
290
+
A description of the schema (cf. [Data Package](https://datapackage.org/standard/data-package/#description)).
291
+
292
+
#### `homepage`
293
+
294
+
A URL for the web page associated with the schema.
295
+
296
+
#### `version`
297
+
298
+
A version string identifying the version of the schema (cf. [Data Package](https://datapackage.org/standard/data-package/#version)). If not specified, the schema inherits from the Data Package if distributed in a Data Package descriptor.
299
+
300
+
#### `created`
301
+
302
+
The datetime on which the schema was created (cf. [Data Package](https://datapackage.org/standard/data-package/#created)).
303
+
304
+
#### `keywords`
305
+
306
+
An array of string keywords to assist users searching for the schema in catalogs.
307
+
308
+
#### `contributors`
309
+
310
+
The people or organizations that contributed to the schema (cf. [Data Package](https://datapackage.org/standard/data-package/#contributors)). If not specified the schema inherits from the Data Package if distributed in a Data Package descriptor.
311
+
312
+
#### `examples`
313
+
314
+
A list of Data Resources that use and illustrate the schema.
315
+
316
+
If present, it `MUST` be a non-empty array of objects. Each object is a [Data Resource](https://datapackage.org/standard/data-resource/) that `MUST` at least have the `name` and `path` property. The `path` must be a URL.
317
+
280
318
### Field
281
319
282
320
A field descriptor `MUST` be a JSON `object` that describes a single field. The descriptor provides additional human-readable documentation for a field, as well as additional information that can be used to validate the field or create a user interface for data entry.
0 commit comments