JSON Schema¶
The root object of a Metadata.JSON object contains the following fields.
Field |
Type |
Description |
---|---|---|
|
|
Path to the dataset. |
|
|
Tables that compose this dataset. |
|
|
Reletionships between the tables of this dataset. |
|
|
Constraints of this dataset. |
Tables¶
The Table
object contains the following fields.
Field |
Type |
Description |
---|---|---|
|
|
Unique id for the table. |
|
|
Path to the CSV file containing the table. |
|
|
Name of the table. |
|
|
Name of the column (or list of columns) that compose the primary key of the table. |
|
|
Name of the time index column. |
|
|
Whether the CSV file indicated by |
|
|
Number of rows in the table. |
|
|
|
|
|
System to which this table belongs. |
|
|
Application to which this table belongs. |
Each field in the Table
object is specified by a dictionary containing:
Field |
Type |
Description |
---|---|---|
|
|
Name of the field. |
|
|
Data type of the field. |
|
|
Data subtype of the field. |
Data Types¶
The data_type
and data_subtype
fields can take on the following values:
categorical
subtypes: categorical, ordinal, boolean
text
numerical
subtypes: integer, float
datetime
id
other
Foreign Keys¶
The ForeignKey
object represents a relation between two tables and contains the following fields.
Field |
Type |
Description |
---|---|---|
|
|
Id of the child table. |
|
|
Name of the column (or list of columns) from the child table that form this relationship. |
|
|
Id of the parent table. |
|
|
Name of the column (or list of columns) from the parent table that form this relationship. |
Constraints¶
The Constraint
object contains the following fields.
Field |
Type |
Description |
---|---|---|
|
|
Type of |
|
|
Name of the fields of interest. |
|
|
Name of the fields that contribute to the field(s) of interest. |
Each field in the Contraint
object is specified by a dictionary containing:
Field |
Type |
Description |
---|---|---|
|
|
Id of the table to which the field belongs. |
|
|
Name of the field. |