Skip to content
Snippets Groups Projects
Commit 8472ce4a authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

added example preset

parent d3ee9721
Branches
No related tags found
No related merge requests found
{
"virtual_views": [
{
"name": "events",
"schema": "main",
"table_creation": {
"operation": "join",
"left_table": [
"original",
"main",
"PrinterEvents"
],
"right_table": [
"original",
"main",
"PrintersTable"
],
"on_cols_left": [
"printerId"
],
"on_cols_right": [
"id"
],
"selected_cols_right": [
"name"
]
},
"transforms": [
{
"operation": "edit_columns",
"additions": {
"0": [
{
"operation": "add_column",
"col_name": "kind",
"value": "'E'",
"target_type": {
"mitm": "text"
}
}
]
},
"drops": [
"id"
],
"renames": {
"name": "object",
"timestamp": "time"
}
}
]
},
{
"name": "measurements",
"schema": "main",
"table_creation": {
"operation": "join",
"left_table": [
"original",
"main",
"SensorTable"
],
"right_table": [
"original",
"main",
"PrintersTable"
],
"on_cols_left": [
"printerId"
],
"on_cols_right": [
"id"
],
"selected_cols_right": [
"name"
],
"right_alias": "printer"
},
"transforms": [
{
"operation": "edit_columns",
"additions": {
"0": [
{
"operation": "add_column",
"col_name": "type",
"value": "position",
"target_type": {
"mitm": "text"
}
}
]
},
"drops": [
"id"
],
"renames": {
"printer.name": "object",
"timestamp": "time",
"positionX": "X",
"positionY": "Y",
"positionZ": "Z"
}
}
]
},
{
"name": "segments",
"schema": "main",
"table_creation": {
"operation": "join",
"left_table": [
"original",
"main",
"PrintJobs"
],
"right_table": [
"original",
"main",
"PrintersTable"
],
"on_cols_left": [
"printerId"
],
"on_cols_right": [
"id"
],
"selected_cols_right": [
"name"
],
"right_alias": "printer"
},
"transforms": [
{
"operation": "edit_columns",
"additions": {
"0": [
{
"operation": "add_column",
"col_name": "concept",
"value": "job",
"target_type": {
"mitm": "text"
}
}
]
},
"drops": [
"geometry",
"settings"
],
"renames": {
"id": "segment_index",
"startTime": "start",
"endTime": "end"
}
}
]
},
{
"name": "intermediate",
"schema": "main",
"table_creation": {
"operation": "join",
"left_table": [
"original",
"main",
"PrintJobs"
],
"right_table": [
"original",
"main",
"PrintersTable"
],
"on_cols_left": [
"printerId"
],
"on_cols_right": [
"id"
],
"selected_cols_right": [
"name"
],
"right_alias": "printer"
},
"transforms": [
{
"operation": "edit_columns",
"renames": {
"printer.name": "object",
"id": "segment_index"
}
}
]
},
{
"name": "segment_data",
"schema": "main",
"table_creation": {
"operation": "join",
"left_table": [
"virtual",
"main",
"intermediate"
],
"right_table": [
"original",
"main",
"PrintingGeometries"
],
"on_cols_left": [
"geometry"
],
"on_cols_right": [
"id"
],
"selected_cols_right": [
"name"
],
"right_alias": "geom"
},
"transforms": [
{
"operation": "edit_columns",
"additions": {
"0": [
{
"operation": "add_column",
"col_name": "type",
"value": "job_config",
"target_type": {
"mitm": "text"
}
},
{
"operation": "extract_json",
"json_col": "settings",
"col_name": "extrusion_temp",
"attributes": {
"extrusion_temp": [
"extrusion_temp"
],
"extrusion_rate": [
"extrusion_rate"
],
"material": [
"material"
],
"mode": [
"mode"
]
}
},
{
"operation": "add_column",
"col_name": "concept",
"value": "job",
"target_type": {
"mitm": "text"
}
}
]
},
"renames": {
"geom.name": "target_geometry"
}
}
]
},
{
"name": "experiment_segment_data",
"schema": "main",
"table_creation": {
"operation": "join",
"left_table": [
"original",
"main",
"WorkpieceQCTable"
],
"right_table": [
"virtual",
"main",
"segments"
],
"on_cols_left": [
"jobId"
],
"on_cols_right": [
"segment_index"
],
"selected_cols_right": [
"segment_index",
"concept"
]
},
"transforms": [
{
"operation": "edit_columns",
"additions": {
"0": [
{
"operation": "add_column",
"col_name": "type",
"value": "workpiece_qc",
"target_type": {
"mitm": "text"
}
}
]
},
"renames": {
"workpieceQuality": "workpiece_quality"
}
}
]
}
],
"concept_mappings": [
{
"mitm": "MAED",
"concept": "event",
"base_table": [
"virtual",
"main",
"events"
],
"type_col": "status",
"inline_relations": [
"time",
"object"
],
"attributes": [
"info"
],
"attribute_dtypes": [
"text"
]
},
{
"mitm": "MAED",
"concept": "measurement",
"base_table": [
"virtual",
"main",
"measurements"
],
"type_col": "status",
"inline_relations": [
"time",
"object"
],
"attributes": [
"x",
"y",
"z"
],
"attribute_dtypes": [
"numeric",
"numeric",
"numeric"
]
},
{
"mitm": "MAED",
"concept": "segment",
"base_table": [
"virtual",
"main",
"segments"
],
"type_col": "concept",
"identity_columns": [
"concept",
"segment_index",
"object"
],
"inline_relations": [
"start",
"end"
]
},
{
"mitm": "MAED",
"concept": "segment_data",
"base_table": [
"virtual",
"main",
"segment_data"
],
"type_col": "type",
"identity_columns": [
"concept",
"segment_index",
"object"
],
"attributes": [
"target_geometry",
"extrusion_temp",
"extrusion_rate",
"material",
"mode"
],
"attribute_dtypes": [
"text",
"integer",
"integer",
"text",
"text"
]
},
{
"mitm": "MAED",
"concept": "segment_data",
"base_table": [
"virtual",
"main",
"experiment_segment_data"
],
"type_col": "type",
"identity_columns": [
"concept",
"segment_index",
"object"
],
"attributes": [
"workpiece_quality"
],
"attribute_dtypes": [
"text"
]
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment