Primitive properties
We will start by creating some primitive properties. Primitive properties are properties of a Digital Twin such as boolean
, double
, float
, integer
, string
, and others. They are used to define the different metadata fields of your model. All the available primitive schemas were listed in Chapter 3, Digital Twin Definition Model.
We will extend the Floor model with two new properties.
Create a new version of the model file for a Floor by executing the following steps:
- Create a new folder called
chapter5
under theModels
folder ofSmartbuildingConsoleApp
. Right-click on theModels
folder and select Add → New folder. - Create a new
.json
file calledfloor.json
in thechapter5
folder that contains the following code:{ "@id": "dtmi:com:smartbuilding:Floor;1", "@type": "Interface", "@context": "dtmi:dtdl:context;2", "displayName"...