[ https://jira.fiware.org/browse/HELP-19639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alberto Abella resolved HELP-19639. ----------------------------------- Resolution: Done > [fiware-stackoverflow] Is there a javascript library to normalize data to ngsi-ld using data in keyValues format and json schema? > --------------------------------------------------------------------------------------------------------------------------------- > > Key: HELP-19639 > URL: https://jira.fiware.org/browse/HELP-19639 > Project: Help-Desk > Issue Type: Monitor > Components: FIWARE-TECH-HELP > Reporter: Backlog Manager > Assignee: Alberto Abella > Labels: fiware > > Created question in FIWARE Q/A platform on 30-05-2022 at 14:05 > {color: red}Please, ANSWER this question AT{color} 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? -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy