eclipse-esmf / esmf-semantic-aspect-meta-model

Formal and textual specification of the Semantic Aspect Meta Model (SAMM)
https://eclipse-esmf.github.io/samm-specification/snapshot/index.html
Mozilla Public License 2.0
47 stars 9 forks source link

[Task] Asset Administration Shell - describe semantics of Blob submodel element #139

Open BirgitBoss opened 2 years ago

BirgitBoss commented 2 years ago

Is your task related to a problem? Please describe. BAMM shall support the semantic definition of Blob submodel elements in the Asset Administration Shell (AAS).

grafik

Describe the solution you'd like. introduce predefined entity for Blobs similar to "File Resource" but instead of attribute resource it has an attribute value with data type for very long strings.

Describe alternatives you've considered none

Additional context see also https://github.com/OpenManufacturingPlatform/sds-bamm-aspect-meta-model/issues/138 (reference element) https://industrialdigitaltwin.org/wp-content/uploads/2021/09/07_details_of_the_asset_administration_shell_part1_v3_en_2020.pdf

atextor commented 2 years ago

Here is a proposal for the definition:

bamm-c:Blob a bamm:Characteristic ;
  bamm:dataType xsd:base64Binary .

bamm-e:blobValue a bamm:Property ;
   bamm:characteristic bamm-c:Blob .

bamm-e:BlobResource a bamm:Entity ;
  bamm:properties (
    bamm-e:mimeType
    [ bamm:property bamm-e:blobValue; bamm:payloadName "value" ]
  ) .

And the usage:

:library a bamm:Property ;
   bamm:characteristic [
      a bamm-c:SingleEntity ;
      bamm:dataType bamm-e:BlobResource ;
   ] .

The payload would look like this:

{
    "library": {
        "mimeType": "application/octet-stream",
        "value": "VGhpcyBpcyBteSBibG9i"
    }
}
BirgitBoss commented 2 years ago

2022-06-30 SDS Meeting: approved