Skip to content

Commit 93898de

Browse files
Add JSON configuration for Wikidata entity matching
This JSON file contains operations for processing multi-valued cells in the 'materialDS' and 'materialWikidata' columns, including splitting, creating, and joining values.
1 parent 9ab7f00 commit 93898de

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
[
2+
{
3+
"op": "core/multivalued-cell-split",
4+
"columnName": "materialDS",
5+
"keyColumnName": "signature",
6+
"mode": "separator",
7+
"separator": "|",
8+
"regex": false,
9+
"description": "Split multi-valued cells in column materialDS"
10+
},
11+
{
12+
"op": "core/column-addition",
13+
"engineConfig": {
14+
"facets": [],
15+
"mode": "row-based"
16+
},
17+
"baseColumnName": "materialDS",
18+
"expression": "grel:cell.cross(\"materials-ds-aat-wikidata\",\"ds_qid\").cells[\"wikidata_qid\"].value[0]",
19+
"onError": "set-to-blank",
20+
"newColumnName": "materialWikidata",
21+
"columnInsertIndex": 4,
22+
"description": "Create column materialWikidata at index 4 based on column materialDS using expression grel:cell.cross(\"materials-ds-aat-wikidata\",\"ds_qid\").cells[\"wikidata_qid\"].value[0]"
23+
},
24+
{
25+
"op": "core/multivalued-cell-join",
26+
"columnName": "materialDS",
27+
"keyColumnName": "signature",
28+
"separator": "|",
29+
"description": "Join multi-valued cells in column materialDS"
30+
},
31+
{
32+
"op": "core/multivalued-cell-join",
33+
"columnName": "materialWikidata",
34+
"keyColumnName": "signature",
35+
"separator": "|",
36+
"description": "Join multi-valued cells in column materialWikidata"
37+
}
38+
]

0 commit comments

Comments
 (0)