ShrnPrmshr
ShrnPrmshr

Reputation: 363

Azure Digital Twins: what does "GetOntologies" response means?

I am trying to understand the provisioning process of Digital Twins and I am reading this doc: https://learn.microsoft.com/en-us/azure/digital-twins/tutorial-facilities-setup

But I can not follow the point in this section enter image description here

however, I can not understand the response for "dotnet run GetOntologies" enter image description here

Anyone can help me to understand better what are those values? and how are they related to "models are available"?

Upvotes: 1

Views: 94

Answers (1)

Matthijs van der Veer
Matthijs van der Veer

Reputation: 4095

In Azure Digital Twins, the Ontology entity contains a set of all types and subtypes that can be used in your application. In your example the "Required" and "Default" ontology are enabled (this is by default). If you use the REST API to see what the "Default" ontology contains you get the following:

{
  "id": 2,
  "name": "Default",
  "loaded": true,
  "types": [
    {
      "id": 17,
      "category": "SensorDataType",
      "name": "Humidity",
      "disabled": false,
      "logicalOrder": 0
    },
    {
      "id": 18,
      "category": "SensorDataType",
      "name": "Temperature",
      "disabled": false,
      "logicalOrder": 0
    },
    {
      "id": 19,
      "category": "SensorDataSubtype",
      "name": "RoomHumidity",
      "disabled": false,
      "logicalOrder": 0,
      "friendlyName": "Room Humidity"
    }, // etc etc

As you can see in the example above, the ontology has basic definitions for the types of sensors/spaces/data types for things related to Smart Building scenarios. The BACnet and Advanced ontologies just add different and more specific types. When you set an ontology to 'enabled', you can start using those types/subtypes. You can check them out in the REST API with:

https://your-url.your-region.azuresmartspaces.net/management/api/v1.0/ontologies/3?includes=Types

Upvotes: 2

Related Questions