{"id":9213,"date":"2023-07-13T12:07:36","date_gmt":"2023-07-13T10:07:36","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=9213"},"modified":"2023-07-13T12:07:36","modified_gmt":"2023-07-13T10:07:36","slug":"simple-but-useful-programs-to-interact-with-a-broker-in-php","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/simple-but-useful-programs-to-interact-with-a-broker-in-php\/","title":{"rendered":"Simple but useful programs to interact with a broker in PHP"},"content":{"rendered":"<p>We have released two very simple programs to create an entity in a context broker and for removing an entity based on its id.<\/p>\n<p>Although this is pretty straight forward, being coded in PHP allows you to integrate with, in example, in a WordPress site.<\/p>\n<p>In fact these programs are working in the test Orion-LD broker option, located here at home -&gt; tools -&gt; <a href=\"https:\/\/smartdatamodels.org\/index.php\/orion-ld-broker-with-examples-of-some-smart-data-models\/\">test Orion-LD broker<\/a><\/p>\n<p>The source code is available at the <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\/utils\">utils<\/a> directory and the\u00a0 <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\">data-models<\/a> umbrella repository<\/p>\n<p>&#8211; <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/create_broker_entity.php\">create_broker_entity.php <\/a><\/p>\n<p>&#8211; <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/remove_broker_entity.php\">remove_broker_entity.php<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have released two very simple programs to create an entity in a context broker and for removing an entity based on its id. Although this is pretty straight forward, being coded in PHP allows you to integrate with, in example, in a WordPress site. In fact these programs are&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/simple-but-useful-programs-to-interact-with-a-broker-in-php\/\">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-9213","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":9179,"url":"https:\/\/smartdatamodels.org\/index.php\/test-an-orion-ld-broker-populated-with-the-sdm-examples\/","url_meta":{"origin":9213,"position":0},"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":32325,"url":"https:\/\/smartdatamodels.org\/index.php\/besser-smart-data-json-schema-generator\/","url_meta":{"origin":9213,"position":1},"title":"BESSER Smart Data JSON Schema Generator","author":"maestro","date":"27\/02\/2026","format":false,"excerpt":"Overview The tool automates the generation of Smart Data Models (SDM) from visual models, bridging the gap between high-level domain design and technical implementation for Digital Twins and IoT ecosystems. Technical Workflow Input: Users define domain entities and relationships using B-UML (a simplified UML dialect) within the BESSER Pearl editor.\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":9334,"url":"https:\/\/smartdatamodels.org\/index.php\/new-version-of-the-python-package-pysmartdatamodels-0-6-0\/","url_meta":{"origin":9213,"position":2},"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":10360,"url":"https:\/\/smartdatamodels.org\/index.php\/examples-of-code-associated-to-every-data-model\/","url_meta":{"origin":9213,"position":3},"title":"Examples of code associated to every data model","author":"maestro","date":"15\/05\/2024","format":false,"excerpt":"In order to make easier the use of the Smart Data Models now in every repository in GitHub there is a new directory named 'code' that contains for the python code using the pysmartdatamodels\u00a0 for the architecture in the image below. The idea is a code that fills several attributes\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\/code_example_architecture.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2205,"url":"https:\/\/smartdatamodels.org\/index.php\/new-service-generate-a-ngsi-ld-payload-keyvalues-format-compliant-with-a-smart-data-model\/","url_meta":{"origin":9213,"position":4},"title":"New service: Generate a NGSI-LD payload keyvalues format compliant with a Smart Data Model","author":"maestro","date":"28\/04\/2021","format":false,"excerpt":"There is a new service for users, which is the ability to generate an example payload compliant with a specific data model in key values format. Previously it was available the normalized format. Options are located in the main menu (Generate NGSI examples) NGSI-LD normalized format NGSI-LD keyvalues format","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\/2021\/04\/NGSI_examples-150x150.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"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":9213,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/9213","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=9213"}],"version-history":[{"count":1,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/9213\/revisions"}],"predecessor-version":[{"id":9214,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/9213\/revisions\/9214"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=9213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=9213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=9213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}