{"id":6408,"date":"2022-07-21T13:46:24","date_gmt":"2022-07-21T11:46:24","guid":{"rendered":"https:\/\/smartdatamodels.org\/?page_id=6408"},"modified":"2023-10-10T14:16:17","modified_gmt":"2023-10-10T12:16:17","slug":"export-of-database-of-attributes-of-the-smart-data-models","status":"publish","type":"page","link":"https:\/\/smartdatamodels.org\/index.php\/export-of-database-of-attributes-of-the-smart-data-models\/","title":{"rendered":"Export of database of attributes of the Smart Data Models"},"content":{"rendered":"<p>For some developers is interesting to access the database of attributes you can search in the main menu -&gt; <a href=\"https:\/\/smartdatamodels.org\/index.php\/ddbb-of-properties-descriptions\/\">Search<\/a><\/p>\n<p>You have it in this link <a href=\"https:\/\/smartdatamodels.org\/extra\/smartdatamodels.json\">https:\/\/smartdatamodels.org\/extra\/smartdatamodels.json<\/a> the file (It is a large one).<\/p>\n<p>It has a CC-BY license so feel free to use it and we will be happy to disseminate the use that you do with it.<\/p>\n<p>It is updated once a day.<\/p>\n<p>Fields for each attribute<\/p>\n<p><em><strong>_id<\/strong><\/em> : identifier of the item given from mongodb by default<\/p>\n<p><em><strong>id<\/strong><\/em> : designed identifier of the attribute in the format of its context plus the version number, such as &#8220;https:\/\/smartdatamodels.org\/dataModel.EnergyCIM\/WindGenType4IEC\/address\/addressLocality#0.0.1&#8221;<\/p>\n<p><em><strong>parentId<\/strong><\/em> : identifier of the parent attribute of the current one if it has<\/p>\n<p><em><strong>context<\/strong><\/em> : context of the attribute<\/p>\n<p><em><strong>parentContext<\/strong><\/em> : context of the parent attribute of the current one if it has<\/p>\n<p><em><strong>subpropertiesContext<\/strong><\/em> : array of the context of the children attributes of the current one if it has<\/p>\n<p><em><strong>property<\/strong><\/em> : the name of the attribute<\/p>\n<p><em><strong>dataModel<\/strong><\/em> : the data model this attribute is present<\/p>\n<p><em><strong>repoName<\/strong><\/em> : the subject this data model belongs to<\/p>\n<p><em><strong>description<\/strong><\/em> : the description of the attribute<\/p>\n<p><em><strong>typeNGSI<\/strong><\/em> : Whether it is a property, Geoproperty, or relationship<\/p>\n<p><em><strong>modelTags<\/strong><\/em> : inherited from the data model tags<\/p>\n<p><em><strong>license<\/strong><\/em> : link to the license for the data model<\/p>\n<p><em><strong>schemaVersion<\/strong><\/em> : version of the data model<\/p>\n<p><em><strong>type<\/strong><\/em> : data type<\/p>\n<p><em><strong>model<\/strong><\/em> : when available the reference model for the attribute<\/p>\n<p><em><strong>units<\/strong><\/em> : when available the recommended units for the attribute<\/p>\n<p><em><strong>format<\/strong><\/em> : either date, or time, or date-time, or URI, etc the format of the attribute<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For some developers is interesting to access the database of attributes you can search in the main menu -&gt; Search You have it in this link https:\/\/smartdatamodels.org\/extra\/smartdatamodels.json the file (It is a large one). It has a CC-BY license so feel free to use it and we will be happy&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/export-of-database-of-attributes-of-the-smart-data-models\/\">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,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-6408","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":8287,"url":"https:\/\/smartdatamodels.org\/index.php\/pysmatdatamodels-documentation\/","url_meta":{"origin":6408,"position":0},"title":"pysmartdatamodels documentation","author":"maestro","date":"10\/02\/2023","format":false,"excerpt":"1- Load all datamodels in a dict like the official list. Function load_all_datamodels() Returns a dict with all data models with this object structure - repoName: The name of the subject - repoLink: the link to the repository of the subject - dataModels: An array with all the datamodels of\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":6408,"position":1},"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":8295,"url":"https:\/\/smartdatamodels.org\/index.php\/pysmartdatamodels-code-example\/","url_meta":{"origin":6408,"position":2},"title":"pysmartdatamodels code example","author":"maestro","date":"10\/02\/2023","format":false,"excerpt":"from pysmartdatamodels import pysmartdatamodels as sdm subject = \"dataModel.Weather\" dataModel = \"WeatherForecast\" attribute = \"precipitation\" print(sdm.load_all_datamodels()) print(len(sdm.load_all_attributes())) # there is more than 19.000 to get all listed print(sdm.list_all_datamodels()) print(sdm.list_all_subjects()) print(sdm.datamodels_subject(\"dataModel.Weather\")) print(sdm.description_attribute(subject, dataModel, attribute)) print(sdm.datatype_attribute(subject, dataModel, attribute)) print(sdm.model_attribute(subject, dataModel, attribute)) print(sdm.units_attribute(subject, dataModel, attribute)) print(sdm.attributes_datamodel(subject, dataModel)) print(sdm.subject_repolink(subject)) print(sdm.datamodel_repolink(dataModel)) print(sdm.print_datamodel(subject, dataModel, \",\", [\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2860,"url":"https:\/\/smartdatamodels.org\/index.php\/faqs\/","url_meta":{"origin":6408,"position":3},"title":"FAQs","author":"maestro","date":"14\/07\/2021","format":false,"excerpt":"1.- What is Smart Data Models Program. 2.- Who supports the program?. 3.- Can I use these data models for free? 4-. Where do these data models come from? 5.- Do I have to use the FIWARE platform or the NGSI standard to use them. 6.- I want to contribute\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":41,"url":"https:\/\/smartdatamodels.org\/index.php\/attributes-and-enumerations-database\/","url_meta":{"origin":6408,"position":4},"title":"Attributes and Enumerations database","author":"maestro","date":"17\/03\/2020","format":false,"excerpt":"Our recommendation is that whenever you are coding the properties (fields) of any data model you could code it with the same name for equal concepts. then you can write down on the blue cell and in the yellow columns, you will see what other data models have coded something\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":9159,"url":"https:\/\/smartdatamodels.org\/index.php\/orion-ld-broker-with-examples-of-some-smart-data-models\/","url_meta":{"origin":6408,"position":5},"title":"Orion-LD broker with examples of some smart data models","author":"maestro","date":"05\/07\/2023","format":false,"excerpt":"In this address https:\/\/smartdatamodels:1026 there is an Orion-LD Broker installed open for testing purposes. 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). Therefore you can use it just for some testing. Some examples\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\/6408","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=6408"}],"version-history":[{"count":4,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/6408\/revisions"}],"predecessor-version":[{"id":9923,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/6408\/revisions\/9923"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=6408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}