Skip to content

データタイル説明欄への自動記述について

Reference

data/tasksupport/metadata-def.jsonに、_featureフィールドを定義することで、自動的に説明欄へ記述します。例えば、以下の例では、lengthと、weight_feature=trueが定義されているため、データタイルの説明欄へ自動的に記述されます。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{
    "length": {
        "name": {
            "ja": "長さ",
            "en": "length"
        },
        "schema": {
            "type": "number"
        },
        "unit": "nm",
        "_feature": true
    },
    "weight": {
        "name": {
            "ja": "重さ",
            "en": "weight"
        },
        "schema": {
            "type": "number"
        },
        "unit": "nm",
        "_feature": true
    },
    "hight": {
        "name": {
            "ja": "高さ",
            "en": "hight"
        },
        "schema": {
            "type": "number"
        },
        "unit": "nm"
    }
}

_featureフィールドがあるメタデータは、以下のフォーマットで変換され、invoice/invoice.jsonbasic.descriptionへ転記されます。

Tip

key名は日本語名のみの対応です。valueはmeta/metadata.jsonを参照します。

invoice/invoice.json記載例

1
2
3
4
5
{
    "basic": {
        "description": "長さ(nm):100\n重さ(nm):200"
    }
}

invoice/invoice.json記載例

1
2
3
4
5
{
    "basic": {
        "description": "長さ:100\n重さ:200"
    }
}