{"id":7119,"date":"2022-09-19T18:08:47","date_gmt":"2022-09-19T16:08:47","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=7119"},"modified":"2022-09-19T18:26:47","modified_gmt":"2022-09-19T16:26:47","slug":"contributors-updated-the-service-for-checking-your-schema","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/contributors-updated-the-service-for-checking-your-schema\/","title":{"rendered":"Contributors: Updated the service for checking your schema"},"content":{"rendered":"<p>In order to create a new data model or to update an existing one, <a href=\"https:\/\/smartdatamodels.org\/index.php\/data-models-contribution-api\/\">Check your schema before contributing it<\/a>, to check the schema on the front page.<\/p>\n<p>The service has been updated to check not only the attributes of the payload but also the schema metadata (schema version, license, derivedFrom, title, description) so it will be easier to complete it before submission.<\/p>\n<p>The <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/check_schema_V3.py\">code<\/a> is available at the directory <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/tree\/master\/utils\">utils<\/a> in the <a href=\"https:\/\/github.com\/smart-data-models\/data-models\">data-model repository<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3686 size-medium\" src=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/01\/favicon-300x300.png\" alt=\"\" width=\"300\" height=\"300\" srcset=\"https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/01\/favicon-300x300.png 300w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/01\/favicon-150x150.png 150w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/01\/favicon-350x350.png 350w, https:\/\/smartdatamodels.org\/wp-content\/uploads\/2022\/01\/favicon.png 400w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to create a new data model or to update an existing one, Check your schema before contributing it, to check the schema on the front page. The service has been updated to check not only the attributes of the payload but also the schema metadata (schema version, license,&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/contributors-updated-the-service-for-checking-your-schema\/\">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-7119","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":3889,"url":"https:\/\/smartdatamodels.org\/index.php\/new-tool-for-simplified-creation-of-a-data-model\/","url_meta":{"origin":7119,"position":0},"title":"New tool for simplified creation of a data model","author":"maestro","date":"09\/03\/2022","format":false,"excerpt":"The creation of a data model requires two mandatory files, one example and a JSON schema containing the definitions and data types of the elements in the entity. However, the JSON schema creation could be somehow demanding. The new tool opens the door for people with only basic knowledge of\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":7119,"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":10091,"url":"https:\/\/smartdatamodels.org\/index.php\/new-service-export-you-data-models-to-sql-schema\/","url_meta":{"origin":7119,"position":2},"title":"New service: Export you data models to SQL schema","author":"maestro","date":"30\/10\/2023","format":false,"excerpt":"We provide a service to Generate a PostgreSQL schema SQL script from the model.yaml representation of a Smart Data Model. You can access this service under this link following Tools > SQL service. You need to provide as input the standard GitHub link to the model.yaml file or the raw\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":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2023\/10\/Screen-Shot-2023-10-30-at-17.14.41-300x201.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3037,"url":"https:\/\/smartdatamodels.org\/index.php\/updated-the-resources-for-generating-automatic-examples\/","url_meta":{"origin":7119,"position":3},"title":"Updated the resources for generating automatic examples","author":"maestro","date":"31\/08\/2021","format":false,"excerpt":"Once you have the json schema of a smart Data model there are two services that allow you to generate random payloads compliant with the JSON schema in NGSI-LD. both services are for generating A keyvalues payload A normalized payload these services have been updated and some errors were fixed.\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":6739,"url":"https:\/\/smartdatamodels.org\/index.php\/connecting-open-data-soft-open-data-with-smart-data-models-for-drafting-new-data-models\/","url_meta":{"origin":7119,"position":4},"title":"Connecting Open Data Soft open data with Smart Data Models for drafting new data models","author":"maestro","date":"22\/08\/2022","format":false,"excerpt":"Many of the datasets published in open data portals are extensively used elsewhere. Well-maintained portals have managers that document the data structure and provide definitions of the types and contents of every field in these datasets. These are some of the requirements for the successful publication of a new Smart\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\/08\/Selection_041.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2022\/08\/Selection_041.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2022\/08\/Selection_041.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2022\/08\/Selection_041.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":930,"url":"https:\/\/smartdatamodels.org\/index.php\/check-a-schema-validates-a-payload\/","url_meta":{"origin":7119,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/7119","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=7119"}],"version-history":[{"count":3,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/7119\/revisions"}],"predecessor-version":[{"id":7123,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/7119\/revisions\/7123"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=7119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=7119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=7119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}