question

GautamG-0450 avatar image
0 Votes"
GautamG-0450 asked SatishBoddu-MSFT answered

Is there a way to define/execute custom data integrity checks on the Azure Digital Twin data?

Is there a way to define/execute custom data integrity checks on the Azure Digital Twin data?

Eg:

We have a model for Person with property name, gender and age.

Person1/Person2/Person3 are twins of type Person.

Person2 <motherOf> Person1 would imply we cannot have Person2 gender as "Male".

How can such checks be defined and performed on the data level?

azure-digital-twins
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GautamG-0450 thanks for your query. Community SME's on this topic or our team will review your scenario and circle back at the possible earliest time.

1 Vote 1 ·

Hello,

We are checking this with our team, will update you soon.

1 Vote 1 ·

1 Answer

SatishBoddu-MSFT avatar image
0 Votes"
SatishBoddu-MSFT answered

Hello @GautamG-045, Below is the response from the product team, hope it is helpful with your initial query.


The logic required in this example would need to be implemented by the application that is updating/creating the new digital twin. Depending on the case, the application may need to query information about related twins to perform such checks.

You may be interested in checking DTDL Validator - Code Samples | Microsoft Docs in case that helps.

Please comment in the below section if you need further help in this regard!
If the response is helpful, please click "Accept Answer" and upvote it.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.