From 610839ff337140bb4243e4ac6fe3ab8cd2bd96b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Frans=20Pondaco=20Winandy?=
 <jvfpw18@inf.ufpr.br>
Date: Thu, 5 Sep 2019 08:38:25 -0300
Subject: [PATCH] Add tutorial mapping protocol, table definition

---
 mapping_protocols/empty_map_protocol.csv        | 1 +
 mapping_protocols/example_mapping_protocol.csv  | 8 ++++++++
 table_definitions/example_table_definition.json | 6 ++++++
 3 files changed, 15 insertions(+)
 create mode 100644 mapping_protocols/empty_map_protocol.csv
 create mode 100644 mapping_protocols/example_mapping_protocol.csv
 create mode 100644 table_definitions/example_table_definition.json

diff --git a/mapping_protocols/empty_map_protocol.csv b/mapping_protocols/empty_map_protocol.csv
new file mode 100644
index 0000000..9991cbc
--- /dev/null
+++ b/mapping_protocols/empty_map_protocol.csv
@@ -0,0 +1 @@
+Var.Lab,Novo Rótulo,Nome Banco,Tipo de Dado,2018
diff --git a/mapping_protocols/example_mapping_protocol.csv b/mapping_protocols/example_mapping_protocol.csv
new file mode 100644
index 0000000..1ea2486
--- /dev/null
+++ b/mapping_protocols/example_mapping_protocol.csv
@@ -0,0 +1,8 @@
+Var.Lab,Novo Rótulo,Nome Banco,Tipo de Dado,2016
+CODECOUNTRY,Code of the country,cod_country,VARCHAR(3),COUNTRY
+NAMECOUNTRY,Name of the country,country_name,VARCHAR(32),Country
+YEAR,Year,year,INT,Year
+GRADUATIONRATES,Graduation rates represent an estimated percentage of an age group expected to graduate/enter a certain level of education at least once in their lifetime.,graduation_rate,DOUBLE,Value
+ISCEDLEVEL,"Isced level, program in the format: L""X""_C""X""",isced,VARCHAR(5),ISC11_LEVEL_CAT
+SEXCOD,"Code for the sex, F=Womam, M=Male",cod_sex,VARCHAR(1),SEX
+SEXID,"Sex id, 0 = female 1 = male.",sex_id,TINYINT,"~CASE WHEN (""SEX"" = 'F') THEN 0 ELSE 1 END"
diff --git a/table_definitions/example_table_definition.json b/table_definitions/example_table_definition.json
new file mode 100644
index 0000000..b30e72d
--- /dev/null
+++ b/table_definitions/example_table_definition.json
@@ -0,0 +1,6 @@
+ {
+  "pairing_description": "Table with the graduation rates, which represent a percentage of students expected to graduate, used to learn the HOTMapper Tool",
+  "data_source": "Organisation for Economic Co-operation and development",
+  "pk": ["cod_country", "year", "cod_sex", "isced"],
+  "foreign_keys": []
+}
-- 
GitLab