You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/digital-twins/reference-query-functions.md
+20-22Lines changed: 20 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ The following query returns all digital twins whose IDs end in `-small`. The str
67
67
68
68
## IS_BOOL
69
69
70
-
A type checking and casting function for determining whether an expression has a Boolean value.
70
+
A type checking function for determining whether an property has a Boolean value.
71
71
72
72
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.
73
73
@@ -77,11 +77,11 @@ This function is often combined with other predicates if the program processing
77
77
78
78
### Arguments
79
79
80
-
`<expression>`, an expression to check whether it is a Boolean.
80
+
`<property>`, an property to check whether it is a Boolean.
81
81
82
82
### Returns
83
83
84
-
A Boolean value indicating if the type of the specified expression is a Boolean.
84
+
A Boolean value indicating if the type of the specified property is a Boolean.
85
85
86
86
### Example
87
87
@@ -95,17 +95,15 @@ The following query builds on the above example to select the digital twins that
95
95
96
96
## IS_DEFINED
97
97
98
-
A type checking and casting function to check whether a property is defined.
99
-
100
-
This is only supported when the property value is a primitive type. Primitive types include string, Boolean, numeric, or `null`. `DateTime`, object types, and arrays are not supported.
98
+
A type checking function to determine whether a property is defined.
`<expression>`, an expression to check whether it is null.
128
+
`<property>`, a property to check whether it is null.
131
129
132
130
### Returns
133
131
134
-
A Boolean value indicating if the type of the specified expression is `null`.
132
+
A Boolean value indicating if the type of the specified property is `null`.
135
133
136
134
### Example
137
135
@@ -141,7 +139,7 @@ The following query returns twins who do not have a null value for Temperature.
141
139
142
140
## IS_NUMBER
143
141
144
-
A type checking and casting function for determining whether an expression has a number value.
142
+
A type checking function for determining whether a property has a number value.
145
143
146
144
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.
147
145
@@ -151,11 +149,11 @@ This function is often combined with other predicates if the program processing
151
149
152
150
### Arguments
153
151
154
-
`<expression>`, an expression to check whether it is a number.
152
+
`<property>`, a property to check whether it is a number.
155
153
156
154
### Returns
157
155
158
-
A Boolean value indicating if the type of the specified expression is a number.
156
+
A Boolean value indicating if the type of the specified property is a number.
159
157
160
158
### Example
161
159
@@ -165,7 +163,7 @@ The following query selects the digital twins that have a numeric `Capacity` pro
165
163
166
164
## IS_OBJECT
167
165
168
-
A type checking and casting function for determining whether an expression's value is of a JSON object type.
166
+
A type checking function for determining whether a property's value is of a JSON object type.
169
167
170
168
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.
171
169
@@ -175,11 +173,11 @@ This function is often combined with other predicates if the program processing
175
173
176
174
### Arguments
177
175
178
-
`<expression>`, an expression to check whether it is of an object type.
176
+
`<property>`, a property to check whether it is of an object type.
179
177
180
178
### Returns
181
179
182
-
A Boolean value indicating if the type of the specified expression is a JSON object.
180
+
A Boolean value indicating if the type of the specified property is a JSON object.
183
181
184
182
### Example
185
183
@@ -189,7 +187,7 @@ The following query selects all of the digital twins where this is an object cal
189
187
190
188
## IS_OF_MODEL
191
189
192
-
A type checking and casting function to determine whether a twin is of a particular model type. Includes models that inherit from the specified model.
190
+
A type checking and function to determine whether a twin is of a particular model type. Includes models that inherit from the specified model.
193
191
194
192
### Syntax
195
193
@@ -216,7 +214,7 @@ The following query returns twins from the DT collection that are exactly of the
216
214
217
215
## IS_PRIMITIVE
218
216
219
-
A type checking and casting function for determining whether an expression's value is of a primitive type (string, Boolean, numeric, or `null`).
217
+
A type checking function for determining whether a property's value is of a primitive type (string, Boolean, numeric, or `null`).
220
218
221
219
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.
222
220
@@ -226,11 +224,11 @@ This function is often combined with other predicates if the program processing
226
224
227
225
### Arguments
228
226
229
-
`<expression>`, an expression to check whether it is of a primitive type.
227
+
`<property>`, a property to check whether it is of a primitive type.
230
228
231
229
### Returns
232
230
233
-
A Boolean value indicating if the type of the specified expression is one of the primitive types (string, Boolean, numeric, or `null`).
231
+
A Boolean value indicating if the type of the specified property is one of the primitive types (string, Boolean, numeric, or `null`).
234
232
235
233
### Example
236
234
@@ -240,7 +238,7 @@ The following query returns the `area` property of the Factory with the ID of 'A
240
238
241
239
## IS_STRING
242
240
243
-
A type checking and casting function for determining whether an expression has a string value.
241
+
A type checking function for determining whether a property has a string value.
244
242
245
243
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.
246
244
@@ -250,7 +248,7 @@ This function is often combined with other predicates if the program processing
250
248
251
249
### Arguments
252
250
253
-
`<expression>`, an expression to check whether it is a string.
251
+
`<property>`, a property to check whether it is a string.
0 commit comments