Chapter 7: Querying Digital Twins
From reading this book, you should now have mastered managing digital twin models and their relationships. In this chapter, we will explain the query language and how to query the data from these models and their relationships. We will start by setting up a usable set demo graph in an Azure Digital Twins instance. After that, we will execute several different types of queries using Azure Digital Twins Explorer and discuss the results. Finally, we will examine several examples of using the .NET SDK to query using C# code.
In this chapter, we will learn how to query and filter models and relationships of an Azure Digital Twins instance using Azure Digital Twins Explorer, and through .NET code.
The following sections can be found in this chapter:
- Setting up a demo graph
- Basic querying
- Querying by model
- Querying relationships
- Filtering results
- Querying using code
- Querying asynchronous calls using code