LanguageString#

Fully qualified datatype name of the UML model DDI-CDI 1.1beta: DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::LanguageString

Definition#

A data type which describes a string specific to a language/scope combination. It contains the following attributes: language to designate the language, isTranslated with a default value of false to designate if an object is a translation of another language, isTranslatable with a default value of true to designate if the content can be translated, translationSourceLanguage to indicate the source languages used in creating this translation, translationDate, and scope which can be used to define intended audience or use such as internal, external, etc.

Diagram#

Diagram

Attributes#

Attributes
Attributes#

Name

Inherited from

Description

Data Type

Multiplicity

Default value

content

- own datatype -

The content of the string.

String

1..1

isTranslatable

- own datatype -

Indicates whether content is translatable (True) or not (False). An example of something that is not translatable would be a MNEMONIC of an object or a number.

Boolean

0..1

true

isTranslated

- own datatype -

Indicates whether content is a translation (True) or an original (False).

Boolean

0..1

false

language

- own datatype -

Indicates the natural language of content.

XsdLanguage

0..1

scope

- own datatype -

Supports specification of scope for the contained content. Use with the language specification to filter application of content.

String

0..1

structureUsed

- own datatype -

The structure type used. Examples are HTML or restructured text.

ControlledVocabularyEntry

0..1

translationDate

- own datatype -

The date the content was translated. Provision of translation date allows user to verify if translation was available during data collection or other time linked activity.

XsdDate

0..1

translationSourceLanguage

- own datatype -

Lists the natural language(s) of the source. Repeat if source is in multiple languages.

XsdLanguage

0..*

Usage#

Usage
Usage#

Type

Package

Classifier

Attribute

DataType

StructuredDataTypes

InternationalString

languageSpecificString

Encodings#

Syntax representations / encodings

All syntax representations except the Canonical XMI are provided as reference points for specific implementations, or for use as defaults if sufficient in the form presented.

Fragment for the data type LanguageString (entire model as XMI)

  1<packagedElement xmlns:StandardProfile="http://www.omg.org/spec/UML/20131001/StandardProfile"
  2                  xmlns:uml="http://www.omg.org/spec/UML/20131001"
  3                  xmlns:xmi="http://www.omg.org/spec/XMI/20131001"
  4                  xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString"
  5                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString"
  6                  xmi:type="uml:DataType">
  7   <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-ownedComment"
  8                  xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-ownedComment"
  9                  xmi:type="uml:Comment">
 10      <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString"/>
 11      <body>Definition
 12============
 13A data type which describes a string specific to a language/scope combination. It contains the following attributes: language to designate the language, isTranslated with a default value of false to designate if an object is a translation of another language, isTranslatable with a default value of true to designate if the content can be translated, translationSourceLanguage to indicate the source languages used in creating this translation, translationDate, and scope which can be used to define intended audience or use such as internal, external, etc. 
 14
 15
 16</body>
 17   </ownedComment>
 18   <name>LanguageString</name>
 19   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-content"
 20                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-content"
 21                    xmi:type="uml:Property">
 22      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-content-ownedComment"
 23                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-content-ownedComment"
 24                     xmi:type="uml:Comment">
 25         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-content"/>
 26         <body>The content of the string.
 27</body>
 28      </ownedComment>
 29      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-content-lowerValue"
 30                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-content-lowerValue"
 31                   xmi:type="uml:LiteralInteger">
 32         <value>1</value>
 33      </lowerValue>
 34      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-content-upperValue"
 35                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-content-upperValue"
 36                   xmi:type="uml:LiteralUnlimitedNatural">
 37         <value>1</value>
 38      </upperValue>
 39      <name>content</name>
 40      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
 41             xmi:type="uml:PrimitiveType"/>
 42   </ownedAttribute>
 43   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslatable"
 44                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslatable"
 45                    xmi:type="uml:Property">
 46      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslatable-ownedComment"
 47                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslatable-ownedComment"
 48                     xmi:type="uml:Comment">
 49         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslatable"/>
 50         <body>Indicates whether content is translatable (True) or not (False). An example of something that is not translatable would be a MNEMONIC of an object or a number.</body>
 51      </ownedComment>
 52      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslatable-lowerValue"
 53                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslatable-lowerValue"
 54                   xmi:type="uml:LiteralInteger"/>
 55      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslatable-upperValue"
 56                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslatable-upperValue"
 57                   xmi:type="uml:LiteralUnlimitedNatural">
 58         <value>1</value>
 59      </upperValue>
 60      <name>isTranslatable</name>
 61      <defaultValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslatable-defaultValue"
 62                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslatable-defaultValue"
 63                     xmi:type="uml:LiteralBoolean">
 64         <value>True</value>
 65      </defaultValue>
 66      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"
 67             xmi:type="uml:PrimitiveType"/>
 68   </ownedAttribute>
 69   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslated"
 70                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslated"
 71                    xmi:type="uml:Property">
 72      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslated-ownedComment"
 73                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslated-ownedComment"
 74                     xmi:type="uml:Comment">
 75         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslated"/>
 76         <body>Indicates whether content is a translation (True) or an original (False).</body>
 77      </ownedComment>
 78      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslated-lowerValue"
 79                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslated-lowerValue"
 80                   xmi:type="uml:LiteralInteger"/>
 81      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslated-upperValue"
 82                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslated-upperValue"
 83                   xmi:type="uml:LiteralUnlimitedNatural">
 84         <value>1</value>
 85      </upperValue>
 86      <name>isTranslated</name>
 87      <defaultValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-isTranslated-defaultValue"
 88                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-isTranslated-defaultValue"
 89                     xmi:type="uml:LiteralBoolean">
 90         <value>False</value>
 91      </defaultValue>
 92      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#Boolean"
 93             xmi:type="uml:PrimitiveType"/>
 94   </ownedAttribute>
 95   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-language"
 96                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-language"
 97                    xmi:type="uml:Property">
 98      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-language-ownedComment"
 99                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-language-ownedComment"
100                     xmi:type="uml:Comment">
101         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-language"/>
102         <body>Indicates the natural language of content.</body>
103      </ownedComment>
104      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-language-lowerValue"
105                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-language-lowerValue"
106                   xmi:type="uml:LiteralInteger"/>
107      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-language-upperValue"
108                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-language-upperValue"
109                   xmi:type="uml:LiteralUnlimitedNatural">
110         <value>1</value>
111      </upperValue>
112      <name>language</name>
113      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-XMLSchemaDataTypes-XsdLanguage"/>
114   </ownedAttribute>
115   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-scope"
116                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-scope"
117                    xmi:type="uml:Property">
118      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-scope-ownedComment"
119                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-scope-ownedComment"
120                     xmi:type="uml:Comment">
121         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-scope"/>
122         <body>Supports specification of scope for the contained content. Use with the language specification to filter application of content.</body>
123      </ownedComment>
124      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-scope-lowerValue"
125                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-scope-lowerValue"
126                   xmi:type="uml:LiteralInteger"/>
127      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-scope-upperValue"
128                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-scope-upperValue"
129                   xmi:type="uml:LiteralUnlimitedNatural">
130         <value>1</value>
131      </upperValue>
132      <name>scope</name>
133      <type href="http://www.omg.org/spec/UML/20131001/PrimitiveTypes.xmi#String"
134             xmi:type="uml:PrimitiveType"/>
135   </ownedAttribute>
136   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-structureUsed"
137                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-structureUsed"
138                    xmi:type="uml:Property">
139      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-structureUsed-ownedComment"
140                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-structureUsed-ownedComment"
141                     xmi:type="uml:Comment">
142         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-structureUsed"/>
143         <body>The structure type used. Examples are HTML or restructured text.</body>
144      </ownedComment>
145      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-structureUsed-lowerValue"
146                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-structureUsed-lowerValue"
147                   xmi:type="uml:LiteralInteger"/>
148      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-structureUsed-upperValue"
149                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-structureUsed-upperValue"
150                   xmi:type="uml:LiteralUnlimitedNatural">
151         <value>1</value>
152      </upperValue>
153      <name>structureUsed</name>
154      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-ControlledVocabularyEntry"/>
155   </ownedAttribute>
156   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationDate"
157                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationDate"
158                    xmi:type="uml:Property">
159      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationDate-ownedComment"
160                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationDate-ownedComment"
161                     xmi:type="uml:Comment">
162         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationDate"/>
163         <body>The date the content was translated. Provision of translation date allows user to verify if translation was available during data collection or other time linked activity.</body>
164      </ownedComment>
165      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationDate-lowerValue"
166                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationDate-lowerValue"
167                   xmi:type="uml:LiteralInteger"/>
168      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationDate-upperValue"
169                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationDate-upperValue"
170                   xmi:type="uml:LiteralUnlimitedNatural">
171         <value>1</value>
172      </upperValue>
173      <name>translationDate</name>
174      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-XMLSchemaDataTypes-XsdDate"/>
175   </ownedAttribute>
176   <ownedAttribute xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationSourceLanguage"
177                    xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationSourceLanguage"
178                    xmi:type="uml:Property">
179      <ownedComment xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationSourceLanguage-ownedComment"
180                     xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationSourceLanguage-ownedComment"
181                     xmi:type="uml:Comment">
182         <annotatedElement xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationSourceLanguage"/>
183         <body>Lists the natural language(s) of the source. Repeat if source is in multiple languages.</body>
184      </ownedComment>
185      <lowerValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationSourceLanguage-lowerValue"
186                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationSourceLanguage-lowerValue"
187                   xmi:type="uml:LiteralInteger"/>
188      <upperValue xmi:id="DDICDIModels-DDICDILibrary-DataTypes-StructuredDataTypes-LanguageString-translationSourceLanguage-upperValue"
189                   xmi:uuid="http://ddialliance.org/Specification/DDI-CDI/1.0/XMI/#LanguageString-translationSourceLanguage-upperValue"
190                   xmi:type="uml:LiteralUnlimitedNatural">
191         <value>*</value>
192      </upperValue>
193      <name>translationSourceLanguage</name>
194      <isOrdered>true</isOrdered>
195      <type xmi:idref="DDICDIModels-DDICDILibrary-DataTypes-XMLSchemaDataTypes-XsdLanguage"/>
196   </ownedAttribute>
197</packagedElement>

Fragment for the data type LanguageString (entire XML Schema)

 1<xs:element name="LanguageString"
 2            type="LanguageStringXsdType"
 3            xml:id="LanguageString">
 4  <!-- based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::LanguageString -->
 5  <xs:annotation>
 6    <xs:documentation>Definition
 7          ============
 8          A data type which describes a string specific to a language/scope combination. It contains the following attributes: language to designate the language, isTranslated with a default value of false to designate if an object is a translation of another language, isTranslatable with a default value of true to designate if the content can be translated, translationSourceLanguage to indicate the source languages used in creating this translation, translationDate, and scope which can be used to define intended audience or use such as internal, external, etc.</xs:documentation>
 9  </xs:annotation>
10</xs:element>
11<xs:complexType name="LanguageStringXsdType"
12                xml:id="LanguageStringXsdType">
13  <xs:annotation>
14    <xs:documentation>Definition
15          ============
16          A data type which describes a string specific to a language/scope combination. It contains the following attributes: language to designate the language, isTranslated with a default value of false to designate if an object is a translation of another language, isTranslatable with a default value of true to designate if the content can be translated, translationSourceLanguage to indicate the source languages used in creating this translation, translationDate, and scope which can be used to define intended audience or use such as internal, external, etc.</xs:documentation>
17  </xs:annotation>
18  <xs:sequence>
19    <xs:element name="content"
20                type="xs:string"
21                minOccurs="1"
22                maxOccurs="1"
23                xml:id="LanguageString-content">
24      <xs:annotation>
25        <xs:documentation>The content of the string.</xs:documentation>
26      </xs:annotation>
27    </xs:element>
28    <xs:element name="isTranslatable"
29                type="xs:boolean"
30                minOccurs="0"
31                maxOccurs="1"
32                xml:id="LanguageString-isTranslatable">
33      <xs:annotation>
34        <xs:documentation>Indicates whether content is translatable (True) or not (False). An example of something that is not translatable would be a MNEMONIC of an object or a number.</xs:documentation>
35      </xs:annotation>
36    </xs:element>
37    <xs:element name="isTranslated"
38                type="xs:boolean"
39                minOccurs="0"
40                maxOccurs="1"
41                xml:id="LanguageString-isTranslated">
42      <xs:annotation>
43        <xs:documentation>Indicates whether content is a translation (True) or an original (False).</xs:documentation>
44      </xs:annotation>
45    </xs:element>
46    <xs:element name="language"
47                type="xs:language"
48                minOccurs="0"
49                maxOccurs="1"
50                xml:id="LanguageString-language">
51      <xs:annotation>
52        <xs:documentation>Indicates the natural language of content.</xs:documentation>
53      </xs:annotation>
54    </xs:element>
55    <xs:element name="scope"
56                type="xs:string"
57                minOccurs="0"
58                maxOccurs="1"
59                xml:id="LanguageString-scope">
60      <xs:annotation>
61        <xs:documentation>Supports specification of scope for the contained content. Use with the language specification to filter application of content.</xs:documentation>
62      </xs:annotation>
63    </xs:element>
64    <xs:element name="structureUsed"
65                type="ControlledVocabularyEntryXsdType"
66                minOccurs="0"
67                maxOccurs="1"
68                xml:id="LanguageString-structureUsed">
69      <xs:annotation>
70        <xs:documentation>The structure type used. Examples are HTML or restructured text.</xs:documentation>
71      </xs:annotation>
72    </xs:element>
73    <xs:element name="translationDate"
74                type="xs:date"
75                minOccurs="0"
76                maxOccurs="1"
77                xml:id="LanguageString-translationDate">
78      <xs:annotation>
79        <xs:documentation>The date the content was translated. Provision of translation date allows user to verify if translation was available during data collection or other time linked activity.</xs:documentation>
80      </xs:annotation>
81    </xs:element>
82    <xs:element name="translationSourceLanguage"
83                type="xs:language"
84                minOccurs="0"
85                maxOccurs="unbounded"
86                xml:id="LanguageString-translationSourceLanguage">
87      <xs:annotation>
88        <xs:documentation>Lists the natural language(s) of the source. Repeat if source is in multiple languages.</xs:documentation>
89      </xs:annotation>
90    </xs:element>
91  </xs:sequence>
92</xs:complexType>

Fragment for the data type LanguageString (entire JSON Schema)

 1"dt-LanguageString": {
 2  "description": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/LanguageString",
 3  "type": ["object"],
 4  "properties": {
 5    "content": {
 6      "$comment": "cardinality 1..1 – from cdi:LanguageString",
 7      "$ref": "#/defs/xsd:string"
 8    },
 9    "isTranslatable": {
10      "$comment": "cardinality 0..1 – from cdi:LanguageString",
11      "$ref": "#/defs/xsd:boolean"
12    },
13    "isTranslated": {
14      "$comment": "cardinality 0..1 – from cdi:LanguageString",
15      "$ref": "#/defs/xsd:boolean"
16    },
17    "language": {
18      "$comment": "cardinality 0..1 – from cdi:LanguageString",
19      "$ref": "#/defs/xsd:language"
20    },
21    "scope": {
22      "$comment": "cardinality 0..1 – from cdi:LanguageString",
23      "$ref": "#/defs/xsd:string"
24    },
25    "structureUsed": {
26      "$comment": "cardinality 0..1 – from cdi:LanguageString",
27      "$ref": "#/defs/dt-ControlledVocabularyEntry"
28    },
29    "translationDate": {
30      "$comment": "cardinality 0..1 – from cdi:LanguageString",
31      "$ref": "#/defs/xsd:date"
32    },
33    "translationSourceLanguage": {
34      "$comment": "cardinality 0..-1 – from cdi:LanguageString",
35      "if": { "type": "array" },
36      "then": { "items": { "$ref": "#/defs/xsd:language" } },
37      "else": { "$ref": "#/defs/xsd:language" }
38    },
39    "@type": {
40      "const": "LanguageString"
41    }
42  },
43  "required": ["content","@type"],
44  "additionalProperties": false
45},

Fragment for the data type LanguageString (main ontology)

 1# datatype LanguageString
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::LanguageString
 3cdi:LanguageString
 4  a rdfs:Class, owl:Class, ucmis:StructuredDataType;
 5  rdfs:label "LanguageString";
 6  rdfs:comment "Definition\n============\nA data type which describes a string specific to a language/scope combination. It contains the following attributes: language to designate the language, isTranslated with a default value of false to designate if an object is a translation of another language, isTranslatable with a default value of true to designate if the content can be translated, translationSourceLanguage to indicate the source languages used in creating this translation, translationDate, and scope which can be used to define intended audience or use such as internal, external, etc."@en;
 7  
 8  owl:hasKey (cdi:LanguageString-content cdi:LanguageString-isTranslatable cdi:LanguageString-isTranslated cdi:LanguageString-language cdi:LanguageString-scope cdi:LanguageString-structureUsed cdi:LanguageString-translationDate cdi:LanguageString-translationSourceLanguage);
 9.
10
11cdi:LanguageString-content
12  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
13  rdfs:label "content";
14  rdfs:comment "The content of the string."@en;
15  rdfs:domain cdi:LanguageString;
16  rdfs:range xsd:string;
17.
18
19cdi:LanguageString-isTranslatable
20  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
21  rdfs:label "isTranslatable";
22  rdfs:comment "Indicates whether content is translatable (True) or not (False). An example of something that is not translatable would be a MNEMONIC of an object or a number."@en;
23  rdfs:domain cdi:LanguageString;
24  rdfs:range xsd:boolean;
25.
26
27cdi:LanguageString-isTranslated
28  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
29  rdfs:label "isTranslated";
30  rdfs:comment "Indicates whether content is a translation (True) or an original (False)."@en;
31  rdfs:domain cdi:LanguageString;
32  rdfs:range xsd:boolean;
33.
34
35cdi:LanguageString-language
36  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
37  rdfs:label "language";
38  rdfs:comment "Indicates the natural language of content."@en;
39  rdfs:domain cdi:LanguageString;
40  rdfs:range xsd:language;
41.
42
43cdi:LanguageString-scope
44  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
45  rdfs:label "scope";
46  rdfs:comment "Supports specification of scope for the contained content. Use with the language specification to filter application of content."@en;
47  rdfs:domain cdi:LanguageString;
48  rdfs:range xsd:string;
49.
50
51cdi:LanguageString-structureUsed
52  a rdf:Property, owl:ObjectProperty, ucmis:Attribute;
53  rdfs:label "structureUsed";
54  rdfs:comment "The structure type used. Examples are HTML or restructured text."@en;
55  rdfs:domain cdi:LanguageString;
56  rdfs:range cdi:ControlledVocabularyEntry;
57.
58
59cdi:LanguageString-translationDate
60  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
61  rdfs:label "translationDate";
62  rdfs:comment "The date the content was translated. Provision of translation date allows user to verify if translation was available during data collection or other time linked activity."@en;
63  rdfs:domain cdi:LanguageString;
64  rdfs:range xsd:date;
65.
66
67cdi:LanguageString-translationSourceLanguage
68  a rdf:Property, owl:DatatypeProperty, ucmis:Attribute;
69  rdfs:label "translationSourceLanguage";
70  rdfs:comment "Lists the natural language(s) of the source. Repeat if source is in multiple languages."@en;
71  rdfs:domain cdi:LanguageString;
72  rdfs:range xsd:language;
73.

Fragment for the data type LanguageString (entire JSON-LD)

 1{
 2  "@context": [
 3    {
 4      "cdi": "http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/",
 5      "xsd": "http://www.w3.org/2001/XMLSchema#",
 6
 7      "content": {
 8        "@id": "cdi:LanguageString-content",
 9        "@type": "xsd:string"
10      },
11      "isTranslatable": {
12        "@id": "cdi:LanguageString-isTranslatable",
13        "@type": "xsd:boolean"
14      },
15      "isTranslated": {
16        "@id": "cdi:LanguageString-isTranslated",
17        "@type": "xsd:boolean"
18      },
19      "language": {
20        "@id": "cdi:LanguageString-language",
21        "@type": "xsd:language"
22      },
23      "scope": {
24        "@id": "cdi:LanguageString-scope",
25        "@type": "xsd:string"
26      },
27      "structureUsed": {
28        "@id": "cdi:LanguageString-structureUsed",
29        "@type": "@id",
30        "@context": "ControlledVocabularyEntry.jsonld"
31      },
32      "translationDate": {
33        "@id": "cdi:LanguageString-translationDate",
34        "@type": "xsd:date"
35      },
36      "translationSourceLanguage": {
37        "@id": "cdi:LanguageString-translationSourceLanguage",
38        "@type": "xsd:language"
39      },
40      
41      " comment ": "tag:json-should-support-trailing-commas" 
42    }
43  ],
44  "generatedBy": "This code was generated by the Eclipse Acceleo project UCMIS M2T on 2026-04-15 14:38:43.",
45  "basedOn": "based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::LanguageString"
46}

Fragment for the data type LanguageString (entire SHACL - Shapes Constraint Language)

 1# datatype LanguageString
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::LanguageString
 3<#LanguageString> a sh:NodeShape;
 4    sh:targetClass cdi:LanguageString;
 5	sh:message "See http://ddialliance.org/Specification/DDI-CDI/1.0/RDF/LanguageString";
 6	sh:closed true;
 7	sh:ignoredProperties ( owl:sameAs );
 8    sh:property [
 9			sh:path rdf:type;
10			sh:in (   cdi:LanguageString
11			 ) ;
12    ];
13    # attributes
14    sh:property <#LanguageString-content>;
15    sh:property <#LanguageString-isTranslatable>;
16    sh:property <#LanguageString-isTranslated>;
17    sh:property <#LanguageString-language>;
18    sh:property <#LanguageString-scope>;
19    sh:property <#LanguageString-structureUsed>;
20    sh:property <#LanguageString-translationDate>;
21    sh:property <#LanguageString-translationSourceLanguage>;
22
23
24
25.
26
27<#LanguageString-content> a sh:PropertyShape ;
28    sh:path cdi:LanguageString-content;
29    sh:datatype xsd:string;
30    sh:minCount 1;
31    sh:maxCount 1;
32.
33<#LanguageString-isTranslatable> a sh:PropertyShape ;
34    sh:path cdi:LanguageString-isTranslatable;
35    sh:datatype xsd:boolean;
36    sh:maxCount 1;
37.
38<#LanguageString-isTranslated> a sh:PropertyShape ;
39    sh:path cdi:LanguageString-isTranslated;
40    sh:datatype xsd:boolean;
41    sh:maxCount 1;
42.
43<#LanguageString-language> a sh:PropertyShape ;
44    sh:path cdi:LanguageString-language;
45    sh:datatype xsd:language;
46    sh:maxCount 1;
47.
48<#LanguageString-scope> a sh:PropertyShape ;
49    sh:path cdi:LanguageString-scope;
50    sh:datatype xsd:string;
51    sh:maxCount 1;
52.
53<#LanguageString-structureUsed> a sh:PropertyShape ;
54    sh:path cdi:LanguageString-structureUsed;
55    sh:node [ sh:property [ sh:path rdf:type; sh:minCount 1; sh:in (
56        cdi:ControlledVocabularyEntry
57      
58    ) ]];
59    sh:maxCount 1;
60.
61<#LanguageString-translationDate> a sh:PropertyShape ;
62    sh:path cdi:LanguageString-translationDate;
63    sh:datatype xsd:date;
64    sh:maxCount 1;
65.
66<#LanguageString-translationSourceLanguage> a sh:PropertyShape ;
67    sh:path cdi:LanguageString-translationSourceLanguage;
68    sh:datatype xsd:language;
69.

Fragment for the data type LanguageString (entire ShEx - Shape Expressions)

 1# datatype LanguageString
 2# based on the UML data type DDICDIModels::DDICDILibrary::DataTypes::StructuredDataTypes::LanguageString
 3cdi:LanguageStringShape CLOSED {
 4	a [cdi:LanguageString];
 5	cdi:LanguageString-content	xsd:string;
 6	cdi:LanguageString-isTranslatable	xsd:boolean?;
 7	cdi:LanguageString-isTranslated	xsd:boolean?;
 8	cdi:LanguageString-language	xsd:language?;
 9	cdi:LanguageString-scope	xsd:string?;
10	cdi:LanguageString-structureUsed	@cdi:ControlledVocabularyEntryShape?;
11	cdi:LanguageString-translationDate	xsd:date?;
12	cdi:LanguageString-translationSourceLanguage	xsd:language*;
13	}