{"id":2818,"date":"2021-07-05T13:39:38","date_gmt":"2021-07-05T11:39:38","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=2818"},"modified":"2021-08-16T16:21:08","modified_gmt":"2021-08-16T14:21:08","slug":"source-code-for-generating-ngsi-ld-key-values-examples-based-on-smart-data-models-released","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/source-code-for-generating-ngsi-ld-key-values-examples-based-on-smart-data-models-released\/","title":{"rendered":"Source code for generating NGSI-LD key values examples based on Smart Data Models released"},"content":{"rendered":"<p>According to the last open session, the script for the creation of the examples of the NGSI-LD key values is available for review and use with an open license.<br \/>\nIt is a python 3.6 script you can access in the <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\/utils\">utils directory of the initiative<\/a>.<br \/>\n<a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/ngsi-ld_generator_keyvalues_v0.94.py\">Source code available<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>According to the last open session, the script for the creation of the examples of the NGSI-LD key values is available for review and use with an open license. It is a python 3.6 script you can access in the utils directory of the initiative. Source code available <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/source-code-for-generating-ngsi-ld-key-values-examples-based-on-smart-data-models-released\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[105,107,109,113,115,119,117,88,143,111,125,182],"tags":[],"class_list":["post-2818","post","type-post","status-publish","format-standard","hentry","category-cross-sector","category-smart-cities","category-smart-energy-domain","category-smart-environment","category-smart-manufacturing","category-smart-robotics","category-smart-water","category-smart-sensoring","category-smartaeronautics","category-smart-agrifood","category-smartdestinations","category-smarthealth"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":636,"url":"https:\/\/smartdatamodels.org\/index.php\/automatic-creation-of-examples\/","url_meta":{"origin":2818,"position":0},"title":"Automatic creation of examples","author":"maestro","date":"10\/09\/2020","format":false,"excerpt":"In order to reduce the amount of work in the contribution of data models, we have a script that generates the key-values format of a normalized NGSI LD payload. It has been operated on 46 data models currently in the repository. In a close future instead of submitting 4 examples,\u2026","rel":"","context":"In &quot;Cross Sector&quot;","block_context":{"text":"Cross Sector","link":"https:\/\/smartdatamodels.org\/index.php\/category\/cross-sector\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2255,"url":"https:\/\/smartdatamodels.org\/index.php\/ngsi-ld-key-values-service-in-the-readme-of-every\/","url_meta":{"origin":2818,"position":1},"title":"NGSI-LD key values service in the README of every","author":"maestro","date":"03\/05\/2021","format":false,"excerpt":"In the README of every data model now there is a new line in the Dynamic examples section, under the text \"Link to the Generator of NGSI-LD keyvalues payloads compliant with this data model. Refresh for new values\" The link provides an example of a NGSI keyvalues payload with values\u2026","rel":"","context":"In &quot;Cross Sector&quot;","block_context":{"text":"Cross Sector","link":"https:\/\/smartdatamodels.org\/index.php\/category\/cross-sector\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/Selection_425.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/Selection_425.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/Selection_425.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/Selection_425.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2205,"url":"https:\/\/smartdatamodels.org\/index.php\/new-service-generate-a-ngsi-ld-payload-keyvalues-format-compliant-with-a-smart-data-model\/","url_meta":{"origin":2818,"position":2},"title":"New service: Generate a NGSI-LD payload keyvalues format compliant with a Smart Data Model","author":"maestro","date":"28\/04\/2021","format":false,"excerpt":"There is a new service for users, which is the ability to generate an example payload compliant with a specific data model in key values format. Previously it was available the normalized format. Options are located in the main menu (Generate NGSI examples) NGSI-LD normalized format NGSI-LD keyvalues format","rel":"","context":"In &quot;Cross Sector&quot;","block_context":{"text":"Cross Sector","link":"https:\/\/smartdatamodels.org\/index.php\/category\/cross-sector\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/NGSI_examples-150x150.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":629,"url":"https:\/\/smartdatamodels.org\/index.php\/making-examples-more-consistent\/","url_meta":{"origin":2818,"position":3},"title":"Making examples more consistent","author":"maestro","date":"09\/09\/2020","format":false,"excerpt":"All the repositories have been normalized in the naming of the core examples. So: Key values in NGSI v2 is named example.json Key values in NGSI LD is named example.jsonld Normalized (default) in NGSI v2 is named example-normalized.json Normalized (default) in NGSI LD is named example-normalized.jsonld It is possible to\u2026","rel":"","context":"In &quot;Cross Sector&quot;","block_context":{"text":"Cross Sector","link":"https:\/\/smartdatamodels.org\/index.php\/category\/cross-sector\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2018,"url":"https:\/\/smartdatamodels.org\/index.php\/new-ngsi-linked-data-generator-for-every-data-model\/","url_meta":{"origin":2818,"position":4},"title":"New NGSI  linked data generator for every data model","author":"maestro","date":"02\/04\/2021","format":false,"excerpt":"Now the README file of every data model includes a link to the generator of NGSI-LD payloads compliant with the data model. As you can see in the image below there is a new section \"Dynamic examples generation\" There is the sentence \"Link to the Generator of NGSI-LD payloads compliant\u2026","rel":"","context":"In &quot;Cross Sector&quot;","block_context":{"text":"Cross Sector","link":"https:\/\/smartdatamodels.org\/index.php\/category\/cross-sector\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/readme.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/readme.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/readme.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/readme.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":32325,"url":"https:\/\/smartdatamodels.org\/index.php\/besser-smart-data-json-schema-generator\/","url_meta":{"origin":2818,"position":5},"title":"BESSER Smart Data JSON Schema Generator","author":"maestro","date":"27\/02\/2026","format":false,"excerpt":"Overview The tool automates the generation of Smart Data Models (SDM) from visual models, bridging the gap between high-level domain design and technical implementation for Digital Twins and IoT ecosystems. Technical Workflow Input: Users define domain entities and relationships using B-UML (a simplified UML dialect) within the BESSER Pearl editor.\u2026","rel":"","context":"In &quot;Cross Sector&quot;","block_context":{"text":"Cross Sector","link":"https:\/\/smartdatamodels.org\/index.php\/category\/cross-sector\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/2818","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/comments?post=2818"}],"version-history":[{"count":4,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/2818\/revisions"}],"predecessor-version":[{"id":2958,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/2818\/revisions\/2958"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=2818"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=2818"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=2818"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}