admin-shell-io / questions-and-answers

This repository aims for providing answers to often asked questions in the context of the Asset Administration Shell.
https://admin-shell-io.github.io/questions-and-answers/
Creative Commons Attribution 4.0 International
24 stars 6 forks source link

Use 3rd party data types for properties? #100

Closed mhmmi closed 7 months ago

mhmmi commented 11 months ago

Is there a possibility to use other data types than XSD data types (DataTypeDefXsd) in a property? Concretely it concerns data types of ROS (robotic operating system), e.g., float64, uint128 or builtin_interfaces/Time. Or can this at most be mapped as additional information and if so, how (Extension? DataSpecification?)?

StenGruener commented 10 months ago

It is not possible from the meta-model point of view. One way would be to store value as string (or binary, or BASE64) and a parsible decoding defintion (or casting definition) in Extension. But, to our knowledge there are no public best-practces yet.

StenGruener commented 7 months ago

In addition, it is possible to request a data specification for properties or concept descriptions in https://github.com/admin-shell-io/aas-specs , as a work-around you can use a propreitary extensions (look for "hasExtensions" in the spec).