Project

General

Profile

Actions

Idea #15071

closed

Design new vocabulary file format

Added by Tom Morris over 5 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
Due date:
Story points:
-

Description

Based on our previous format, for example:

{
    "strict": false,
    "tags": {
        "fruit": {
            "values": ["pineapple", "tomato", "orange", "banana", "advocado", "lemon", "apple", "peach", "strawberry"],
            "strict": true
        },
        "comments": {},
        "importance": {
            "values": ["critical", "important", "low priority"]
        }
    }
}

...where strict: false was needed to be able to express when the user is permitted to add arbitrary text on keys and/or values, we now need to support multiple labels for a single concept, and the possibility to add translations too, the proposed format would be:

{
    "strict_tags": false,
    "tags": {
        "ID1234567890": {
            "strict": true,
            "labels": [
                {"lang": "en-US", "label": "fruit"},
                {"lang": "en-US", "label": "Fruit"},
                {"lang": "es-ES", "label": "fruta"},
                {"lang": "es-ES", "label": "Fruta"},
                {"lang": "zh-CN", "label": "水果"}
            ],
            "values": {
                "VAL123345": {
                    "labels": [
                        {"lang": "en-US", "label": "pineapple"}, 
                        ...
                    ]
                },
                ...
            }
        },
        "ID1234567891": {
            "labels": [
                {"lang": "en-US", "label: "comment"}
                {"lang": "en-US", "label: "suggestion"}
            ]
        },
    }
}

Of course, this would be useful as a "forward-index", enabling the UI to show the correct data. The UI should be creating a reverse index for data input.

For the first implementation we need to support only one language. Multiple language is left as a future exercise, so "lang" keys aren't needed.


Related issues 2 (0 open2 closed)

Related to Arvados - Idea #14151: Extend vocabulary support for properties to support strong identifiers and multiple labelsResolvedActions
Related to Arvados - Idea #15067: [Workbench 2] Update property editing to use IDsResolvedLucas Di Pentima11/12/2019Actions
Actions #1

Updated by Tom Morris over 5 years ago

  • Parent task deleted (#14151)
Actions #2

Updated by Tom Morris over 5 years ago

  • Tracker changed from Task to Idea
Actions #3

Updated by Tom Morris over 5 years ago

  • Related to Idea #14151: Extend vocabulary support for properties to support strong identifiers and multiple labels added
Actions #4

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #6

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #7

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #8

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #9

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #10

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #11

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #12

Updated by Lucas Di Pentima over 5 years ago

  • Description updated (diff)
Actions #13

Updated by Tom Morris over 5 years ago

  • Target version changed from To Be Groomed to Arvados Future Sprints
Actions #14

Updated by Tom Morris over 5 years ago

  • Related to Idea #15067: [Workbench 2] Update property editing to use IDs added
Actions #15

Updated by Peter Amstutz about 5 years ago

  • Status changed from New to Resolved
Actions #16

Updated by Ward Vandewege about 4 years ago

  • Target version deleted (Arvados Future Sprints)
Actions

Also available in: Atom PDF