Equivalent WoT TD definition

type

Description

It represents the dataType of the data provided or consumed by an OPC UA node or a WoT interaction affordance (property/action).

If data type values are from XSD Schema types or NodeIds to link, e.g., to BaseDataTypes, then those data type values shall be resolved and mapped to the corresponding JSON types and assigned to the type term in the TD.

The mapping from OPC UA datatype to JSON types is specified in Chapter 5.4 OPC UA JSON in “OPC 10000-6: UA Part 6: Mappings” (5.4.2 Built-in Types).

Snippet example in OPC UA (e.g., as nodeset)

<UAVariable NodeId="ns=1;i=2" BrowseName="1:ProductSerialNumber" ParentNodeId="ns=1;i=1" DataType="UInt64"> …

Transformed usage in a TD definition (as snippet)

"properties": {

"1:ProductSerialNumber": { "type ": "number", ……