... | ... | @@ -251,6 +251,15 @@ FIWARE is providing several useful tools written in Python for syntactical conve |
|
|
In particular, the following Python script allows the conversion from normalized NGSIv2 data models to NGSI-LD data models: [https://github.com/FIWARE/data-models/blob/master/tools/normalized2LD.py](https://github.com/FIWARE/data-models/blob/master/tools/normalized2LD.py)
|
|
|
|
|
|
To execute this Python script, use the following command:
|
|
|
```
|
|
|
python3 normalized2LD.py input_file output_file ld_context
|
|
|
```
|
|
|
For instance:
|
|
|
```
|
|
|
python3 normalized2LD.py Alert.json Alert.json https://uri.etsi.org/ngsi-ld/
|
|
|
```
|
|
|
|
|
|
This script is converting well the data from normalized NGSIv2 format to normalized NGSI-LD format. To convert from simplified NGSIv2 representation (aka keyValues), please use the following Python script before to convert to NGSI-LD: [https://github.com/FIWARE/data-models/blob/master/tools/keyValues2Normalized.py](https://github.com/FIWARE/data-models/blob/master/tools/keyValues2Normalized.py)
|
|
|
|
|
|
### FIWARE NGSI-LD Wrapper
|
|
|
FIWARE has developed a proxy on top of the context broker to convert the FIWARE data models from NGSIv2 to NGSI-LD. The corresponding Docker container is available here: [https://hub.docker.com/r/fiware/ngsi-ld_wrapper](https://hub.docker.com/r/fiware/ngsi-ld_wrapper).
|
... | ... | |