{"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}},"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":12717,"url":"https:\/\/smartdatamodels.org\/index.php\/tiny-improvement-on-the-new-testing-process\/","url_meta":{"origin":12691,"position":0},"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":1},"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":12623,"url":"https:\/\/smartdatamodels.org\/index.php\/new-testing-process-in-progress-were-you-can-contribute-your-code\/","url_meta":{"origin":12691,"position":2},"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":2644,"url":"https:\/\/smartdatamodels.org\/index.php\/new-method-for-drafting-the-json-schema-for-a-new-data-model\/","url_meta":{"origin":12691,"position":3},"title":"New method for drafting the json schema for a new data model","author":"maestro","date":"09\/06\/2021","format":false,"excerpt":"A new tool (capable of the creation of more complex data models) is available at the menu \"Draft a data model\". It is an external tool that simplifies the json schema needs. Hope it speeds up the development of new data models and simplifies it for newcomers to this syntaxis.\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":4},"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":10263,"url":"https:\/\/smartdatamodels.org\/index.php\/metadata-of-the-catalogue-available\/","url_meta":{"origin":12691,"position":5},"title":"Metadata of the catalogue available","author":"maestro","date":"01\/02\/2024","format":false,"excerpt":"Now in the tools menu (currently the last option) you have a complete list of the most relevant links to the assets of the data models compile in the Smart Data Models initiative. You can check in the main menu -> Tools\u00a0 -> Metadata of the data models The information\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\/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}]}}