Bilingual strings #5
-
How to model multi-lingual strings ? I propose using language tags as follows: Example:
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 1 reply
-
As per my discussion with @GenFab28, we will wait for other choices if you think there are better options, but if not, we are comfortable for the current example... |
Beta Was this translation helpful? Give feedback.
-
Another choice is to introduce 2 properties like title and titleInLanguage. For example this @context used in TD (Thing Description Ontology)
Example @context:
Example JSON-LD:
I do not recommend this approach because it forces a default language and provides 2 different places in the JSON-LD for a developer to read the data depending on which one is available. |
Beta Was this translation helpful? Give feedback.
-
@saumier : merci Gregory. Si tu ne recommandes pas, on y va avec la première proposition. |
Beta Was this translation helpful? Give feedback.
-
See issue #13 |
Beta Was this translation helpful? Give feedback.
-
@christianroy Note that I removed the "@" in-front of "@none" by adding "none": "@none" to the @context. I also updated the discussion description. |
Beta Was this translation helpful? Give feedback.
-
@christianroy I was just in a W3C meetings and they recommend not aliasing "@none" as "none" because it is not a language and represents the absence of language. If you don't have any objections, I'll remove the alias so "@none" will appear when there is no @Lanuage assigned to the literal. See issues #15 |
Beta Was this translation helpful? Give feedback.
-
All language strings have a language tag prefix like "en" or "fr". When there is no language defined at all, then the prefix is "@none". Example:
|
Beta Was this translation helpful? Give feedback.
All language strings have a language tag prefix like "en" or "fr". When there is no language defined at all, then the prefix is "@none".
Example: