|
77 | 77 |
|
78 | 78 | # tag::quantity-declaration[] |
79 | 79 | :Parameter a samm:Entity ; |
80 | | - samm:extends samm-e:Quantity ; |
81 | | - samm:properties ( |
82 | | - [ samm:extends samm-e:value ; samm:characteristic :ParameterValueCharacteristic ] |
83 | | - ) . |
| 80 | + samm:extends samm-e:Quantity ; |
| 81 | + samm:properties ( |
| 82 | + [ samm:extends samm-e:value ; samm:characteristic :ParameterValueCharacteristic ] |
| 83 | + ) . |
84 | 84 | :ParameterValueCharacteristic a samm:Characteristic ; |
85 | | - samm:dataType xsd:integer . |
| 85 | + samm:dataType xsd:integer . |
86 | 86 | # end::quantity-declaration[] |
87 | 87 |
|
88 | 88 | # tag::enumeration-simple-declaration-string[] |
|
145 | 145 | ] . |
146 | 146 | # end::value-in-example-value-anonymous[] |
147 | 147 |
|
148 | | -# tag::enumeration-value-type-is-value-reference[] |
| 148 | +# tag::enumeration-value-type-common-start[] |
149 | 149 | :TrafficLight a samm-c:Enumeration ; |
150 | | - samm:name "TrafficLight" ; |
151 | 150 | samm:preferredName "Warning Level"@en ; |
152 | 151 | samm:description "Represents if speed of position change is within specification (green), within tolerance (yellow), or outside specification (red)."@en ; |
153 | 152 | samm:dataType xsd:string ; |
154 | | - samm-c:values ( :GreenLight ) . |
155 | | - |
156 | | -:GreenLight a samm:Value ; |
157 | | - samm:value "green" ; |
158 | | - samm:preferredName "Normal"@en ; |
159 | | - samm:description "Indicates that the speed of position change is within specification."@en ; |
160 | | - samm:see <https://en.wikipedia.org/wiki/Traffic_light> . |
| 153 | + samm-c:values ( |
| 154 | +# end::enumeration-value-type-common-start[] |
| 155 | +# tag::enumeration-value-type-is-value-reference[] |
| 156 | + :GreenLight |
161 | 157 | # end::enumeration-value-type-is-value-reference[] |
162 | | - |
163 | 158 | # tag::enumeration-value-type-in-value-mixed-instance[] |
164 | | -:TrafficLight a samm-c:Enumeration ; |
165 | | - samm:name "TrafficLight" ; |
166 | | - samm:preferredName "Warning Level"@en ; |
167 | | - samm:description "Represents if speed of position change is within specification (green), within tolerance (yellow), or outside specification (red)."@en ; |
168 | | - samm:dataType xsd:string ; |
169 | | - samm-c:values ( |
170 | 159 | :GreenLight # A reference to named described scalar value |
171 | 160 | "yellow" # A direct literal value |
172 | 161 | [ |
|
175 | 164 | samm:preferredName "Critical Warning"@en ; |
176 | 165 | samm:description "Indicates that the position change is outside the specification."@en |
177 | 166 | ] |
| 167 | +# end::enumeration-value-type-in-value-mixed-instance[] |
| 168 | +# tag::enumeration-value-type-common-end[] |
178 | 169 | ) . |
| 170 | +# end::enumeration-value-type-common-end[] |
179 | 171 |
|
| 172 | +# tag::enumeration-value-green-light[] |
180 | 173 | :GreenLight a samm:Value ; |
181 | 174 | samm:value "green" ; |
182 | 175 | samm:preferredName "Normal"@en ; |
183 | 176 | samm:description "Indicates that the speed of position change is within specification."@en ; |
184 | 177 | samm:see <https://en.wikipedia.org/wiki/Traffic_light> . |
185 | | - |
186 | | -# end::enumeration-value-type-in-value-mixed-instance[] |
| 178 | +# end::enumeration-value-green-light[] |
187 | 179 |
|
188 | 180 | # tag::enumeration-complex-declaration[] |
189 | 181 | :Results a samm-c:Enumeration ; |
190 | 182 | samm:dataType :Result ; |
191 | 183 | samm-c:values ( :Success :Failed ) . |
192 | 184 |
|
193 | 185 | :Result a samm:Entity ; |
194 | | - samm:properties ( :status [ samm:property :description; samm:notInPayload "true"^^xsd:boolean ] ) . |
| 186 | + samm:properties ( |
| 187 | + :status |
| 188 | + [ samm:property :description; samm:notInPayload "true"^^xsd:boolean ] |
| 189 | + ) . |
195 | 190 |
|
196 | 191 | :Success a :Result ; |
197 | 192 | :status "SUCCESS" ; |
|
229 | 224 |
|
230 | 225 | # tag::extending-entity-declaration[] |
231 | 226 | :Student a samm:Entity ; |
232 | | - samm:extends :Person ; |
233 | | - samm:properties ( :studentNumber ) . |
| 227 | + samm:extends :Person ; |
| 228 | + samm:properties ( :studentNumber ) . |
234 | 229 |
|
235 | 230 | :Teacher a samm:Entity ; |
236 | | - samm:extends :Person ; |
237 | | - samm:properties ( :employeeNumber ) . |
| 231 | + samm:extends :Person ; |
| 232 | + samm:properties ( :employeeNumber ) . |
238 | 233 |
|
239 | 234 | :Person a samm:Entity ; |
240 | | - samm:properties ( :name :surname ) . |
| 235 | + samm:properties ( :name :surname ) . |
241 | 236 | # end::extending-entity-declaration[] |
242 | 237 |
|
243 | 238 | :studentNumber a samm:Property ; |
244 | | - samm:characteristic samm-c:Text . |
| 239 | + samm:characteristic samm-c:Text . |
245 | 240 |
|
246 | 241 | :employeeNumber a samm:Property ; |
247 | | - samm:characteristic samm-c:Text . |
| 242 | + samm:characteristic samm-c:Text . |
248 | 243 |
|
249 | 244 | :name a samm:Property ; |
250 | | - samm:characteristic samm-c:Text . |
| 245 | + samm:characteristic samm-c:Text . |
251 | 246 |
|
252 | 247 | :surname a samm:Property ; |
253 | | - samm:characteristic samm-c:Text . |
| 248 | + samm:characteristic samm-c:Text . |
254 | 249 |
|
255 | 250 | # tag::abstract-entity-declaration[] |
256 | 251 | :VehicleComponent a samm:AbstractEntity ; |
257 | | - samm:properties ( :typeNumber :manufacturer ) . |
| 252 | + samm:properties ( :typeNumber :manufacturer ) . |
258 | 253 |
|
259 | 254 | :Steeringwheel a samm:Entity ; |
260 | 255 | samm:extends :VehicleComponent ; |
|
269 | 264 | samm:characteristic samm-c:Boolean . |
270 | 265 |
|
271 | 266 | :material a samm:Property ; |
272 | | - samm:characteristic samm-c:Text . |
| 267 | + samm:characteristic samm-c:Text . |
273 | 268 |
|
274 | 269 | # tag::operation-declaration[] |
275 | 270 | :toggle a samm:Operation ; |
|
303 | 298 |
|
304 | 299 | # tag::see-url-declaration[] |
305 | 300 | :lastName a samm:Property ; |
306 | | - samm:see <https://schema.org/familyName> ; |
307 | | - samm:see <http://xmlns.com/foaf/0.1/lastName> ; |
308 | | - samm:characteristic samm-c:Text . |
| 301 | + samm:see <https://schema.org/familyName> ; |
| 302 | + samm:see <http://xmlns.com/foaf/0.1/lastName> ; |
| 303 | + samm:characteristic samm-c:Text . |
309 | 304 | # end::see-url-declaration[] |
310 | 305 |
|
311 | 306 | # tag::see-oid-declaration[] |
312 | 307 | :filterName a samm:Property ; |
313 | | - samm:see <urn:oid:1.3.6.1.4.1.1919.1.1.2> ; |
314 | | - samm:characteristic samm-c:Text . |
| 308 | + samm:see <urn:oid:1.3.6.1.4.1.1919.1.1.2> ; |
| 309 | + samm:characteristic samm-c:Text . |
315 | 310 | # end::see-oid-declaration[] |
316 | 311 |
|
317 | 312 | # tag::see-irdi-declaration[] |
318 | 313 | :drillDiameter a samm:Property ; |
319 | | - # Reference to IRDI 0173-1#02-AAC895#009 |
320 | | - samm:see <urn:irdi:0173-1#02-AAC895%23009> ; |
321 | | - samm:characteristic :Diameter . |
| 314 | + # Reference to IRDI 0173-1#02-AAC895#009 |
| 315 | + samm:see <urn:irdi:0173-1#02-AAC895%23009> ; |
| 316 | + samm:characteristic :Diameter . |
322 | 317 | # end::see-irdi-declaration[] |
323 | 318 |
|
324 | | -:Diameter a samm:Characteristic . |
| 319 | +:Diameter a samm:Characteristic ; |
| 320 | + samm:dataType xsd:int . |
325 | 321 |
|
326 | 322 | # tag::see-dontuse[] |
327 | 323 | :organizationPerson a samm:Property ; |
328 | | - samm:description "See ISO/IEC 11179-6:2015(E), section 3.35"@en ; |
329 | | - samm:characteristic samm-c:Text . |
| 324 | + samm:description "See ISO/IEC 11179-6:2015(E), section 3.35"@en ; |
| 325 | + samm:characteristic samm-c:Text . |
330 | 326 | # end::see-dontuse[] |
331 | 327 |
|
332 | 328 | # tag::measurement-declaration[] |
|
0 commit comments