Skip to content

Commit de07d57

Browse files
committed
Updates basic Value definition
1 parent a7a84db commit de07d57

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

documentation/modules/ROOT/examples/aspect-sample.ttl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,11 @@
110110
# end::enumeration-simple-declaration-date[]
111111

112112
# tag::value-declaration[]
113-
:ValueOne a samm:Value ;
114-
samm:value 1;
115-
samm:preferredName "ValueOne Preferred Name"@en ;
116-
samm:description "The value one description"@en ;
117-
samm:see <https://en.wikipedia.org/wiki/One> .
113+
:GreenLight a samm:Value ;
114+
samm:value "green" ;
115+
samm:preferredName "Normal"@en ;
116+
samm:description "Indicates that the speed of position change is within specification."@en ;
117+
samm:see <https://en.wikipedia.org/wiki/Traffic_light> .
118118
# end::value-declaration[]
119119

120120
# tag::value-in-example-value-additional[]
@@ -167,10 +167,10 @@
167167
samm:description "Represents if speed of position change is within specification (green), within tolerance (yellow), or outside specification (red)."@en ;
168168
samm:dataType xsd:string ;
169169
samm-c:values (
170-
:GreenLight # A reference to a globally defined samm:Value
170+
:GreenLight # A reference to named described scalar value
171171
"yellow" # A direct literal value
172172
[
173-
a samm:Value ; # An inline complex value with additional metadata
173+
a samm:Value ; # An anonymous described scalar value with additional metadata
174174
samm:value "red" ;
175175
samm:preferredName "Critical Warning"@en ;
176176
samm:description "Indicates that the position change is outside the specification."@en

esmf-semantic-aspect-meta-model/src/test/resources/samm_2_2_0/value-shape/org.eclipse.esmf.test/1.0.0/DefaultValue.ttl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.2.0#> .
1616
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1717

18-
:ValueOne a samm:Value ;
19-
samm:value 1;
20-
samm:preferredName "ValueOne Preferred Name"@en ;
21-
samm:description "The value one description"@en ;
22-
samm:see <https://en.wikipedia.org/wiki/One> .
18+
:GreenLight a samm:Value ;
19+
samm:value "green" ;
20+
samm:preferredName "Normal"@en ;
21+
samm:description "Indicates that the speed of position change is within specification."@en ;
22+
samm:see <https://en.wikipedia.org/wiki/Traffic_light> .

esmf-semantic-aspect-meta-model/src/test/resources/samm_2_2_0/value-shape/org.eclipse.esmf.test/1.0.0/ValueWithEnumeration.ttl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.2.0#> .
1616
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
1717

18-
:SomeValueEnum a samm-c:Enumeration ;
19-
samm:name "SomeValueEnum" ;
20-
samm:preferredName "Some Value Enum"@en ;
21-
samm:description "An enumeration of integers"@en ;
22-
samm:dataType xsd:integer ;
23-
samm-c:values ( :ValueOne ) .
18+
:TrafficLight a samm-c:Enumeration ;
19+
samm:name "TrafficLight" ;
20+
samm:preferredName "Warning Level"@en ;
21+
samm:description "Represents if speed of position change is within specification (green), within tolerance (yellow), or outside specification (red)."@en ;
22+
samm:dataType xsd:string ;
23+
samm-c:values ( :GreenLight ) .
2424

25-
:ValueOne a samm:Value ;
26-
samm:value 1;
27-
samm:preferredName "ValueOne Preferred Name"@en ;
28-
samm:description "The value one description"@en ;
29-
samm:see <https://en.wikipedia.org/wiki/One> .
25+
:GreenLight a samm:Value ;
26+
samm:value "green" ;
27+
samm:preferredName "Normal"@en ;
28+
samm:description "Indicates that the speed of position change is within specification."@en ;
29+
samm:see <https://en.wikipedia.org/wiki/Traffic_light> .

0 commit comments

Comments
 (0)