{"id":7671,"date":"2022-11-22T17:57:00","date_gmt":"2022-11-22T16:57:00","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=7671"},"modified":"2022-11-22T17:57:00","modified_gmt":"2022-11-22T16:57:00","slug":"release-source-code-for-some-of-the-services-for-python-developers","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/release-source-code-for-some-of-the-services-for-python-developers\/","title":{"rendered":"Release source code for some of the services. For python developers."},"content":{"rendered":"<p>In the tools option of the main menu, there are a few services to help you to use, create and debug your data models.<\/p>\n<p>Although working, some of these services are limited. We are releasing the code for some of the services to allow you to contribute with improvments.<\/p>\n<p>It appears by the end of the page with texts like this:<\/p>\n<p><em>&#8220;source code of this service if you want to improve it.&#8221; <\/em><\/p>\n<p>Source code has an hyperlink pointing to the specific script in the <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\/utils\">utils directory<\/a>. <em><br \/>\n<\/em><\/p>\n<p>They are created in python and connected to the WP forms in each option<\/p>\n<p>Specifically<\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/create_jsonschema_from_payload.py\">For the creation of schema based on a <\/a><a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/create_jsonschema_from_payload.py\">json keyvalues<\/a><a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/create_jsonschema_from_payload.py\"> payload <\/a><\/li>\n<li><a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/create_jsonschema_from_csv.py\">For the creation of schema based on a csv payload<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/context_local_generator_V1.0.py\">For merging several @context coming from different subjects<\/a><\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-7672 size-medium\" src=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/11\/python-logo-master-v3-TM-flattened-300x101.png\" alt=\"\" width=\"300\" height=\"101\" srcset=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/11\/python-logo-master-v3-TM-flattened-300x101.png 300w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/11\/python-logo-master-v3-TM-flattened-150x51.png 150w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/11\/python-logo-master-v3-TM-flattened.png 601w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the tools option of the main menu, there are a few services to help you to use, create and debug your data models. Although working, some of these services are limited. We are releasing the code for some of the services to allow you to contribute with improvments. It&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/release-source-code-for-some-of-the-services-for-python-developers\/\">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":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-7671","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","category-smartlogistics"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"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":7671,"position":0},"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":10356,"url":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-pysmartdatamodels-python-package-0-7-1\/","url_meta":{"origin":7671,"position":1},"title":"New version of pysmartdatamodels python package 0.7.1","author":"maestro","date":"07\/05\/2024","format":false,"excerpt":"The changes in this new version are: - Including new function validate_dcat_ap_distribution_sdm - Updating the comments of most of the functions - Some code improvements by jilin.he@fiware.org - Included a new directory with templates for the creation of a data model. Not used yet but next version they will be\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\/2024\/05\/pysmartdatamodels_0.7.1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2776,"url":"https:\/\/smartdatamodels.org\/index.php\/release-of-software-for-smart-data-models-initiative\/","url_meta":{"origin":7671,"position":2},"title":"Release of software for Smart Data Models Programs","author":"maestro","date":"28\/06\/2021","format":false,"excerpt":"According to the last open session, the script for the creation of the model.yaml file (see this example) file which is present in every data model has been released. It is a python 3.6 script you can access in the utils directory of the program. 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":12623,"url":"https:\/\/smartdatamodels.org\/index.php\/new-testing-process-in-progress-were-you-can-contribute-your-code\/","url_meta":{"origin":7671,"position":3},"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":12691,"url":"https:\/\/smartdatamodels.org\/index.php\/improved-test-method-for-data-models\/","url_meta":{"origin":7671,"position":4},"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":[]},{"id":10376,"url":"https:\/\/smartdatamodels.org\/index.php\/version-0-8-of-the-pysmartdatamodels-package\/","url_meta":{"origin":7671,"position":5},"title":"Version 0.8 of the pysmartdatamodels package","author":"maestro","date":"24\/05\/2024","format":false,"excerpt":"Due to the new configuration of files of the package pysmartdatamodels it will be no longer required to use the from clause (initially) Therefore now to import the package in python it will be simply import pysmartdatamodels as sdm Accordingly the examples of code in all data models are being\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\/2024\/05\/pysdm0.8.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/7671","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=7671"}],"version-history":[{"count":1,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/7671\/revisions"}],"predecessor-version":[{"id":7673,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/7671\/revisions\/7673"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=7671"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=7671"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=7671"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}