{"id":10306,"date":"2024-02-28T14:58:55","date_gmt":"2024-02-28T13:58:55","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=10306"},"modified":"2024-02-28T14:58:55","modified_gmt":"2024-02-28T13:58:55","slug":"minor-extension-of-pysmartdatamodels-0-6-4-1","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/minor-extension-of-pysmartdatamodels-0-6-4-1\/","title":{"rendered":"Minor extension of pysmartdatamodels 0.6.4.1"},"content":{"rendered":"<p>There is a minor new version of the package <a href=\"https:\/\/pypi.org\/project\/pysmartdatamodels\/\">pysmartdatamodels<\/a>.<\/p>\n<p>Now it allows to have in the metadata of a data model the direct links to the specification in the 8 languages.<\/p>\n<p>you can access thanks to the function <span class=\"n\"><em>list_datamodel_metadata<\/em> and accessing the objects with the keys, spec, spec_DE, spec_ES, spec_FR, spec_IT, spec_JA, spec_KO and spec_ZH<\/span><\/p>\n<pre lang=\"python3\">from pysmartdatamodels import pysmartdatamodels as sdm\r\nsubject = \"dataModel.Weather\"\r\ndataModel =\"WeatherForecast\"\r\nmetadata = sdm.list_datamodel_metadata(dataModel, subject))\r\nprint(metadata[\"spec_ES\"]<\/pre>\n<p>You can install the update<\/p>\n<p>pip install &#8211;upgrade pysmartdatamodels<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10307\" src=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysdm_0.6.4.1.png\" alt=\"\" width=\"504\" height=\"119\" srcset=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysdm_0.6.4.1.png 504w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysdm_0.6.4.1-300x71.png 300w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysdm_0.6.4.1-150x35.png 150w\" sizes=\"auto, (max-width: 504px) 100vw, 504px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a minor new version of the package pysmartdatamodels. Now it allows to have in the metadata of a data model the direct links to the specification in the 8 languages. you can access thanks to the function list_datamodel_metadata and accessing the objects with the keys, spec, spec_DE, spec_ES,&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/minor-extension-of-pysmartdatamodels-0-6-4-1\/\">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-10306","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":10291,"url":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-pysmartdatamodels-package-0-6-4-with-adaptations-to-data-spaces\/","url_meta":{"origin":10306,"position":0},"title":"New version of pysmartdatamodels package 0.6.4 with adaptations to Data Spaces","author":"maestro","date":"26\/02\/2024","format":false,"excerpt":"There is a new version of the python package pysmartdatamodels to use it you have just to type pip install pysmartdatamodels in your system Besides the update in the list of data models it includes two new functions - look_for_data_model that allows approximate searches for a data model based on\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\/02\/pysmartdatamodels_0.6.4.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10310,"url":"https:\/\/smartdatamodels.org\/index.php\/pysmartdatamodels-updated-to-0-7\/","url_meta":{"origin":10306,"position":1},"title":"pysmartdatamodels updated to 0.7","author":"maestro","date":"07\/03\/2024","format":false,"excerpt":"The new version does not provide new functionalities but an indication, including drafted code, about what is missing or in progress to the package can grow according to your needs. The source code for the new version 0.7.0 is here at the data-models repository There are 4 new functions drafted\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\/03\/Selection_515.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":8157,"url":"https:\/\/smartdatamodels.org\/index.php\/the-data-models-available-for-python-developers-pysmartdatamodels-0-5-40-published-beta-version\/","url_meta":{"origin":10306,"position":2},"title":"The data models available for python developers. pysmartdatamodels 0.5.40 published. Beta version.","author":"maestro","date":"27\/01\/2023","format":false,"excerpt":"Now you can find in pypi.org the python package pysmartdatamodels with 13 functions for the integrators of the data models (more than 800) in external systems and applications. It is a beta version. There is a function, update_data() that whenever is run, it updates the data models to the last\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":7846,"url":"https:\/\/smartdatamodels.org\/index.php\/draft-of-a-python-package-available\/","url_meta":{"origin":10306,"position":3},"title":"Draft of a python package available","author":"maestro","date":"12\/12\/2022","format":false,"excerpt":"Now we have a draft version of a python package to integrate the smart data models with your developments. It is a beta version so you can expect some issues when using it. We will be glad if you report it at info@smartdatamodels.org or suggest new features. Thanks to Anthony\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\/11\/python-logo-master-v3-TM-flattened.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2022\/11\/python-logo-master-v3-TM-flattened.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2022\/11\/python-logo-master-v3-TM-flattened.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":8301,"url":"https:\/\/smartdatamodels.org\/index.php\/pysmartdatamodels\/","url_meta":{"origin":10306,"position":4},"title":"pysmartdatamodels options in the tools menu","author":"maestro","date":"10\/02\/2023","format":false,"excerpt":"New options for pysmartdatamodels package. There are a new element in he tools menu to access the pysmartdatamodels package, its documentation, or a code example.","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\/2023\/02\/Selection_174.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9905,"url":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-the-python-package-pysmartdatamodels-0-6-1\/","url_meta":{"origin":10306,"position":5},"title":"New Version of the Python Package pysmartdatamodels 0.6.1","author":"maestro","date":"09\/10\/2023","format":false,"excerpt":"There is a new version of the python package for pysmartdatamodels 0.6.1. This python package includes all the data models and several functions to use them in your developments. Changelog: - Two updated functions New extension for function update_broker() to allow updating nonexistent attribute into broker Function validate_data_model_schema(), with wider\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\/2023\/10\/Screenshot-2023-10-09-at-13.59.19-1024x685.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-09-at-13.59.19-1024x685.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-09-at-13.59.19-1024x685.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2023\/10\/Screenshot-2023-10-09-at-13.59.19-1024x685.png?resize=700%2C400&ssl=1 2x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/10306","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=10306"}],"version-history":[{"count":1,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/10306\/revisions"}],"predecessor-version":[{"id":10308,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/10306\/revisions\/10308"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=10306"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=10306"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=10306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}