seminar-wir-bauen-uns-einen.../openrefine/07_3.json

297 lines
7.8 KiB
JSON
Raw Normal View History

2016-11-14 21:41:34 +01:00
[
{
"op": "core/column-reorder",
"description": "Reorder columns",
"columnNames": [
"record - leader",
"record",
"record - datafield",
"record - datafield - tag",
"record - datafield - ind1",
"record - datafield - ind2",
"record - datafield - subfield",
"record - datafield - subfield - code",
"record - controlfield",
"record - controlfield - tag"
]
},
{
"op": "core/text-transform",
"description": "Text transform on cells in column record - leader using expression grel:cells[\"record - controlfield\"].value",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
2016-11-14 21:41:34 +01:00
"facets": [
{
"omitError": false,
2017-01-03 20:08:25 +01:00
"expression": "value",
2016-11-14 21:41:34 +01:00
"selectBlank": false,
"selection": [
{
"v": {
"v": "001",
"l": "001"
}
}
2017-01-03 20:08:25 +01:00
],
"selectError": false,
"invert": false,
"name": "record - controlfield - tag",
"omitBlank": false,
"type": "list",
"columnName": "record - controlfield - tag"
2016-11-14 21:41:34 +01:00
}
2017-01-03 20:08:25 +01:00
]
2016-11-14 21:41:34 +01:00
},
"columnName": "record - leader",
"expression": "grel:cells[\"record - controlfield\"].value",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10
},
{
"op": "core/row-removal",
"description": "Remove rows",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
2016-11-14 21:41:34 +01:00
"facets": [
{
"omitError": false,
2017-01-03 20:08:25 +01:00
"expression": "isBlank(value)",
2016-11-14 21:41:34 +01:00
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
2017-01-03 20:08:25 +01:00
],
"selectError": false,
"invert": false,
"name": "record - datafield - subfield",
"omitBlank": false,
"type": "list",
"columnName": "record - datafield - subfield"
2016-11-14 21:41:34 +01:00
}
2017-01-03 20:08:25 +01:00
]
2016-11-14 21:41:34 +01:00
}
},
{
"op": "core/column-reorder",
"description": "Reorder columns",
"columnNames": [
"record - leader",
"record - datafield - tag",
"record - datafield - subfield",
"record - datafield - subfield - code"
]
},
{
"op": "core/fill-down",
"description": "Fill down cells in column record - datafield - tag",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
"facets": []
2016-11-14 21:41:34 +01:00
},
"columnName": "record - datafield - tag"
},
{
"op": "core/column-addition",
"description": "Create column NEU at index 1 based on column record - leader using expression grel:value",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
"facets": []
2016-11-14 21:41:34 +01:00
},
"newColumnName": "NEU",
"columnInsertIndex": 1,
"baseColumnName": "record - leader",
"expression": "grel:value",
"onError": "set-to-blank"
},
{
"op": "core/transpose-columns-into-rows",
"description": "Transpose cells in 2 column(s) starting with record - leader into rows in one new column named PPN",
"startColumnName": "record - leader",
"columnCount": 2,
"ignoreBlankCells": true,
"fillDown": false,
"combinedColumnName": "PPN",
"prependColumnName": false,
"separator": ":"
},
{
"op": "core/text-transform",
"description": "Text transform on cells in column record - datafield - tag using expression grel:\"001\"",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
2016-11-14 21:41:34 +01:00
"facets": [
{
"omitError": false,
2017-01-03 20:08:25 +01:00
"expression": "isBlank(value)",
2016-11-14 21:41:34 +01:00
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
2017-01-03 20:08:25 +01:00
],
"selectError": false,
"invert": false,
"name": "record - datafield - tag",
"omitBlank": false,
"type": "list",
"columnName": "record - datafield - tag"
2016-11-14 21:41:34 +01:00
}
2017-01-03 20:08:25 +01:00
]
2016-11-14 21:41:34 +01:00
},
"columnName": "record - datafield - tag",
"expression": "grel:\"001\"",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10
},
{
"op": "core/text-transform",
"description": "Text transform on cells in column record - datafield - subfield using expression grel:cells[\"PPN\"].value",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
2016-11-14 21:41:34 +01:00
"facets": [
{
"omitError": false,
2017-01-03 20:08:25 +01:00
"expression": "value",
2016-11-14 21:41:34 +01:00
"selectBlank": false,
"selection": [
{
"v": {
"v": "001",
"l": "001"
}
}
2017-01-03 20:08:25 +01:00
],
"selectError": false,
"invert": false,
"name": "record - datafield - tag",
"omitBlank": false,
"type": "list",
"columnName": "record - datafield - tag"
2016-11-14 21:41:34 +01:00
}
2017-01-03 20:08:25 +01:00
]
2016-11-14 21:41:34 +01:00
},
"columnName": "record - datafield - subfield",
"expression": "grel:cells[\"PPN\"].value",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10
},
{
"op": "core/text-transform",
"description": "Text transform on cells in column record - datafield - tag using expression grel:value + \" : \" + cells[\"record - datafield - subfield - code\"].value",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
"facets": []
2016-11-14 21:41:34 +01:00
},
"columnName": "record - datafield - tag",
"expression": "grel:value + \" : \" + cells[\"record - datafield - subfield - code\"].value",
"onError": "keep-original",
"repeat": false,
"repeatCount": 10
},
{
"op": "core/column-removal",
"description": "Remove column record - datafield - subfield - code",
"columnName": "record - datafield - subfield - code"
},
2017-01-03 20:08:25 +01:00
{
"op": "core/fill-down",
"description": "Fill down cells in column PPN",
"engineConfig": {
"mode": "row-based",
"facets": []
},
"columnName": "PPN"
},
2016-11-14 21:41:34 +01:00
{
"op": "core/row-reorder",
"description": "Reorder rows",
"mode": "record-based",
"sorting": {
"criteria": [
{
2017-01-03 20:08:25 +01:00
"errorPosition": 1,
2016-11-14 21:41:34 +01:00
"caseSensitive": false,
"valueType": "string",
2017-01-03 20:08:25 +01:00
"column": "PPN",
2016-11-14 21:41:34 +01:00
"blankPosition": 2,
2017-01-03 20:08:25 +01:00
"reverse": false
2016-11-14 21:41:34 +01:00
},
{
2017-01-03 20:08:25 +01:00
"errorPosition": 1,
2016-11-14 21:41:34 +01:00
"caseSensitive": false,
"valueType": "string",
2017-01-03 20:08:25 +01:00
"column": "record - datafield - tag",
2016-11-14 21:41:34 +01:00
"blankPosition": 2,
2017-01-03 20:08:25 +01:00
"reverse": false
2016-11-14 21:41:34 +01:00
}
]
}
},
{
"op": "core/column-removal",
"description": "Remove column PPN",
"columnName": "PPN"
},
{
"op": "core/blank-down",
"description": "Blank down cells in column record - datafield - tag",
"engineConfig": {
2017-01-03 20:08:25 +01:00
"mode": "row-based",
"facets": []
2016-11-14 21:41:34 +01:00
},
"columnName": "record - datafield - tag"
},
{
"op": "core/multivalued-cell-join",
"description": "Join multi-valued cells in column record - datafield - subfield",
"columnName": "record - datafield - subfield",
"keyColumnName": "record - datafield - tag",
"separator": "␟"
},
{
"op": "core/key-value-columnize",
"description": "Columnize by key column record - datafield - tag and value column record - datafield - subfield with note column ",
"keyColumnName": "record - datafield - tag",
"valueColumnName": "record - datafield - subfield",
"noteColumnName": ""
2017-01-03 20:08:25 +01:00
},
{
"op": "core/row-removal",
"description": "Remove rows",
"engineConfig": {
"mode": "record-based",
"facets": [
{
"omitError": false,
"expression": "isBlank(value)",
"selectBlank": false,
"selection": [
{
"v": {
"v": true,
"l": "true"
}
}
],
"selectError": false,
"invert": false,
"name": "001",
"omitBlank": false,
"type": "list",
"columnName": "001"
}
]
}
2016-11-14 21:41:34 +01:00
}
]