{"id":453,"date":"2020-06-08T09:07:05","date_gmt":"2020-06-08T09:07:05","guid":{"rendered":"http:\/\/data-models.fiware.org\/?p=453"},"modified":"2020-06-14T23:41:52","modified_gmt":"2020-06-14T23:41:52","slug":"help-for-data-modellers","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/help-for-data-modellers\/","title":{"rendered":"Help for data modellers"},"content":{"rendered":"<p>Some of the contributors have requested some help about creating new data models. How to do it and where to do it.<\/p>\n<p>HOW TO CREATE DATA MODELS<\/p>\n<p>1) If you are clear about the payloads that you want to share (you have a plain key values json payload)<\/p>\n<p>i.e. <a href=\"https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.Weather\/master\/WeatherObserved\/example.jsonld\">https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.Weather\/master\/WeatherObserved\/example.jsonld <\/a><\/p>\n<p>2) You can use this tool <a href=\"https:\/\/www.liquid-technologies.com\/online-json-to-schema-converter\">https:\/\/www.liquid-technologies.com\/online-json-to-schema-converter<\/a> (This link is always available in the <a href=\"http:\/\/data-models.fiware.org\/index.php\/learning-zone\/\">Learning Zone<\/a> on the upper menu, section tools)<\/p>\n<p>to generate a draft version of the json schema. You will have to review (for sure).<\/p>\n<p>&#8211; Whether you need some restrictions (min, max) on number properties<\/p>\n<p>&#8211; The number of required properties<\/p>\n<p>&#8211; The full list of options in enumeration properties<\/p>\n<p>&#8211; Remove the context (it is treated as property)<\/p>\n<p>&#8211; Check the Arrays (minItems, etc)<\/p>\n<p>and possibly some other minor issues<\/p>\n<p>WHERE TO CREATE DATA MODELS<\/p>\n<p>3) We offer an open repository named pending for you to contribute while developing. Ask for access <a href=\"http:\/\/data-models.fiware.org\/index.php\/submit-an-issue-2\/\">raising an issue<\/a> with the option &#8216;Access to pending repository&#8217;<\/p>\n<p>http:\/\/data-models.fiware.org\/index.php\/submit-an-issue-2\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some of the contributors have requested some help about creating new data models. How to do it and where to do it. HOW TO CREATE DATA MODELS 1) If you are clear about the payloads that you want to share (you have a plain key values json payload) i.e. https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.Weather\/master\/WeatherObserved\/example.jsonld&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/help-for-data-modellers\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":11,"comment_status":"open","ping_status":"open","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":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[96,107,109,113,115,119,117,111],"tags":[],"class_list":["post-453","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-coding","category-smart-cities","category-smart-energy-domain","category-smart-environment","category-smart-manufacturing","category-smart-robotics","category-smart-water","category-smart-agrifood"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2020\/03\/Smart_Data_Models_square-02.png","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":10389,"url":"https:\/\/smartdatamodels.org\/index.php\/the-smart-data-models-initiative-embraces-json-schema-as-the-core-component-for-interoperable-smart-solutions\/","url_meta":{"origin":453,"position":0},"title":"The Smart Data Models Initiative Embraces JSON Schema as the Core Component for Interoperable Smart Solutions","author":"maestro","date":"15\/07\/2024","format":false,"excerpt":"The Smart Data Models (SDM) initiative, led by FIWARE Foundation in collaboration with IUDX, TM Forum, and OASC, has firmly established JSON Schema as the core component and single source of truth for creating exports in YAML, SQL, and soon RDF. This strategic move aligns the SDM initiative with the\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":10581,"url":"https:\/\/smartdatamodels.org\/index.php\/updated-all-data-models-to-the-last-version-of-json-schema\/","url_meta":{"origin":453,"position":1},"title":"Updated all data models to the last version of json schema","author":"maestro","date":"16\/09\/2024","format":false,"excerpt":"NOTE: We did yesterday 17-9 the changes. Unfortunately we made a mistake and now we have to revert all these changes, do it again properly and push. this Friday will be ready if not earlier. NOTE2: It is already updated. Its Wednesday 15:30. Hopefully this time we made no errors.\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\/09\/json_schema.jpeg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2644,"url":"https:\/\/smartdatamodels.org\/index.php\/new-method-for-drafting-the-json-schema-for-a-new-data-model\/","url_meta":{"origin":453,"position":2},"title":"New method for drafting the json schema for a new data model","author":"maestro","date":"09\/06\/2021","format":false,"excerpt":"A new tool (capable of the creation of more complex data models) is available at the menu \"Draft a data model\". It is an external tool that simplifies the json schema needs. Hope it speeds up the development of new data models and simplifies it for newcomers to this syntaxis.\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":453,"position":3},"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":930,"url":"https:\/\/smartdatamodels.org\/index.php\/check-a-schema-validates-a-payload\/","url_meta":{"origin":453,"position":4},"title":"Check a schema validates a payload","author":"maestro","date":"07\/12\/2020","format":false,"excerpt":"If you want to check if a schema validates a payload\u00a0 through this API call Call: https:\/\/smartdatamodels.org\/extra\/validate_payload.php Parameters: (Mandatories) payloadUrl: The url of the payload in RAW version schemaUrl: The link to the RAW version of the json schema (see example) Example: https:\/\/smartdatamodels.org\/extra\/validate_payload.php?payloadUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.Battery\/master\/Battery\/examples\/example.json&schemaUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.Battery\/master\/Battery\/schema.json Output: A json payload with these properties\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":8389,"url":"https:\/\/smartdatamodels.org\/index.php\/updated-common-schema-json\/","url_meta":{"origin":453,"position":5},"title":"updated common-schema.json","author":"maestro","date":"02\/03\/2023","format":false,"excerpt":"We have noticed an error in the description of the attribute location in the file common-schema.json, a file that is embedded in most of the data models. It does not affect the data types (so the validation of the schemas is not affected) but it affects the qualification of the\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\/453","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=453"}],"version-history":[{"count":3,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/453\/revisions"}],"predecessor-version":[{"id":456,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/453\/revisions\/456"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media\/11"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}