{"id":10291,"date":"2024-02-26T01:57:16","date_gmt":"2024-02-26T00:57:16","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=10291"},"modified":"2024-02-26T01:57:16","modified_gmt":"2024-02-26T00:57:16","slug":"new-version-of-pysmartdatamodels-package-0-6-4-with-adaptations-to-data-spaces","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-pysmartdatamodels-package-0-6-4-with-adaptations-to-data-spaces\/","title":{"rendered":"New version of pysmartdatamodels package 0.6.4 with adaptations to Data Spaces"},"content":{"rendered":"<p>There is a new version of the python package <a href=\"https:\/\/pypi.org\/project\/pysmartdatamodels\/\">pysmartdatamodels<\/a><\/p>\n<p>to use it you have just to type<\/p>\n<p>pip install pysmartdatamodels<\/p>\n<p>in your system<\/p>\n<p>Besides the update in the list of data models it includes two new functions<br \/>\n&#8211; <strong><em>look_for_data_model<\/em><\/strong> that allows approximate searches for a data model based on their name<br \/>\n&#8211; <strong><em>list_datamodel_metadata<\/em><\/strong> that returns the metadata of a data model including context link, data model version, model tags, link to the schema and to the yaml version of the schema, title, description, $id, required, links to the examples, link to the adopters, link to the contributors of the subject and a link to the sql export of a data model<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-10292\" src=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysmartdatamodels_0.6.4.png\" alt=\"\" width=\"523\" height=\"155\" srcset=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysmartdatamodels_0.6.4.png 523w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysmartdatamodels_0.6.4-300x89.png 300w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2024\/02\/pysmartdatamodels_0.6.4-150x44.png 150w\" sizes=\"auto, (max-width: 523px) 100vw, 523px\" \/><\/p>\n<p>These new functions are the result of some requests of data spaces managers and several others will be included soon to help you out in the management of the semantic contents of a data space.<\/p>\n<p>A code example of these two new functions<\/p>\n<pre lang=\"python3\"><span class=\"kn\">from<\/span> <span class=\"nn\">pysmartdatamodels<\/span> <span class=\"kn\">import<\/span> <span class=\"n\">pysmartdatamodels<\/span> <span class=\"k\">as<\/span> <span class=\"n\">sdm\r\n<\/span>\r\n<span class=\"n\">subject<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"dataModel.Weather\"<\/span>\r\n<span class=\"n\">dataModel<\/span> <span class=\"o\">=<\/span> <span class=\"s2\">\"WeatherForecast\"<\/span>\r\n<span class=\"c1\"># Look for a data model name <\/span>\r\n<span class=\"nb\">print<\/span><span class=\"p\">(<\/span><span class=\"s2\">\"22 : \"<\/span><span class=\"p\">)<\/span>\r\n<span class=\"nb\">print<\/span><span class=\"p\">(<\/span><span class=\"n\">sdm<\/span><span class=\"o\">.<\/span><span class=\"n\">look_for_datamodel<\/span><span class=\"p\">(<\/span><span class=\"s2\">\"WeatherFora\"<\/span><span class=\"p\">,<\/span> <span class=\"mi\">84<\/span><span class=\"p\">))<\/span>\r\n<span class=\"c1\"># retrieve the metadata, context, version, model tags, schema, yaml schema, title, description, $id, required, examples, adopters, contributors and sql export of a data model<\/span>\r\n<span class=\"nb\">print<\/span><span class=\"p\">(<\/span><span class=\"s2\">\"23 : \"<\/span><span class=\"p\">)<\/span>\r\n<span class=\"nb\">print<\/span><span class=\"p\">(<\/span><span class=\"n\">sdm<\/span><span class=\"o\">.<\/span><span class=\"n\">list_datamodel_metadata<\/span><span class=\"p\">(<\/span><span class=\"n\">dataModel<\/span><span class=\"p\">,<\/span> <span class=\"n\">subject<\/span><span class=\"p\">))<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8211; look_for_data_model that allows approximate searches for a data model based on&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/new-version-of-pysmartdatamodels-package-0-6-4-with-adaptations-to-data-spaces\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":10292,"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-10291","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\/2024\/02\/pysmartdatamodels_0.6.4.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":9334,"url":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-the-python-package-pysmartdatamodels-0-6-0\/","url_meta":{"origin":10291,"position":0},"title":"New Version of the Python Package pysmartdatamodels 0.6.0","author":"maestro","date":"01\/08\/2023","format":false,"excerpt":"There is a new version of the python package for pysmartdatamodels 0.6.0. This python package includes all the data models and several functions to use them in your developments. Changelog: - Four new functions New functions to generate fake example files given the schema payload of the data model 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":"pysmartdatamodels 0.6.0","src":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-01-at-09.34.53-300x162.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-01-at-09.34.53-300x162.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2023\/08\/Screenshot-2023-08-01-at-09.34.53-300x162.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":8176,"url":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-pysmartdatamodels-0-5-41\/","url_meta":{"origin":10291,"position":1},"title":"New version of pysmartdatamodels 0.5.41","author":"maestro","date":"30\/01\/2023","format":false,"excerpt":"There is a new version of the python package for smart data models\u00a0 pysmartdatamodels 0.5.41 Changelog: - The README include now the basic documentation of each function New function to load in a dictionary all subjects and their data models, with their repository link, and related domains New function to\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":10131,"url":"https:\/\/smartdatamodels.org\/index.php\/new-pysmartdatamodels-package-0-6-3-release\/","url_meta":{"origin":10291,"position":2},"title":"New pysmartdatamodels package 0.6.3 Release","author":"maestro","date":"02\/11\/2023","format":false,"excerpt":"We are thrilled to announce the latest update to pysmartdatamodels Python package, version 0.6.3, featuring a new function: generate_sql_schema()This addition enabling seamless generation of SQL schemas with just a few lines of code! Introducing\u00a0 generate_sql_schemqa() Function: With the new function, generate_sql_schemqa()\u00a0 pysmartdatamodels simplifies the process of creating SQL schemas for\u2026","rel":"","context":"In &quot;Smart Cities domain&quot;","block_context":{"text":"Smart Cities domain","link":"https:\/\/smartdatamodels.org\/index.php\/category\/smart-cities\/"},"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":10291,"position":3},"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":10306,"url":"https:\/\/smartdatamodels.org\/index.php\/minor-extension-of-pysmartdatamodels-0-6-4-1\/","url_meta":{"origin":10291,"position":4},"title":"Minor extension of pysmartdatamodels 0.6.4.1","author":"maestro","date":"28\/02\/2024","format":false,"excerpt":"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,\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\/pysdm_0.6.4.1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":10376,"url":"https:\/\/smartdatamodels.org\/index.php\/version-0-8-of-the-pysmartdatamodels-package\/","url_meta":{"origin":10291,"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\/10291","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=10291"}],"version-history":[{"count":5,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/10291\/revisions"}],"predecessor-version":[{"id":10297,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/10291\/revisions\/10297"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media\/10292"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=10291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=10291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=10291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}