Comments (1)
Quick update to say that this is sorted thanks to the new release of multi joins. https://docs.microsoft.com/en-us/azure/digital-twins/how-to-query-graph#query-with-multiple-joins.
It is limited to 5, but that is exactly what I need. So for the scenario above, the following query works with regards to providing the sensors in spaces (rooms and desks in this case). Sensor anywhere else did not come up in that query.
SELECT Sensor
FROM DIGITALTWINS Building
JOIN Floor RELATED Building.contains
JOIN Zone RELATED Floor.contains
JOIN Space RELATED Zone.contains
JOIN Sensor RELATED Space.contains
WHERE Building.$dtId = 'myBuildingId'
Using the IN operator (see example with list of floors here https://docs.microsoft.com/en-gb/azure/digital-twins/how-to-query-graph#query-best-practices) would have been good enough for 1 level of relationship, but really helps a lot.
Hope that helps others too.
Thanks to the ADT team for this feature.
Dan
from digital-twins-samples.
Related Issues (19)
- CreateDigitalTwin in SampleClientApp doesn't support float schema type HOT 1
- Strict Transport Security: REDACTED HOT 2
- Temperature Update HOT 2
- The JSON value could not be converted to System.DateTimeOffset. Path: $.lastUpdateTime HOT 5
- DeviceSimulator does not use IoT Plug and Play
- command need to be replaced HOT 2
- TwinsFunction name issue HOT 2
- "Subdomain not found" HOT 4
- command 'az timeseriesinsights'= 'CommandNotFoundError: 'timeseriesinsights' is misspelled or not recognized by the system.' HOT 3
- Setup (with SetupBuildingScenario) fails intermittently due to eventually consistency of datastore
- 403 errors when authenticating with service principle with Azure Functions
- Fail to deploy the published functions (zip file) to my Azure function app HOT 1
- error AZF0001: Async void can lead to unexpected behavior, Return Task instead. HOT 2
- The previously published function cannot be found HOT 2
- Error Creating Models From Directory HOT 1
- (NotFound) Error retrieving function. for az functionapp show HOT 1
- Error while creating the zip file to deploy onto Azure Functions
- New PR to Function to update Temperature Telemetry
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from digital-twins-samples.