Azure digital twin - Query models

Samuel.ArvikaSoft 6 Reputation points
2022-10-11T17:37:45.38+00:00

Hello,

Is there a way to query the DTDL models the same way that we can get query Twins?

I can get all models or one model by ID using the API.
My end goal is that I want to find a specific DTDL model lets say "dtmi:com:example:Building;1" but this model extends from "dtmi:com:example:Space;1".
With one call I want to fetch both models by only specifying the Building model ID, is this possible?

I dont want to get all models because we have a lot of them and I only want to fetch data that is currently relevant.

Thanks!

Azure Digital Twins
Azure Digital Twins
An Azure platform that is used to create digital representations of real-world things, places, business processes, and people.
217 questions
{count} vote

1 answer

Sort by: Most helpful
  1. QuantumCache 20,026 Reputation points
    2022-10-11T19:08:41.47+00:00

    Hello @Samuel.ArvikaSoft Welcome to Q&A forum.

    This is a great question and indeed a good product feedback as well.

    what is your use-case after you get these 2 models based on the building ID? will you be looking for twins or are you just looking to query these models?

    You can't do this type of querying for models today!!

    1 person found this answer helpful.
    0 comments No comments