{"id":636,"date":"2020-09-10T23:05:06","date_gmt":"2020-09-10T23:05:06","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=636"},"modified":"2020-09-10T23:05:06","modified_gmt":"2020-09-10T23:05:06","slug":"automatic-creation-of-examples","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/automatic-creation-of-examples\/","title":{"rendered":"Automatic creation of examples"},"content":{"rendered":"<p>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.<br \/>\nIt has been operated on 46 data models currently in the repository.<\/p>\n<p>In a close future instead of submitting 4 examples, it will be only necessary to include 2 examples, the normalized payloads for NGSI v2 and NGSI LD (the other two would be generated automatically).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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,&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/automatic-creation-of-examples\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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],"tags":[],"class_list":["post-636","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"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":629,"url":"https:\/\/smartdatamodels.org\/index.php\/making-examples-more-consistent\/","url_meta":{"origin":636,"position":0},"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":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":636,"position":1},"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":32325,"url":"https:\/\/smartdatamodels.org\/index.php\/besser-smart-data-json-schema-generator\/","url_meta":{"origin":636,"position":2},"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":[]},{"id":2818,"url":"https:\/\/smartdatamodels.org\/index.php\/source-code-for-generating-ngsi-ld-key-values-examples-based-on-smart-data-models-released\/","url_meta":{"origin":636,"position":3},"title":"Source code for generating NGSI-LD key values examples based on Smart Data Models released","author":"maestro","date":"05\/07\/2021","format":false,"excerpt":"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","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":3037,"url":"https:\/\/smartdatamodels.org\/index.php\/updated-the-resources-for-generating-automatic-examples\/","url_meta":{"origin":636,"position":4},"title":"Updated the resources for generating automatic examples","author":"maestro","date":"31\/08\/2021","format":false,"excerpt":"Once you have the json schema of a smart Data model there are two services that allow you to generate random payloads compliant with the JSON schema in NGSI-LD. both services are for generating A keyvalues payload A normalized payload these services have been updated and some errors were fixed.\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":636,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/636","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=636"}],"version-history":[{"count":1,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/636\/revisions"}],"predecessor-version":[{"id":637,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/636\/revisions\/637"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}