Uploading ontology models
Each of the discussed ontologies contains a large set of models. Adopting and uploading such models would be time-intensive. As we have learned in previous chapters, the order of uploading models is defined based on how models inherit from each other.
As you have noticed, these ontologies use a certain file structure containing the models. Models that inherit from another model are placed in folders deeper in the structure.
Microsoft provides an application, called the Azure Digital Twins Model Uploader, which is able to upload such a structure by traversing the content of the structure using the Directory.EnumerateFiles
method. In previous examples, connecting to the Azure Digital Twins instance was handled by using the identity and access management (IAM) framework to add the Azure Digital Twins Data Owner role to a user. This application uses an app registration in Azure Active Directory (AAD) to give it access to the Azure Digital Twins instance...