Primitive schemas
There is a clear list of available primitive schemas. These schemas can be directly applied as values. This allows you to define values in all formats within the digital twin interface. The following table shows a list of all the available primitives for version 2 of the DTDL:
RFC 3339 is a widely used standard for date-time formats. All primitive schemas related to date and time use this standard. The exception is duration
. duration
uses the ISO 8601 standard, which represents the format of dates and time in the Gregorian calendar.
The IEEE Standard for Floating-Point Arithmetic is used with the double
and float
primitive schemas. UTF-8 is used for string
. This is a widely used standard for variable width encoded character formats.
With that, you have learned about primitive schemas. In the next section, you will learn about complex schemas and their underlaying data types.