kg-construct / mapping-challenges

Issues for discussion about limitations of current mapping languages
Apache License 2.0
4 stars 9 forks source link

add challenge generate-multiple-values-datatype/language #28

Closed bjdmeest closed 3 years ago

dachafra commented 3 years ago

why should we add a language tag by default? will that info be provided in a metadata file or something?

bjdmeest commented 3 years ago

why should we add a language tag by default? will that info be provided in a metadata file or something?

I could imagine a use case that states 'fill in first names for each language, and use the english label as the default', e.g.

{
    "lastname": "Doe",
    "firstname": [
        {
            "label": "John",
            "lang": "en"
        },
        {
            "label": "Jean",
            "lang": "fr"
        }
    ]
} 

should give output

@prefix ex: "http://example.com"

ex:person/John ex:name "John"@en, "Jean"@fr, "John" .

I'd imagine that being something to be defined in the mapping file. But we could ignore that special case of course, I'm not sure there's any real-world need for this

dachafra commented 3 years ago

Okey! I got it now :-) I think it would be interesting to have the possibility to give the language tag by default. Usually useful for multilingual datasets