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
I'm currently implementing support for AAS Query Language and came across a query example whose logic I believe could benefit from further clarification. According to the spec:
If $aas and $sm are used together, only the submodels referenced by the matching $aas are searched by the $sm expression. The same search principle is used when combining $sm and $sme. In such case, only the SubmodelElements which are part of matching submodels by $sm expression are searched by the $sme expression. Several such hierarchical conditions may even be combined by $match expressions.
Here is an example query that seems to follow that pattern, but I find the usage of multiple $match blocks within the same $and a bit unclear:
Since both $match blocks specify the same $sm#idShort ("TechnicalData"), is there a more concise or semantically clearer way to write this query—perhaps combining the $sme conditions under a single $match block?
Would a simplified hierarchical structure without repeating $sm conditions be valid or recommended?
Is the current example the only way to express multiple conditions under the same submodel context?
I’d really appreciate any clarification or pointers.
The text was updated successfully, but these errors were encountered:
Since both $match blocks specify the same $sm#idShort ("TechnicalData"), is there a more concise or semantically clearer way to write this query—perhaps combining the $sme conditions under a single $match block?
I would agree, there are certainly other ways how to formulate this query.
Would a simplified hierarchical structure without repeating $sm conditions be valid or recommended?
Depends on what how you express it. Just be aware that there could be other submodels having a SME at ProductClassifications[].ProductClassId with value = "27-37-09-05" (for instance).
Uh oh!
There was an error while loading. Please reload this page.
I'm currently implementing support for AAS Query Language and came across a query example whose logic I believe could benefit from further clarification. According to the spec:
Here is an example query that seems to follow that pattern, but I find the usage of multiple $match blocks within the same $and a bit unclear:
My questions:
I’d really appreciate any clarification or pointers.
The text was updated successfully, but these errors were encountered: