Skip to content

Commit 5d7df45

Browse files
Merge pull request #226880 from baanders/2-9-acro
ADT: Acrolinx
2 parents f7a484f + 027c053 commit 5d7df45

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

articles/digital-twins/reference-query-functions.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ The following query returns the name of all digital twins who have an array prop
4545
### Limitations
4646

4747
The ARRAY_CONTAINS() function has the following limitations:
48-
* Array indexing is not supported.
48+
* Array indexing isn't supported.
4949
- For example, `array-name[index] = 'foo_bar'`
50-
* Subqueries within the ARRAY_CONTAINS() property are not supported.
50+
* Subqueries within the ARRAY_CONTAINS() property aren't supported.
5151
- For example, `SELECT T.name FROM DIGITALTWINS T WHERE ARRAY_CONTAINS (SELECT S.floor_number FROM DIGITALTWINS S, 4)`
52-
* ARRAY_CONTAINS() is not supported on properties of relationships.
53-
- For example, say `Floor.Contains` is a relationship from Floor to Room and it has a `lift` property with a value of `["operating", "under maintenance", "under construction"]`. Queries like this are not supported: `SELECT Room FROM DIGITALTWINS Floor JOIN Room RELATED Floor.Contains WHERE Floor.$dtId = 'Floor-35' AND ARRAY_CONTAINS(Floor.Contains.lift, "operating")`.
54-
* ARRAY_CONTAINS() does not search inside nested arrays.
55-
- For example, say a twin has a `tags` property with a value of `[1, [2,3], 3, 4]`. A search for `2` using the query `SELECT * FROM DIGITALTWINS WHERE ARRAY_CONTAINS(tags, 2)` will return `False`. A search for a value in the top level array, like `1` using the query `SELECT * FROM DIGITALTWINS WHERE ARRAY_CONTAINS(tags, 1)`, will return `True`.
56-
* ARRAY_CONTAINS() is not supported if the array contains objects.
57-
- For example, say a twin has a `tags` property with a value of `[Room1, Room2]` where `Room1` and `Room2` are objects. Queries like this are not supported: `SELECT * FROM DIGITALTWINS WHERE ARRAY_CONTAINS(tags, Room2)`.
52+
* ARRAY_CONTAINS() isn't supported on properties of relationships.
53+
- For example, say `Floor.Contains` is a relationship from Floor to Room and it has a `lift` property with a value of `["operating", "under maintenance", "under construction"]`. Queries like this aren't supported: `SELECT Room FROM DIGITALTWINS Floor JOIN Room RELATED Floor.Contains WHERE Floor.$dtId = 'Floor-35' AND ARRAY_CONTAINS(Floor.Contains.lift, "operating")`.
54+
* ARRAY_CONTAINS() doesn't search inside nested arrays.
55+
- For example, say a twin has a `tags` property with a value of `[1, [2,3], 3, 4]`. A search for `2` using the query `SELECT * FROM DIGITALTWINS WHERE ARRAY_CONTAINS(tags, 2)` returns `False`. A search for a value in the top level array, like `1` using the query `SELECT * FROM DIGITALTWINS WHERE ARRAY_CONTAINS(tags, 1)`, returns `True`.
56+
* ARRAY_CONTAINS() isn't supported if the array contains objects.
57+
- For example, say a twin has a `tags` property with a value of `[Room1, Room2]` where `Room1` and `Room2` are objects. Queries like this aren't supported: `SELECT * FROM DIGITALTWINS WHERE ARRAY_CONTAINS(tags, Room2)`.
5858

5959
## CONTAINS
6060

@@ -104,17 +104,17 @@ The following query returns all digital twins whose IDs end in `-small`. The str
104104

105105
## IS_BOOL
106106

107-
A type checking function for determining whether an property has a Boolean value.
107+
A type checking function for determining whether a property has a Boolean value.
108108

109-
This function is often combined with other predicates if the program processing the query results requires a boolean value, and you want to filter out cases where the property is not a boolean.
109+
This function is often combined with other predicates if the program processing the query results requires a boolean value, and you want to filter out cases where the property isn't a boolean.
110110

111111
### Syntax
112112

113113
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsBoolSyntax":::
114114

115115
### Arguments
116116

117-
`<property>`, an property to check whether it is a Boolean.
117+
`<property>`, a property to check whether it's a Boolean.
118118

119119
### Returns
120120

@@ -126,7 +126,7 @@ The following query selects the digital twins that have a boolean `HasTemperatur
126126

127127
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsBoolExample":::
128128

129-
The following query builds on the above example to select the digital twins that have a boolean `HasTemperature` property, and the value of that property is not `false`.
129+
The following query builds on the above example to select the digital twins that have a boolean `HasTemperature` property, and the value of that property isn't `false`.
130130

131131
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsBoolNotFalseExample":::
132132

@@ -140,7 +140,7 @@ A type checking function to determine whether a property is defined.
140140

141141
### Arguments
142142

143-
`<property>`, a property to determine whether it is defined.
143+
`<property>`, a property to determine whether it's defined.
144144

145145
### Returns
146146

@@ -154,15 +154,15 @@ The following query returns all digital twins who have a defined `Location` prop
154154

155155
## IS_NULL
156156

157-
A type checking function for determining whether an property's value is `null`.
157+
A type checking function for determining whether a property's value is `null`.
158158

159159
### Syntax
160160

161161
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsNullSyntax":::
162162

163163
### Arguments
164164

165-
`<property>`, a property to check whether it is null.
165+
`<property>`, a property to check whether it's null.
166166

167167
### Returns
168168

@@ -178,47 +178,47 @@ The following query returns twins who do not have a null value for Temperature.
178178

179179
A type checking function for determining whether a property has a number value.
180180

181-
This function is often combined with other predicates if the program processing the query results requires a number value, and you want to filter out cases where the property is not a number.
181+
This function is often combined with other predicates if the program processing the query results requires a number value, and you want to filter out cases where the property isn't a number.
182182

183183
### Syntax
184184

185185
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsNumberSyntax":::
186186

187187
### Arguments
188188

189-
`<property>`, a property to check whether it is a number.
189+
`<property>`, a property to check whether it's a number.
190190

191191
### Returns
192192

193193
A Boolean value indicating if the type of the specified property is a number.
194194

195195
### Example
196196

197-
The following query selects the digital twins that have a numeric `Capacity` property and its value is not equal to 0.
197+
The following query selects the digital twins that have a numeric `Capacity` property and its value isn't equal to 0.
198198

199199
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsNumberExample":::
200200

201201
## IS_OBJECT
202202

203203
A type checking function for determining whether a property's value is of a JSON object type.
204204

205-
This function is often combined with other predicates if the program processing the query results requires a JSON object, and you want to filter out cases where the value is not a JSON object.
205+
This function is often combined with other predicates if the program processing the query results requires a JSON object, and you want to filter out cases where the value isn't a JSON object.
206206

207207
### Syntax
208208

209209
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsObjectSyntax":::
210210

211211
### Arguments
212212

213-
`<property>`, a property to check whether it is of an object type.
213+
`<property>`, a property to check whether it's of an object type.
214214

215215
### Returns
216216

217217
A Boolean value indicating if the type of the specified property is a JSON object.
218218

219219
### Example
220220

221-
The following query selects all of the digital twins where this is an object called `MapObject`, and it does not have a child property `TemperatureReading`.
221+
The following query selects all of the digital twins where this is an object called `MapObject`, and it doesn't have a child property `TemperatureReading`.
222222

223223
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsObjectExample":::
224224

@@ -236,8 +236,8 @@ Required:
236236
* `<model-ID>`: The model ID to check for.
237237

238238
Optional:
239-
* `<twin-collection>`: Specify a twin collection to search when there is more than one (like when a `JOIN` is used).
240-
* `exact`: Require an exact match. If this parameter is not set, the result set will include twins with models that inherit from the specified model.
239+
* `<twin-collection>`: Specify a twin collection to search when there's more than one (like when a `JOIN` is used).
240+
* `exact`: Require an exact match. If this parameter isn't set, the result set includes twins with models that inherit from the specified model.
241241

242242
### Returns
243243

@@ -253,15 +253,15 @@ The following query returns twins from the DT collection that are exactly of the
253253

254254
A type checking function for determining whether a property's value is of a primitive type (string, Boolean, numeric, or `null`).
255255

256-
This function is often combined with other predicates if the program processing the query results requires a primitive-typed value, and you want to filter out cases where the property is not primitive.
256+
This function is often combined with other predicates if the program processing the query results requires a primitive-typed value, and you want to filter out cases where the property isn't primitive.
257257

258258
### Syntax
259259

260260
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsPrimitiveSyntax":::
261261

262262
### Arguments
263263

264-
`<property>`, a property to check whether it is of a primitive type.
264+
`<property>`, a property to check whether it's of a primitive type.
265265

266266
### Returns
267267

@@ -277,23 +277,23 @@ The following query returns the `area` property of the Factory with the ID of 'A
277277

278278
A type checking function for determining whether a property has a string value.
279279

280-
This function is often combined with other predicates if the program processing the query results requires a string value, and you want to filter out cases where the property is not a string.
280+
This function is often combined with other predicates if the program processing the query results requires a string value, and you want to filter out cases where the property isn't a string.
281281

282282
### Syntax
283283

284284
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsStringSyntax":::
285285

286286
### Arguments
287287

288-
`<property>`, a property to check whether it is a string.
288+
`<property>`, a property to check whether it's a string.
289289

290290
### Returns
291291

292292
A Boolean value indicating if the type of the specified expression is a string.
293293

294294
### Example
295295

296-
The following query selects the digital twins that have a string property `Status` property and its value is not equal to `Completed`.
296+
The following query selects the digital twins that have a string property `Status` property and its value isn't equal to `Completed`.
297297

298298
:::code language="sql" source="~/digital-twins-docs-samples/queries/reference.sql" ID="IsStringExample":::
299299

0 commit comments

Comments
 (0)