{"id":12623,"date":"2025-02-06T17:58:31","date_gmt":"2025-02-06T16:58:31","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=12623"},"modified":"2025-02-06T17:58:31","modified_gmt":"2025-02-06T16:58:31","slug":"new-testing-process-in-progress-were-you-can-contribute-your-code","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/new-testing-process-in-progress-were-you-can-contribute-your-code\/","title":{"rendered":"New testing process in progress were you can contribute your code"},"content":{"rendered":"<p><strong>Current test process for new and extended data models<\/strong><\/p>\n<p>In order to approve a new data model a test needs to be passed. It cold be accessed in the <a href=\"https:\/\/smartdatamodels.org\/index.php\/data-models-contribution-api\/\">3rd option in the tools menu<\/a> at the front page:<\/p>\n<p>Pro: it is currently working<\/p>\n<p>Con: It is mostly created in a single file for testing and error messages are not very explicit about the errors detected<\/p>\n<p><strong>The new process<\/strong><\/p>\n<p>1) Every test is an independent file:<\/p>\n<p>2) To test the new data model it copies to local the files and then run the tests, which is quicker.<\/p>\n<p><strong>What can you do with basic knowledge of python (or with a good AI service)<\/strong><\/p>\n<p>Here you can see the current files available in the github repository data-models subdirectory <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\/test_data_model\">test_data_model<\/a><\/p>\n<p>Instructions \n","protected":false},"excerpt":{"rendered":"<p>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&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/new-testing-process-in-progress-were-you-can-contribute-your-code\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3117,"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,201],"tags":[],"class_list":["post-12623","post","type-post","status-publish","format-standard","has-post-thumbnail","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","category-smartlogistics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2021\/09\/Logo_SmartDataModels_reduced.png","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":12623,"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":26834,"url":"https:\/\/smartdatamodels.org\/index.php\/updated-the-test-file-test_duplicated_attributes\/","url_meta":{"origin":12623,"position":1},"title":"updated the test file test_duplicated_attributes","author":"maestro","date":"23\/09\/2025","format":false,"excerpt":"The contributors of new data models can test their data models in their local repositories with the source code of the testing tool than also can use online Home -> tools -> test your data model it has been updated to deal with those attributes coming from languageMap properties 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":12719,"url":"https:\/\/smartdatamodels.org\/index.php\/another-tiny-improvement-on-the-new-testing-process-ngsild-payloads\/","url_meta":{"origin":12623,"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":13212,"url":"https:\/\/smartdatamodels.org\/index.php\/new-script-for-testing-several-data-models-at-the-same-time\/","url_meta":{"origin":12623,"position":3},"title":"New script for testing several data models at the same time.","author":"maestro","date":"27\/02\/2025","format":false,"excerpt":"Most of the files of the testing process have been updated and make it available the source code: https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\/test_data_model But also there is a new file multiple_tests.py This file enables you to test all the data models located in a internal subject (subdirectories of the root one). Currently this option\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\/2022\/01\/favicon-300x300.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":5912,"url":"https:\/\/smartdatamodels.org\/index.php\/draft-you-data-model-from-a-csv-payload-test\/","url_meta":{"origin":12623,"position":4},"title":"Draft your data model from a csv payload (test)","author":"maestro","date":"06\/06\/2022","format":false,"excerpt":"There is a new service for the creation of schema of a data model when the input is a csv payload. It is available in the home -> Draft a data model -> Create a data model from csv payload If you detect any issue or you want to make\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":12691,"url":"https:\/\/smartdatamodels.org\/index.php\/improved-test-method-for-data-models\/","url_meta":{"origin":12623,"position":5},"title":"Improved test method for data models","author":"maestro","date":"10\/02\/2025","format":false,"excerpt":"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 - We need to be more\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\/12623","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=12623"}],"version-history":[{"count":3,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/12623\/revisions"}],"predecessor-version":[{"id":12626,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/12623\/revisions\/12626"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media\/3117"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=12623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=12623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=12623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}