Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-19639

FIWARE.Question.Tech.Is there a javascript library to normalize data to ngsi-ld using data in keyValues format and json schema?.

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: FIWARE-TECH-HELP
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 30-05-2022 at 14:05
      Please, ANSWER this question AT https://stackoverflow.com/questions/72435838/is-there-a-javascript-library-to-normalize-data-to-ngsi-ld-using-data-in-keyvalu

      Question:
      Is there a javascript library to normalize data to ngsi-ld using data in keyValues format and json schema?

      Description:
      I am currently building a frontend using React, that should enable users to supply context data to orion-ld. I use react-jsonschema-form (https://react-jsonschema-form.readthedocs.io/en/latest/) to generate and validate forms by providing the schema.json of data models hosted in the smart-data-models repository (e.g. https://smart-data-models.github.io/dataModel.Building/Building/schema.json).
      However, the entity submitted via the form is in the keyValues format (as in https://github.com/smart-data-models/dataModel.Building/blob/d716ca76a9c0dd12355e1be7a0f651e3bfd16d04/Building/examples/example.json.
      But as far as I know, it has to be in the normalized format in order to call the POST /entities endpoint of the context broker. (as in https://github.com/smart-data-models/dataModel.Building/blob/d716ca76a9c0dd12355e1be7a0f651e3bfd16d04/Building/examples/example-normalized.json)
      Unfortunately, I couldn't find a library in javascript or an algorithm implemented in a different language to normalize to ngsi-ld. Are there open-source implementations from the community?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2022-05-31 05:31|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2022-05-31 05:31|CREATED monitor | # answers= 0, accepted answer= False

          People

          • Assignee:
            albertoabella Alberto Abella
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: