Type: langstring
String with optional localization variants. Either a plain, non-langauge-tagged string or a multi-language mapping with at least one value. In JSON, plain strings should be mapped to JSON strings, and multi-language strings should be represented as a dictionary object of a language tag to a value in that language. In RDF, plain strings should be mapped to xsd:string, and multi-language strings to rdf:langString. In multivalued slots, each value is a separate langstring, so plain strings and multi-language mappings may be mixed in one list. When a generator needs the text in one language and it is missing, it uses the en text, or if there is none, the text of the alphabetically first language tag. A plain string is used as is, whatever language is requested.
- URI:
linkml:LocalizedText(https://w3id.org/linkml/LocalizedText) - Base:
LocalizedText - Defined in:
types
Usages
Section titled “Usages”| Used by | Slot | Cardinality |
|---|---|---|
| permissible_value | description | 0..1 |
| alt_description | alt_description_text (description in data) |
1 |
| common_metadata | title | 0..1 |
| common_metadata | description | 0..1 |
| common_metadata | aliases | 0..* |
| common_metadata | comments | 0..* |
| common_metadata | deprecated | 0..1 |
| common_metadata | keywords | 0..* |
| common_metadata | notes | 0..* |
| example | value_description (description in data) |
0..1 |
| local_name | local_name_value | 1 |