Skip to content

Does it make a difference if I use SubModelCollection or SubModellList? #128

Open
@JoergNeidig

Description

@JoergNeidig

Please, explain the different use cases for SubModelCollection andSubModellList. Especially in older SubmodelTemplates the SMC is always used.

It also makes a difference in the query (release 01/25).

Example SMC 0…n query:

$and(
        $match(
            $sm#idShort $eq "TechnicalData",
            $or ( 
               $sme.ProductClassifications.ProductClassificationItem01.ProductClassId#value
                  $eq   "27-37-09-05", 
               $sme.ProductClassifications.ProductClassificationItem02.ProductClassId#value
                  $eq   "27-37-09-05",
               $sme.ProductClassifications.ProductClassificationItem03.ProductClassId#value
                  $eq   "27-37-09-05"

        ),
        $match(
               $sm#idShort $eq "TechnicalData",
               $sme#semanticId $eq "0173-1#02-BAF016#006",
               $sme#value $lt 100
        )
)

Example SML query:

$and(
        $match(
               $sm#idShort $eq "TechnicalData",
               $sme.ProductClassifications[].ProductClassId
                   $eq   "27-37-09-05"
        ),
        $match(
               $sm#idShort $eq "TechnicalData",
               $sme#semanticId $eq "0173-1#02-BAF016#006",
               $sme#value $lt 100
        )
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions