basyx-python-sdk icon indicating copy to clipboard operation
basyx-python-sdk copied to clipboard

Update to AAS Part 1: Metamodel Version 3.1.2

Open Frosty2500 opened this issue 1 year ago • 2 comments

We need to update our implementation of the AAS Metamodel to version 3.1.2. We have one update branch on our fork on which we gather all changes. We do so by creating one branch per change and merging those branches with the update branch. We do this to allow for easier reviewing. In this issue we track the progress of the changes.

V3.0.2:

  • nothing to adapt

V3.1:

New, Changed or Removed Constraints:
  • [x] AASd-002: Now also allows hyphens to be included in name.
  • [x] AASd-002: Wrong Regex pattern in change log.
  • [x] AASd-006, AASd-007, AASd-077: Update documentation: use "shall" instead of "need".
  • [x] AASd-014: Update documentation and check if code needs to be adjusted: change since Entity/entityType is now optional.
  • [x] AASd-021: Update documentation: use "shall" instead of "can".
  • [x] AASd-090: Update documentation and check if code needs to be adjusted: removed, since category is deprecated.
  • [x] AASd-116: Update documentation: update version of globalAssetId.
  • [x] AASd-120: Update documentation and check if code needs to be adjusted: removed, idShort also allowed for elements within a SubmodelElementList.
Changes in Metamodel:
  • [x] BasicEventElement/lastUpdate: change data type from dateTime to DateTimeUtc.
  • [x] Blob/contentType: now optional.
  • [x] ContentType: data type: change length from 100 to 128 characters
  • [x] Entity/entityType: now optional
  • [x] EventPayload/timeStamp: change data type from dateTime to DateTimeUtc.
    • The class EventPayload is not implemented yet because of unclear specification.
  • [x] File/contentType: now optional.
  • [x] Identifier, PathType, ValueTypeIEC61360: data type: change length from 2000 to 2048 characters.
  • [x] Referable/idShort: implicit change because constraint AASd-002 now also allows hyphen.
  • [x] RelationshipElement/first: now optional
  • [x] RelationshipElement/second: now optional
Other Major Changes:
  • [x] Add new value "Role" to enumeration: AssetKind
  • [x] CHANGED: add new data type "DateTimeUtc" and use it for attribute lastUpdate of BasicEventElement and attribute timeStamp of EventPayload.
    • The class EventPayload is not implemented yet because of unclear specification.
  • [x] CHANGED: Relaxation of grammar for semantic IDs for metamodel elements in the context of data specifications (#307)
  • [x] CHANGED: Update clause on matching algorithm for references, include handling of supplementalSemanticIds, isCaseOf etc. (#350, #471, #473, #479, #347).
    • Exact matching already implemented by equivalence. There is currently no need to implement value matching.
  • [x] CHANGED: Update all metamodel element IDs to V3.1
  • [x] ADDED: add note: A maximum recursion depth of 32 for Container-Elements should be supported. This means for certification a maximum of 32 recursion test cases should be tested. (#333).
    • Unclear if specification is correct workstream also mentions minimum depth of 32 and mentioned nowhere except for the change log. We will wait for the specification to be fixed. We have already implemented the constraint, picking 64 as the MAX_RECURSION_DEPTH to prevent infinite loops.

V3.1.1:

  • nothing to adapt

V3.1.2:

  • nothing to adapt

  • [ ] Generally update documentation, replace links, version numbers

Frosty2500 avatar Nov 25 '25 13:11 Frosty2500

Additional changes v3.1:

Changes in Metamodell:

  • [x] Add new value "Role" to enumeration: AssetKind (#294)

ZANDx1 avatar Dec 01 '25 13:12 ZANDx1

Remaining items for AAS Specification v3.1 support

Based on the review of the v3.1 specification and the current implementation status, the following items are still open or require an explicit decision.

Remaining Tasks

  • ~~[ ] Add AasContainerSubmodelElements enumeration
    New enumeration for container submodel elements introduced with v3.1.~~

  • ~~[ ] Add AasNonContainerSubmodelElements enumeration
    New enumeration for non-container submodel elements introduced with v3.1.~~

  • [x] Update reference matching algorithm (ambiguous)
    Align implementation with the updated v3.1 matching rules (e.g. handling of supplementalSemanticIds, isCaseOf, etc.).
    Note: exact matching via equivalence is already implemented; value-based matching is currently considered out of scope.

ZANDx1 avatar Jan 12 '26 23:01 ZANDx1