{"id":12691,"date":"2025-02-10T08:17:21","date_gmt":"2025-02-10T07:17:21","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=12691"},"modified":"2025-02-08T19:25:13","modified_gmt":"2025-02-08T18:25:13","slug":"improved-test-method-for-data-models","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/improved-test-method-for-data-models\/","title":{"rendered":"Improved test method for data models"},"content":{"rendered":"<p>When you want to contribute a new data model (or an improvement in an existing one) you need to pass a test.<\/p>\n<p>The <a href=\"https:\/\/smartdatamodels.org\/index.php\/data-models-contribution-api\/\">current process<\/a> (3rd option in tools menu) keeps on working as it was.<\/p>\n<p>But we have drafted a new method because<\/p>\n<p>&#8211; We need to be more explicit about the tests passed and the errors<\/p>\n<p>&#8211; We need to improve the performance<\/p>\n<p>So you can check the new method in <a href=\"https:\/\/smartdatamodels.org\/index.php\/test-your-data-model\/\">the 4th option of the Tools menu<\/a><\/p>\n<p>Besides this, the tests are very modular so if you are a python programmer <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\/test_data_model\">you can use them in your own system<\/a> because the code is being released or indeed you can write new tests that would be included in the official site. Make a PR on the data-models repo and we will add it eventually. Check <a href=\"https:\/\/smartdatamodels.org\/index.php\/new-testing-process-in-progress-were-you-can-contribute-your-code\/\">this post<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you want to contribute a new data model (or an improvement in an existing one) you need to pass a test. The current process (3rd option in tools menu) keeps on working as it was. But we have drafted a new method because &#8211; We need to be more&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/improved-test-method-for-data-models\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","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":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[105,107,109,113,115,119,117,88,143,111,125,182],"tags":[],"class_list":["post-12691","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":12623,"url":"https:\/\/smartdatamodels.org\/index.php\/new-testing-process-in-progress-were-you-can-contribute-your-code\/","url_meta":{"origin":12691,"position":0},"title":"New testing process in progress were you can contribute your code","author":"maestro","date":"06\/02\/2025","format":false,"excerpt":"Current test process for new and extended data models In order to approve a new data model a test needs to be passed. It cold be accessed in the 3rd option in the tools menu at the front page: Pro: it is currently working Con: It is mostly created in\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":12717,"url":"https:\/\/smartdatamodels.org\/index.php\/tiny-improvement-on-the-new-testing-process\/","url_meta":{"origin":12691,"position":1},"title":"Tiny improvement on the new testing process","author":"maestro","date":"10\/02\/2025","format":false,"excerpt":"In the new testing process, 4th option in the tools menu, now it is available a new test that checks if the example-normalized.json is a valid NGSIv2 file. This process helps contributors to debug their data models before submit them officially (where there will be new tests before final approval)\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":12719,"url":"https:\/\/smartdatamodels.org\/index.php\/another-tiny-improvement-on-the-new-testing-process-ngsild-payloads\/","url_meta":{"origin":12691,"position":2},"title":"Another tiny improvement on the new testing process (ngsild payloads)","author":"maestro","date":"11\/02\/2025","format":false,"excerpt":"In the new testing process, 4th option in the tools menu, now it is available a new test that checks if the example-normalized.jsonld is a valid NGSI LD file. This process helps contributors to debug their data models before submit them officially (where there will be new tests before final\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":9179,"url":"https:\/\/smartdatamodels.org\/index.php\/test-an-orion-ld-broker-populated-with-the-sdm-examples\/","url_meta":{"origin":12691,"position":3},"title":"Test an Orion-LD broker populated with the SDM examples","author":"maestro","date":"11\/07\/2023","format":false,"excerpt":"In the tools menu there is a new option \"Test Orion-LD broker\". In this address https:\/\/smartdatamodels:1026 there is an Orion-LD Broker installed open for testing purposes. You can check It is wiped out every hour, on minute 27, and then repopulated with some hundreds of examples (most of the current\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":9594,"url":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-the-contribution-manual\/","url_meta":{"origin":12691,"position":4},"title":"New version of the contribution manual","author":"maestro","date":"19\/09\/2023","format":false,"excerpt":"The contribution manual has minor updates frequently, but now we have created a brand new version - Restructuring the contents - Including explanation on how to use the test service for new data models - Making more understandable the contribution workflow - Guidelines for contributing - The list of support\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":2554,"url":"https:\/\/smartdatamodels.org\/index.php\/new-option-in-the-menu-for-geojson-features-export\/","url_meta":{"origin":12691,"position":5},"title":"New option in the menu for geojson features export","author":"maestro","date":"02\/06\/2021","format":false,"excerpt":"In the main menu option Generate NGSI examples -> Geojson features format This option allows you to generate random payloads compliant with a data model in Geojson features 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":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/12691","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=12691"}],"version-history":[{"count":1,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/12691\/revisions"}],"predecessor-version":[{"id":12693,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/12691\/revisions\/12693"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=12691"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=12691"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=12691"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}