Skip to content

HansMees01/FAAAST-Package-Explorer-Converter

 
 

Repository files navigation

FA³ST Package Explorer Converter

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

⚠️ AASX Package Explorer uses AAS meta model v2.x while FA³ST uses v3.x. Converting a model might cause information loss!
  This tool is still expertimental and might fail for complex AAS model!

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.2.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.2.0.jar -i data/ -o output/ --merge

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)

About

FA³ST Package Explorer Converter

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 95.6%
  • Shell 4.4%