{"id":925,"date":"2020-12-04T20:15:32","date_gmt":"2020-12-04T20:15:32","guid":{"rendered":"https:\/\/smartdatamodels.org\/?page_id=925"},"modified":"2020-12-04T20:15:32","modified_gmt":"2020-12-04T20:15:32","slug":"create-a-draft-spec-of-your-data-model","status":"publish","type":"page","link":"https:\/\/smartdatamodels.org\/index.php\/create-a-draft-spec-of-your-data-model\/","title":{"rendered":"Create a draft spec of your data model"},"content":{"rendered":"<p>In order to create an example of the data model that you are going to contribute this call helps you to create a spec. this is the API call If you want to check how this would look like you can have through this API call<\/p>\n<p><strong>Call: https:\/\/smartdatamodels.org\/extra\/create_spec.php<\/strong><\/p>\n<p><strong>Parameters<\/strong>: (Mandatories)<\/p>\n<ul>\n<li>dataModel: The name of the entity for the specification<\/li>\n<li>schemaUrl: The link to the <strong>RAW<\/strong> version of the json schema (see example)<\/li>\n<li>examplesUrl: the url of where the 4 examples required for a data model are available (named<\/li>\n<li>notesUrl: The url to the yaml for the customization paragraphs (<em>notesHeader<\/em>, after the title, <em>notesMiddle<\/em>, after properties&#8217; list and <em>notesFooter<\/em> by the end)<\/li>\n<li>mail:\u00a0 a valid mail of yours<\/li>\n<\/ul>\n<p>Example: <a href=\"https:\/\/smartdatamodels.org\/extra\/create_spec.php?dataModel=Airport&amp;schemaUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/incubated\/master\/Aeronautics\/Airport\/schema.json&amp;examplesUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/incubated\/master\/Aeronautics\/Airport\/examples\/&amp;notesUrl=%22%22&amp;mail=alberto.abella@fiware.org\">https:\/\/smartdatamodels.org\/extra\/create_spec.php?dataModel=Airport&amp;schemaUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/incubated\/master\/Aeronautics\/Airport\/schema.json&amp;examplesUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/incubated\/master\/Aeronautics\/Airport\/examples\/&amp;notesUrl=%22%22&amp;mail=alberto.abella@fiware.org<\/a><\/p>\n<p><strong>Output<\/strong>: A markdown text that although the HTML visualization is faulty, the source code of the page can be pasted in any markdown viewer (optimized for github) and you see will see something like <a href=\"https:\/\/github.com\/smart-data-models\/dataModel.Energy\/blob\/master\/ThreePhaseAcMeasurement\/doc\/new_spec_EN-US.md\">this<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to create an example of the data model that you are going to contribute this call helps you to create a spec. this is the API call If you want to check how this would look like you can have through this API call Call: https:\/\/smartdatamodels.org\/extra\/create_spec.php Parameters: (Mandatories)&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/create-a-draft-spec-of-your-data-model\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_monsterinsights_skip_tracking":false,"footnotes":""},"class_list":["post-925","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":909,"url":"https:\/\/smartdatamodels.org\/index.php\/create-automatically-the-specification-of-your-data-model\/","url_meta":{"origin":925,"position":0},"title":"Create automatically the specification of your data model","author":"maestro","date":"02\/12\/2020","format":false,"excerpt":"The new version of the smart data models specification is on progress (most of the \/doc directories of the data models have a version). If you want to check how this would look like you can have through this API call Call: https:\/\/smartdatamodels.org\/extra\/create_spec.php Parameters: (Mandatories) dataModel: The name of the\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":898,"url":"https:\/\/smartdatamodels.org\/index.php\/data-models-contribution-api\/","url_meta":{"origin":925,"position":1},"title":"Data Models Contribution API","author":"maestro","date":"30\/11\/2020","format":false,"excerpt":"FULL TEST: Check the whole data model repository Instructions after the form Parameters: (Mandatories) datamodelRepoUrl: The link to the data model repository repository on github (see example) mail: your mail testnumber: different tests you can choose from based on your need. Some tests depend on the others File structure check:\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1476,"url":"https:\/\/smartdatamodels.org\/index.php\/instructions-to-be-listed-as-a-data-model-adopter-of-smart-data-models\/","url_meta":{"origin":925,"position":2},"title":"Instructions to be listed as a data model adopter of Smart Data Models","author":"maestro","date":"01\/02\/2021","format":false,"excerpt":"find here the Instructions to be listed as a data model adopter. Try to do a Pull Request on the repository\/ies of the data model you are a user\/adopter of (recommended). See this example https:\/\/github.com\/smart-data-models\/dataModel.Battery\/blob\/master\/BatteryStatus\/ADOPTERS.yaml . If this option does not suit you, here there is an alternative Create a\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":12420,"url":"https:\/\/smartdatamodels.org\/index.php\/test-your-data-model\/","url_meta":{"origin":925,"position":3},"title":"Test your data model","author":"maestro","date":"24\/01\/2025","format":false,"excerpt":"FULL TEST: Check the whole data model repository Instructions after the form Parameters: (Mandatories) datamodelRepoUrl: The link to the data model repository repository on github (see example) If you want all reported tests passed or just the errors mail: your mail (you'll receive a mail with Output: It will return\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1329,"url":"https:\/\/smartdatamodels.org\/index.php\/draft-a-data-model\/","url_meta":{"origin":925,"position":4},"title":"Draft a data model","author":"maestro","date":"24\/01\/2021","format":false,"excerpt":"Steps to create your new data model in json schema Supposedly you know how many fields you want your data model to have and what data types they would be. 1.- Copy this text 2.- Open in a new window this web. 3.- Paste the text in the left form\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/06\/validation.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/06\/validation.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/smartdatamodels.org\/wp-content\/uploads\/2021\/06\/validation.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1829,"url":"https:\/\/smartdatamodels.org\/index.php\/generate-a-ngsi-ld-payload-based-on-a-smart-data-model\/","url_meta":{"origin":925,"position":5},"title":"Generate a NGSI-LD normalized payload based on a Smart Data Model","author":"maestro","date":"02\/03\/2021","format":false,"excerpt":"This is an alpha version (so you can expect errors and not being complete). Use it at your own risk. Please report them at info@smartdatamodels.org Call: https:\/\/smartdatamodels.org\/extra\/ngsi-ld_generator.php Parameters: (Mandatories) schemaUrl: The link to the RAW version of the json schema (see example) email: your email Example: https:\/\/smartdatamodels.org\/extra\/ngsi-ld_generator.php?schemaUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.Streetlighting\/f56f5a7933ab05d7fce1d5adc0847f25a099cdb4\/StreetlightModel\/schema.json&email=alberto.abella@fiware.org Use any data\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/types\/page"}],"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=925"}],"version-history":[{"count":1,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/925\/revisions"}],"predecessor-version":[{"id":926,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/925\/revisions\/926"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}