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

        backlogmanager Backlog Manager created issue -
        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
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        fla Fernando Lopez made changes -
        Assignee Alberto Abella [ albertoabella ]
        albertoabella Alberto Abella made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        albertoabella Alberto Abella made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        albertoabella Alberto Abella made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        backlogmanager Backlog Manager made changes -
        Summary [fiware-stackoverflow] Is there a javascript library to normalize data to ngsi-ld using data in keyValues format and json schema? FIWARE.Question.Tech.Is there a javascript library to normalize data to ngsi-ld using data in keyValues format and json schema?.
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        6d 2h 49m 1 Alberto Abella 06/Jun/22 10:21 AM
        In Progress In Progress Answered Answered
        4s 1 Alberto Abella 06/Jun/22 10:21 AM
        Answered Answered Closed Closed
        6d 22h 32m 1 Alberto Abella 13/Jun/22 8:54 AM

          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: