T05 - AAS Template Conversion

The server inside LocalSEA provides a service to convert AAS Template between different formats: AAS UML version 2, AAS UML version 3, and AASX JSON. In which, AAS UML version 2 is used by Papyrus4Manufacturing (P4M) version Desktop, AAS UML version 3 is used by P4M version Web, and AASX JSON conforms with the AASX Package Explorer supported by IDTA.

Requirements

The following components are required:

  • Network 192.168.56.0/24 or Internal network at Nano (contact DILS/LSEA for access)

  • Computer with P4M vDesktop, P4M vWeb, or AASX Package Explorer optionally installed

The following knowledge are required:

  • Basic about Java + Eclipse IDE

  • Basic about AAS

Deployment Instructions

In this example, the computer has the IP address 192.168.56.11. Open the web browser and navigate to http://192.168.56.8/srv/modelake. Figure 1 shows the page of the model lake at LocalSEA.

Figure 1. Model Lake page at LocalSEA

a. Download An AAS Template

Select the template to be downloaded on the left side, then verify the template on the main view. Click the format JSON, XMI, or UML to download it. Note that JSON is for AASX Package Xplorer, XMI is for P4M vDesktop (AAS UML v2), and UML is for P4M vWeb (AAS UML v3).

Note: To use the version XMI, rename the file from .xmi to .uml before importing it into the project.

b. Upload An AAS Template

Prepare a file to be uploaded with the name following the format <ACTOR>.<TEMPLATE>.<TYPE>. In which, <ACTOR> is the name of the organization or person that create the template, <TEMPLATE> is the name of the AAS template, and <TYPE> can be json, xmi, or uml depending of the format of the file. For example: LSEA.Sample.xmi is a valid file name.

Run the following command to upload the above template to the server:

$ curl -X POST -H "accept: application" -H "Content-Type: multipart/form-data" \
-F "file=@LSEA.Sample.xmi" http://192.168.56.8:1067/api/v1/upload

c. Delete An AAS Template

Run the following command to delete a template from the server:

$ curl -X DELETE "http://192.168.56.8:1067/api/v1/delete/LSEA.Sample.xmi