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
I suggest adding another tool, EMLdataset2SQL, that would compose the SQL to load data from an EML dataset into a relational database. Generically any SQL database, but postgres in particular.
I suggest these DDL items:
CREATE TABLE for each entity
attributeName for column names
data type from storageType if present or MeasurementScaleDomain
enumerations could go into a CHECK constraint (just codes) or even a parent table.
And this DML item:
bulk upload with COPY for each table
The DML can write a CREATE TABLE from EML and this may be used for the Quality Engine's data load check. However, the column definitions could be a lot tighter data type. The entityName could be made into an appropriate table name (by substitution of any non alphanumeric character to underscore).
The EML <constraint> element is not a common-pattern-of-usage for LTER datasets. However, some EML datasets do include CONSTRAINTs, for example
When present, <constraint> EML could be used to create primary keys or even foreign keys between tables.
Bulk data load with COPY is much faster than an INSERT statement for each row of data, as the Quality Engine does. There, the INSERT has the purpose of checking each row. Bulk COPY is all or nothing.
The text was updated successfully, but these errors were encountered:
I suggest adding another tool, EMLdataset2SQL, that would compose the SQL to load data from an EML dataset into a relational database. Generically any SQL database, but postgres in particular.
I suggest these DDL items:
And this DML item:
The DML can write a CREATE TABLE from EML and this may be used for the Quality Engine's data load check. However, the column definitions could be a lot tighter data type. The entityName could be made into an appropriate table name (by substitution of any non alphanumeric character to underscore).
The EML
<constraint>
element is not a common-pattern-of-usage for LTER datasets. However, some EML datasets do include CONSTRAINTs, for exampleWhen present,
<constraint>
EML could be used to create primary keys or even foreign keys between tables.Bulk data load with COPY is much faster than an INSERT statement for each row of data, as the Quality Engine does. There, the INSERT has the purpose of checking each row. Bulk COPY is all or nothing.
The text was updated successfully, but these errors were encountered: