@@ -130,6 +130,71 @@ export const enumerationCharacteristicClassEntity = `
130
130
:resultStateAttributeValue "ok"^^xsd:string .
131
131
` ;
132
132
133
+ export const enumerationCharacteristicWithEntityInstanceClass = `
134
+ @prefix samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.1.0#> .
135
+ @prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.1.0#> .
136
+ @prefix samm-e: <urn:samm:org.eclipse.esmf.samm:entity:2.1.0#> .
137
+ @prefix unit: <urn:samm:org.eclipse.esmf.samm:unit:2.1.0#> .
138
+ @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
139
+ @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
140
+ @prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
141
+ @prefix : <urn:samm:org.eclipse.esmf.test:1.0.0#> .
142
+
143
+ :TestAspect a samm:Aspect ;
144
+ samm:properties ( :result :metadata ) ;
145
+ samm:operations ( ) ;
146
+ samm:events ( ) .
147
+
148
+ :result a samm:Property ;
149
+ samm:preferredName "result"@en ;
150
+ samm:characteristic :ResultTypes .
151
+
152
+ :metadata a samm:Property ;
153
+ samm:characteristic :MetadataCharacteristic .
154
+
155
+ :ResultTypes a samm-c:Enumeration ;
156
+ samm:preferredName "result types"@en ;
157
+ samm:description "The collection of known result types"@en ;
158
+ samm:dataType :ResultType ;
159
+ samm-c:values ( :ResultType1 :ResultType2 ) .
160
+
161
+ :MetadataCharacteristic a samm:Characteristic ;
162
+ samm:dataType xsd:string .
163
+
164
+ :ResultType a samm:Entity ;
165
+ samm:preferredName "Result Type"@en ;
166
+ samm:properties ( :resultTypeNumber [ samm:property :resultTypeDescription; samm:notInPayload true ] ) .
167
+
168
+ :ResultType1 a :ResultType ;
169
+ :resultTypeDescription ( "ein"@de "one"@en ) ;
170
+ :resultTypeNumber "1"^^xsd:positiveInteger .
171
+
172
+ :ResultType2 a :ResultType ;
173
+ :resultTypeDescription ( "zwei"@de "two"@en ) ;
174
+ :resultTypeNumber "2"^^xsd:positiveInteger .
175
+
176
+ :resultTypeNumber a samm:Property ;
177
+ samm:preferredName "Result type number"@en ;
178
+ samm:description "result type number"@en ;
179
+ samm:characteristic :ResultNumbers .
180
+
181
+ :resultTypeDescription a samm:Property ;
182
+ samm:preferredName "Result Type Description"@en ;
183
+ samm:description "Description of result type"@en ;
184
+ samm:characteristic :ResultTypeDescription .
185
+
186
+ :ResultNumbers a samm-c:Enumeration ;
187
+ samm:preferredName "Result Numbers"@en ;
188
+ samm:description "result numbers"@en ;
189
+ samm:dataType xsd:positiveInteger ;
190
+ samm-c:values ( "1"^^xsd:positiveInteger "2"^^xsd:positiveInteger "21"^^xsd:positiveInteger "30"^^xsd:positiveInteger "35"^^xsd:positiveInteger "40"^^xsd:positiveInteger "41"^^xsd:positiveInteger "42"^^xsd:positiveInteger "43"^^xsd:positiveInteger "50"^^xsd:positiveInteger "60"^^xsd:positiveInteger "61"^^xsd:positiveInteger "70"^^xsd:positiveInteger "75"^^xsd:positiveInteger ) .
191
+
192
+ :ResultTypeDescription a samm-c:Collection ;
193
+ samm:preferredName "Result Type Description"@en ;
194
+ samm:description "Descriptions of result types in English and German"@en ;
195
+ samm:dataType rdf:langString .
196
+ ` ;
197
+
133
198
export const eitherCharacteristicClass = `
134
199
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
135
200
@prefix samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.1.0#>.
0 commit comments