FraunhoferIOSB / FAAAST-Package-Explorer-Converter

FA³ST Package Explorer Converter
Apache License 2.0
3 stars 2 forks source link

FA³ST Package Explorer Converter

Shows the FA³ST Logo

Converts AAS JSON files created with/exported from AASX Package Explorer to a FA³ST-compatible version.

[!WARNING] This project is no longer maintained as it was developed for the sole purpose to convert AAS model files create with AASP Package Explorer so that they can be used with FA³ST Service. Since v1.0.0, FA³ST Service is now working out-of-the-box with files created by AASX Package Explorer and this tool is no longer needed.

Supported Version

The FA³ST Package Explorer Converter supports AAS JSON files created with/exported from AASX Package Explorer with version AASX Package Explorer 2022-05-10.alpha.

Usage

Downloaded latest version as precompiled JAR

-i, --input=<inputFile>         Input file or directory (mandatory)
-o, --output=<outputFile>       Output file or directory
-m, --merge                     Merge all AAS models into a single file called 'merged.json' additionally to converting each
                file seperately (only applicable if input contains multiple files)
-d, --debug                     Print additional debug information
-h, --help                      Show this help message and exit.
-V, --version                   Print version information and exit.

If no ouput file is provided, the output will be written to screen.

(back to top)

Example: Convert single file

Converting a single input file data/model.json to output file data/model-converted.json.

java -jar package-explorer-converter-0.3.0.jar -i data/model.json -o data/mode-converted.json

Example: Convert and merge multiple files

Assuming you have a folder data containing three files model1.json, model2.json, model3.json, this command generates the output files output/model1.json, output/model2.json, output/model3.json, and a file containing the merged result output/merged.json.

java -jar package-explorer-converter-0.3.0.jar -i data/ -o output/ --merge

(back to top)

Contributors

Name Github Account
Michael Jacoby mjacoby

(back to top)

Contact

faaast@iosb.fraunhofer.de

(back to top)

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Copyright (C) 2022 Fraunhofer Institut IOSB, Fraunhoferstr. 1, D 76131 Karlsruhe, Germany.

You should have received a copy of the Apache 2.0 License along with this program. If not, see https://www.apache.org/licenses/LICENSE-2.0.html.

(back to top)