{"id":9179,"date":"2023-07-11T18:23:53","date_gmt":"2023-07-11T16:23:53","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=9179"},"modified":"2023-07-11T18:23:53","modified_gmt":"2023-07-11T16:23:53","slug":"test-an-orion-ld-broker-populated-with-the-sdm-examples","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/test-an-orion-ld-broker-populated-with-the-sdm-examples\/","title":{"rendered":"Test an Orion-LD broker populated with the SDM examples"},"content":{"rendered":"<p>In the tools menu there is a new option &#8220;<a href=\"https:\/\/smartdatamodels.org\/index.php\/orion-ld-broker-with-examples-of-some-smart-data-models\/\"><em>Test Orion-LD broker<\/em><\/a>&#8220;.<br \/>\nIn this address <a href=\"https:\/\/smartdatamodels.org:1026\/version\">https:\/\/smartdatamodels:1026<\/a> there is an <a href=\"https:\/\/github.com\/FIWARE\/context.Orion-LD\">Orion-LD Broker<\/a> installed open for testing purposes. You can check<\/p>\n<p>It is wiped out every hour, on minute 27, and then repopulated with some hundreds of examples (most of the current examples in data models).<\/p>\n<p>Some examples of queries:<\/p>\n<ul>\n<li style=\"list-style-type: none;\">\n<ul>\n<li><a href=\"https:\/\/smartdatamodels.org:1026\/ngsi-ld\/v1\/entities?local=true&amp;limit=1000\" target=\"_blank\" rel=\"noopener\">List most of the data entities<\/a><\/li>\n<li><a href=\"https:\/\/smartdatamodels.org:1026\/version\" target=\"_blank\" rel=\"noopener\">Broker version<\/a><\/li>\n<li><a href=\"https:\/\/smartdatamodels.org:1026\/ngsi-ld\/v1\/entities?type=https:\/\/smartdatamodels.org\/dataModel.Transportation\/RoadAccident\" target=\"_blank\" rel=\"noopener\">List RoadAccident example<\/a><\/li>\n<li><a href=\"https:\/\/smartdatamodels.org:1026\/ngsi-ld\/v1\/entities?type=https:\/\/smartdatamodels.org\/dataModel.Transportation\/RoadAccident&amp;attrs=status\" target=\"_blank\" rel=\"noopener\">List the value of attribute status in a data model<\/a><\/li>\n<li><a href=\"https:\/\/smartdatamodels.org\/extra\/create_broker_entity.php?payload='{&quot;id&quot;: &quot;urn:ngsi-ld:aojo:1234&quot;, &quot;type&quot;: &quot;test&quot;, &quot;humidity&quot;: 3, &quot;otherAttribute&quot;: &quot;check&quot;, &quot;@context&quot;: [&quot;https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.Building\/master\/context.jsonld&quot;]}'\" target=\"_blank\" rel=\"noopener\">Create an entity.<\/a>{&#8220;id&#8221;: &#8220;urn:ngsi-ld:aojo:1234&#8221;, &#8220;type&#8221;: &#8220;test&#8221;, &#8220;humidity&#8221;: 3, &#8220;otherAttribute&#8221;: &#8220;check&#8221;}.<\/li>\n<li><a href=\"https:\/\/smartdatamodels.org:1026\/ngsi-ld\/v1\/entities\/urn:ngsi-ld:aojo:1234\">List the recently created entity<\/a> (if you click previous link)<\/li>\n<li><a href=\"https:\/\/smartdatamodels.org\/extra\/remove_broker_entity.php?entityId=urn:ngsi-ld:aojo:1234\">Remove an entity<\/a> (this case )<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><a href=\"https:\/\/smartdatamodels.org\/index.php\/off-topic-new-version-of-standard-ngsi-ld-1-6-1\/\">full specification 1.6.1<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the tools menu there is a new option &#8220;Test Orion-LD broker&#8220;. 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&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/test-an-orion-ld-broker-populated-with-the-sdm-examples\/\">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-9179","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":9213,"url":"https:\/\/smartdatamodels.org\/index.php\/simple-but-useful-programs-to-interact-with-a-broker-in-php\/","url_meta":{"origin":9179,"position":0},"title":"Simple but useful programs to interact with a broker in PHP","author":"maestro","date":"13\/07\/2023","format":false,"excerpt":"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\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":9179,"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":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":9179,"position":2},"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":2255,"url":"https:\/\/smartdatamodels.org\/index.php\/ngsi-ld-key-values-service-in-the-readme-of-every\/","url_meta":{"origin":9179,"position":3},"title":"NGSI-LD key values service in the README of every","author":"maestro","date":"03\/05\/2021","format":false,"excerpt":"In the README of every data model now there is a new line in the Dynamic examples section, under the text \"Link to the Generator of NGSI-LD keyvalues payloads compliant with this data model. Refresh for new values\" The link provides an example of a NGSI keyvalues payload with values\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\/2021\/04\/Selection_425.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/Selection_425.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/Selection_425.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/04\/Selection_425.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":636,"url":"https:\/\/smartdatamodels.org\/index.php\/automatic-creation-of-examples\/","url_meta":{"origin":9179,"position":4},"title":"Automatic creation of examples","author":"maestro","date":"10\/09\/2020","format":false,"excerpt":"In order to reduce the amount of work in the contribution of data models, we have a script that generates the key-values format of a normalized NGSI LD payload. It has been operated on 46 data models currently in the repository. In a close future instead of submitting 4 examples,\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":629,"url":"https:\/\/smartdatamodels.org\/index.php\/making-examples-more-consistent\/","url_meta":{"origin":9179,"position":5},"title":"Making examples more consistent","author":"maestro","date":"09\/09\/2020","format":false,"excerpt":"All the repositories have been normalized in the naming of the core examples. So: Key values in NGSI v2 is named example.json Key values in NGSI LD is named example.jsonld Normalized (default) in NGSI v2 is named example-normalized.json Normalized (default) in NGSI LD is named example-normalized.jsonld It is possible 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":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/9179","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=9179"}],"version-history":[{"count":2,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/9179\/revisions"}],"predecessor-version":[{"id":9204,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/9179\/revisions\/9204"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=9179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=9179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=9179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}