You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This page details *scalar* data types. Such a scalar data type gets used by a Characteristic to further define a Property.
16
+
This page details *scalar* data types. Such a scalar data type gets used by a Characteristic to further define a Property.
17
17
18
18
For modeling Properties that require non-scalar data types, use xref:entities.adoc[Entities].
19
19
@@ -92,6 +92,9 @@ definition in the respective standards and an informative description of their v
92
92
| `https://www.w3.org/TR/rdf11-concepts/#section-Graph-Literal[rdf:langString]` | Strings with language tags | "Hello"@en, "Hallo"@de. Note that this is written in RDF/Turtle syntax, and that only "Hello" and "Hallo" are the actual values. | {ok}
93
93
|===
94
94
95
+
NOTE: When using `rdf:langString`, a language tag *must always* be provided using the `@` syntax (e.g., `"Hello"@en`).
96
+
Using a typed literal form such as `"Hello"^^rdf:langString` is *invalid* and *should cause* the model loading or validation to fail.
97
+
95
98
The following types defined by the XSD and RDF specifications, respectively, are considered
96
99
unsuitable in Aspect Models and _should not_ be used:
As explained in the section xref:modeling-guidelines.adoc#declaring-quantifiable-values-and-measurements[Declaring Quantifiables and Measurements], some values only make sense when they also have a unit assigned to them.
540
540
This unit definition is in many cases fixed at design time, does not change thereafter and therefore at runtime (in the JSON payload for example), only the actual value is transported. +
541
-
There may be scenarios, however, where this permanent fixation on a specific unit might not be sufficient because the unit can only be determined dynamically
541
+
There may be scenarios, however, where this permanent fixation on a specific unit might not be sufficient because the unit can only be determined dynamically
542
542
at runtime, or is a kind of configuration parameter which must be set when the system is being deployed/starting up. In cases like this, a xref:characteristics.adoc#unit-reference-characteristic[UnitReference] characteristic instance can be used to include a dynamic reference to the desired unit from the xref:appendix:unitcatalog.adoc[Unit catalog] and this information is then always included in the payload. The runtime payload refers to the unit using its `samm:curie`, i.e., the unit's URN's element name prefixed with `unit:`.
543
543
544
544
For example an Aspect with the following model:
@@ -554,7 +554,7 @@ can produce a JSON payload that could look something like this:
554
554
----
555
555
{
556
556
"value" : 2.25,
557
-
"unit" : "unit:hectopascal"
557
+
"unit" : "unit:hectopascal"
558
558
}
559
559
----
560
560
@@ -611,7 +611,7 @@ Entities have the following attributes:
611
611
|===
612
612
| Attributes | Description | Required
613
613
| `samm:properties` | The list of Properties which make up the Entity. Leaving out this
614
-
attribute completely is equivalent to having it present with an empty list as value.| {nok}
614
+
attribute completely is equivalent to having it present with an empty list as value.| {nok}
615
615
| `samm:extends` | The Entity which is extended by this Entity | {nok}
616
616
|===
617
617
@@ -707,7 +707,7 @@ Operations have the following attributes:
707
707
|===
708
708
| Attributes | Description | Required
709
709
| `samm:input` | A list of references to Properties that describe the input to the operation. The
710
-
attribute must be present, but the list may be empty. | {ok}
710
+
attribute must be present, but the list may be empty. | {ok}
711
711
| `samm:output` | A single reference to a Property that describes the output of the operation. |
0 commit comments