What is missing?
Describe the problem in short sentences, add a minimal example if possible
There is an example in the API documentation:
https://industrialdigitaltwin.io/aas-specifications/IDTA-01002/v3.2/query-language.html#_examples_for_grammar_and_json_schema
This is the grammar:
$and(
$match(
$sm#idShort $eq "TechnicalData",
$sme.ProductClassifications[]
.ProductClassId#value
$eq "27-37-09-05"
),
$match(
$sm#idShort $eq "TechnicalData",
$sme#semanticId $eq
"0173-1#02-BAF016#006",
$sme#value $lt 100
)
)
At least with the AASPE Server this only works for only one semanticID.
How should it be fixed?
It shall be possible to query for several semanticIds of the TechnicalData.
Here an example querying two semanticIDs:
$and(
$match(
$sm#idShort $eq "TechnicalData",
$sme.ProductClassifications[]
.ProductClassId#value
$eq "27-37-09-05"
),
$match(
$sm#idShort $eq "TechnicalData",
$sme#semanticId $eq
"0173-1#02-BAF016#006",
$sme#value $lt 100
),
$match(
$sm#idShort $eq "TechnicalData",
$sme#semanticId $eq
"0173-1#02-BAF017#006",
$sme#value $gt 50
)
)
Describe which change will fix the problem.
...
- [x ] I have signed the required Developer Certificate of Origin (DCO) already.
What is missing?
Describe the problem in short sentences, add a minimal example if possible
There is an example in the API documentation:
https://industrialdigitaltwin.io/aas-specifications/IDTA-01002/v3.2/query-language.html#_examples_for_grammar_and_json_schema
This is the grammar:
$and(
$match(
$sm#idShort $eq "TechnicalData",
$sme.ProductClassifications[]
.ProductClassId#value
$eq "27-37-09-05"
),
$match(
$sm#idShort $eq "TechnicalData",
$sme#semanticId $eq
"0173-1#02-BAF016#006",
$sme#value $lt 100
)
)
At least with the AASPE Server this only works for only one semanticID.
How should it be fixed?
It shall be possible to query for several semanticIds of the TechnicalData.
Here an example querying two semanticIDs:
$and(
$match(
$sm#idShort $eq "TechnicalData",
$sme.ProductClassifications[]
.ProductClassId#value
$eq "27-37-09-05"
),
$match(
$sm#idShort $eq "TechnicalData",
$sme#semanticId $eq
"0173-1#02-BAF016#006",
$sme#value $lt 100
),
$match(
$sm#idShort $eq "TechnicalData",
$sme#semanticId $eq
"0173-1#02-BAF017#006",
$sme#value $gt 50
)
)
Describe which change will fix the problem.
...