eclipse-basyx / basyx-java-server-sdk

MIT License
49 stars 42 forks source link

Submodel Repository returns empty embeddedDataSpecificatios for SubmodelElements #328

Open seicke opened 1 week ago

seicke commented 1 week ago

Describe the bug Submodel Repository returns empty embeddedDataSpecificatios for SubmodelElements.

To Reproduce Steps to reproduce the behavior:

  1. Starting AAS Environment (latest docker image) with feature basyx.environment=file:aas to load example AAS (see below, SME TechnicalProperties.netWeight of SM https://example.com/shells/zNgzj2JD/submodels/TechnicalData contains embeddedDataSpecifcation)
  2. Submodel Repository API call: /submodels/aHR0cHM6Ly9leGFtcGxlLmNvbS9zaGVsbHMvek5nemoySkQvc3VibW9kZWxzL1RlY2huaWNhbERhdGE/submodel-elements/TechnicalProperties.netWeight
  3. embeddedDataSpecifications of the response is an array with empty object

Expected behavior A SME inherits from HasDataSpecification : https://aas-core-works.github.io/aas-core-meta/v3/SubmodelElement.html#embeddedDataSpecifications Therefore, SME can contain embedded data specifications

Response of Submodel Repository should provide the embeddedDataSpecification of SMEs

Used Asset Administration files (.aasx/.json/.xml) TechnicalDataDemo.zip

Screenshots Serialised example AAS, focus on SME TechnicalProperties.netWeight of SM https://example.com/shells/zNgzj2JD/submodels/TechnicalData and its embeddedDataSpecifcation (step 1, see above): 2024-06-25 13_33_56-basyx-applications - _basyx-server_aas_tmp_TechnicalDataDemo_aasx_xml

Submodel Repository response (step 3, see above) 2024-06-25 13_09_46-Returns a specific submodel element from the Submodel at a specified path - ecli

aaronzi commented 5 days ago

Thank you for submitting this issue. We will discuss this internally how BaSyx should handle embeddedDataSpecifications.