Skip to content

Commit

Permalink
Update validation.csv multiple result summary
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Ziemba committed Sep 23, 2020
1 parent 8696ed6 commit 26b462c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 23 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Run [*validation.bat*](validation.bat) script, it will perform preprocessing, va
- each report is saved in two versions: *.html* and *.json*;
- add results for each record to CSV results *\<endpoint\>.csv*, detailed [below](#results-csv-columns).
3. Results:
- after completed validation of all source metadata the following result files are generated: *\<endpoint\>.json*, *\<endpoint\>.services.zip* and *\<endpoint\>.dataset.zip*, detailed [below](#result-files);
- after completed validation of all source metadata the following result files are generated: *\<endpoint\>.json*, *\<endpoint\>.services.zip*, *\<endpoint\>.dataset.zip* and *validation.csv*, detailed [below](#result-files);
- the results can be used to calculate the conformity indicators as detailed [below](#conformity-indicators).

In case the validation does not complete for all source metadata (due to errors, user interruption, etc.), when the transformation is run for the same endpoint again, it will continue processing source metadata that were not processed before, hence are not included in CSV results. To re-validate an endpoint that was validated before, the CSV results file needs to be renamed or moved out of the results folder.
Expand All @@ -55,10 +55,11 @@ All result files are saved in *\<results_folder\>*:
3. *\<endpoint\>.csv* - validation results for each metadata record, detailed [below](#results-csv-columns),
4. *\<endpoint\>.json* - validation results summary and source metadata summary,
5. *\<endpoint\>.services.zip* - validation reports for service metadata records that failed validation,
6. *\<endpoint\>.dataset.zip* - validation reports for dataset, series, missing and unkown metadata records that failed validation.
6. *\<endpoint\>.dataset.zip* - validation reports for dataset, series, missing and unkown metadata records that failed validation,
7. *validation.csv* - validation results summary and source metadata summary for each validation run.

File 2 is produced only after completed preprocessing of all metadata records.
Files 4, 5 and 6 are produced only after completed validation of all metadata records.
Files 4, 5, 6 and 7 are produced/updated only after completed validation of all metadata records.

#### Results CSV columns
- `file_id` - identifies source metadata file and validation reports,
Expand Down
25 changes: 5 additions & 20 deletions pdi/json_summary.ktr
Original file line number Diff line number Diff line change
Expand Up @@ -693,9 +693,6 @@ European Location Interoperability Solutions for e-Government (ELISE)
<limitRowsNumber>0</limitRowsNumber>
<logmessage/>
<fields>
<field>
<name>country</name>
</field>
<field>
<name>endpoint</name>
</field>
Expand Down Expand Up @@ -760,9 +757,9 @@ European Location Interoperability Solutions for e-Government (ELISE)
<fileNameField/>
<create_parent_folder>N</create_parent_folder>
<file>
<name>${results_folder}/etf-results</name>
<name>${results_folder}/validation</name>
<servlet_output>N</servlet_output>
<do_not_open_new_file_init>N</do_not_open_new_file_init>
<do_not_open_new_file_init>Y</do_not_open_new_file_init>
<extention>csv</extention>
<append>Y</append>
<split>N</split>
Expand All @@ -777,18 +774,6 @@ European Location Interoperability Solutions for e-Government (ELISE)
<splitevery/>
</file>
<fields>
<field>
<name>country</name>
<type>String</type>
<format/>
<currency/>
<decimal/>
<group/>
<nullif/>
<trim_type>none</trim_type>
<length>-1</length>
<precision>-1</precision>
</field>
<field>
<name>endpoint</name>
<type>String</type>
Expand Down Expand Up @@ -862,7 +847,7 @@ European Location Interoperability Solutions for e-Government (ELISE)
<precision>-1</precision>
</field>
<field>
<name>service</name>
<name>series</name>
<type>Integer</type>
<format/>
<currency/>
Expand All @@ -874,7 +859,7 @@ European Location Interoperability Solutions for e-Government (ELISE)
<precision>-1</precision>
</field>
<field>
<name>series</name>
<name>service</name>
<type>Integer</type>
<format/>
<currency/>
Expand Down Expand Up @@ -1102,8 +1087,8 @@ European Location Interoperability Solutions for e-Government (ELISE)
"id": endpoint,
"type_count": {
"dataset": dataset,
"service": service,
"series": series,
"service": service,
"unknown": unknown,
"missing": missing,
"duplicate": duplicate
Expand Down

0 comments on commit 26b462c

Please sign in to comment.