Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to reproduce AAS server JSON serialization #48

Closed
mhrimaz opened this issue Feb 3, 2023 · 3 comments
Closed

unable to reproduce AAS server JSON serialization #48

mhrimaz opened this issue Feb 3, 2023 · 3 comments

Comments

@mhrimaz
Copy link
Contributor

mhrimaz commented Feb 3, 2023

Hi,

I am using the official docker image of AAS server (eclipsebasyx/aas-server:1.3.0). However, the JSON response of AAS server is different than basyx-python-sdk JSON serialization result (Version: 0.2.2)

For example, when kind of submodel is instance there is no "kind":"Instance" in the output. In the image below you can see the structure is not consistent and this is reflected in the code too, however I don't know this is according to specification or just implementaiton difference.

image

And here you can see there are asset and assetRef on the left produced by AAS server. python sdk asset is equivalent to assetRef and asset is completely missing.

image

Is there any way to reproduce exact result of AAS server in python? or which java library should be used, basyx-java-sdk or eclipse-aas4j/aas4j or something else?

Please let me know if you require further information.

@s-heppner
Copy link
Contributor

Which version of the asset administration shell model does this server use? Version 0.2.2 uses Version 2.0.1. of the AAS model (https://www.plattform-i40.de/IP/Redaktion/DE/Downloads/Publikation/Details_of_the_Asset_Administration_Shell_Part1_V2.pdf?__blob=publicationFile&v=6)

@zrgt
Copy link
Contributor

zrgt commented Mar 20, 2023

The output without "kind":"Instance" is still schema conform in V2.0.1, as the Kind=Instance per default, if nothing is given in JSON.

@zrgt
Copy link
Contributor

zrgt commented Mar 20, 2023

There is no assetRef in JSON Schema for the version V2.0.1 of the AAS. I guess all the content which is in "assetRef" shoud actually be in "asset".

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants