Giter Club home page Giter Club logo

faaast-package-explorer-converter's Introduction

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

[email protected]

(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)

faaast-package-explorer-converter's People

Contributors

dependabot[bot] avatar mjacoby avatar chrweiss avatar jensmueller2709 avatar hansmees01 avatar

Stargazers

Abiria avatar Aurelia avatar  avatar

Watchers

James Cloos avatar Reinhard Herzog avatar  avatar  avatar

faaast-package-explorer-converter's Issues

MultiLanguageProperty type support

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Export AAS json file from package explore
  2. Convert AAS json file using FAAAST-Package-Explorer-Converter for using in FAAAST-Service
  3. Execute FAAAST-Service with converted json file

Expected behavior
FAAAST-Service is working well

Output

  1. HTTP endpoint is opened, but OPC UA endpoint is not opened in FAAAST-Service
  2. Value with MultiLanguageProperty shows null.

json file before converting

...

{
  "modelType": {
    "name": "MultiLanguageProperty"
  },
  "kind": "Instance",
  "semanticId": {
    "keys": [
      {
        "idType": "Irdi",
        "type": "ConceptDescription",
        "value": "0173-1#02-AAW338#001"
      }
    ]
  },
  "category": "Parameter",
  "idShort": "ManufacturerProductDesignation",
  "value": [
    {
      "language": null,
      "text": null
    }
  ]
},

...

json file after converting

...

{
  "modelType": {
    "name": "MultiLanguageProperty"
  },
  "kind": "Instance",
  "semanticId": {
    "keys": [
      {
        "idType": "Irdi",
        "type": "ConceptDescription",
        "value": "0173-1#02-AAW338#001"
      }
    ]
  },
  "category": "Parameter",
  "idShort": "ManufacturerProductDesignation",
  "value": [
    {
      "language": null,
      "text": null
    }
  ]
},

...

Additional context

I am wondering why opc ua endpoint is not opened and whether you are not support MultiLanguageProperty.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.