{"id":505,"date":"2020-07-15T15:52:52","date_gmt":"2020-07-15T15:52:52","guid":{"rendered":"http:\/\/data-models.fiware.org\/?p=505"},"modified":"2020-07-15T17:30:33","modified_gmt":"2020-07-15T17:30:33","slug":"new-commons-section-for-data-models","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/new-commons-section-for-data-models\/","title":{"rendered":"New commons section for data models"},"content":{"rendered":"<p>There is a new common section, named &#8220;<em>DateTime-Commons<\/em>&#8220;,\u00a0 in the file <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/common-schema.json\">common-schema.json<\/a> (the one which is partially included into most of the data models) because it compiles some shared elements (like <em>Location-Commons<\/em> or <em>GSMA-Commons<\/em>).<br \/>\nThis section includes the first element, which is the mapping into a property (type object) of the schema.org class <a href=\"https:\/\/schema.org\/openingHoursSpecification\">OpeningHoursSpecification<\/a>. (see below)<\/p>\n<p>So whenever there is an opening hours specification this would be the chosen format. (It is true that there is a similar property named <a href=\"https:\/\/schema.org\/openingHours\">OpeningHours<\/a>, also mapped in schema.org) that it is only a text (oriented to be printed more than queried).<\/p>\n<p>It only affects the <a href=\"https:\/\/github.com\/smart-data-models\/dataModel.PointOfInterest\/tree\/master\/Museum\">museum data model<\/a> that it will be updated after gathering the feedback of the contributors.<\/p>\n<p>The new section included.<\/p>\n<p>&#8220;DateTime-Commons&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;object&#8221;,<br \/>\n&#8220;description&#8221; : &#8220;All date-time elements in data models unless explicitly stated are ISO 8601 compliant&#8221;,<br \/>\n&#8220;properties&#8221;: {<br \/>\n&#8220;openingHoursSpecification&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;array&#8221;,<br \/>\n&#8220;description&#8221;: &#8220;A structured value providing information about the opening hours of a place or a certain service inside a place.&#8221;,<br \/>\n&#8220;items&#8221;: {<br \/>\n&#8220;properties&#8221;: {<br \/>\n&#8220;opens&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;,<br \/>\n&#8220;format&#8221;: &#8220;date-time&#8221;<br \/>\n},<br \/>\n&#8220;closes&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;,<br \/>\n&#8220;format&#8221;: &#8220;date-time&#8221;<br \/>\n},<br \/>\n&#8220;dayOfWeek&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;,<br \/>\n&#8220;enum&#8221;: [<br \/>\n&#8220;Monday&#8221;,<br \/>\n&#8220;Tuesday&#8221;,<br \/>\n&#8220;Wednesday&#8221;,<br \/>\n&#8220;Thursday&#8221;,<br \/>\n&#8220;Friday&#8221;,<br \/>\n&#8220;Saturday&#8221;,<br \/>\n&#8220;Sunday&#8221;,<br \/>\n&#8220;PublicHolidays&#8221;<br \/>\n]\n},<br \/>\n&#8220;validFrom&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;,<br \/>\n&#8220;format&#8221;: &#8220;date-time&#8221;<br \/>\n},<br \/>\n&#8220;validThrough&#8221;: {<br \/>\n&#8220;type&#8221;: &#8220;string&#8221;,<br \/>\n&#8220;format&#8221;: &#8220;date-time&#8221;<br \/>\n}<br \/>\n}<br \/>\n},<br \/>\n&#8220;minItems&#8221;: 1<br \/>\n}<br \/>\n}<\/p>\n<p>See it in the original file <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/common-schema.json\">common-schema.json<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There is a new common section, named &#8220;DateTime-Commons&#8220;,\u00a0 in the file common-schema.json (the one which is partially included into most of the data models) because it compiles some shared elements (like Location-Commons or GSMA-Commons). This section includes the first element, which is the mapping into a property (type object) of&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/new-commons-section-for-data-models\/\">More&#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"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":[84,107,125],"tags":[],"class_list":["post-505","post","type-post","status-publish","format-standard","hentry","category-governance","category-smart-cities","category-smartdestinations"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":525,"url":"https:\/\/smartdatamodels.org\/index.php\/museum-data-model-updated\/","url_meta":{"origin":505,"position":0},"title":"Museum data model updated","author":"maestro","date":"30\/07\/2020","format":false,"excerpt":"In order to align the data model for museum inside the subject of PointOf Interest with the Schema.org regarding the opening hours specification, it has been modified to make it compliant with it. in fact, this translation of schema.org it has become part of the common shared elements 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":[]},{"id":639,"url":"https:\/\/smartdatamodels.org\/index.php\/updated-datetime-commons\/","url_meta":{"origin":505,"position":1},"title":"Updated DateTime-Commons","author":"maestro","date":"15\/09\/2020","format":false,"excerpt":"Thanks to the contributors of Store data model inside the point of interest repository it has been detected an error in the shared element which maps schema.org concept of opening hours specification which was located at commons in the root of data models repository.","rel":"","context":"In &quot;Governance&quot;","block_context":{"text":"Governance","link":"https:\/\/smartdatamodels.org\/index.php\/category\/governance\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1451,"url":"https:\/\/smartdatamodels.org\/index.php\/updated-waternetwork-datamodels\/","url_meta":{"origin":505,"position":2},"title":"Updated waternetwork datamodels","author":"maestro","date":"26\/01\/2021","format":false,"excerpt":"The 8 data models in the repository dataModel.WaterNetworkManangement in the Smart Water domain have been updated to be aligned with the shared properties of GSMA commons in the shared properties common-schema.json.. This change does not affect the existing data models but with the extensions of these elements. \u00a0","rel":"","context":"In &quot;Smart Water Domain&quot;","block_context":{"text":"Smart Water Domain","link":"https:\/\/smartdatamodels.org\/index.php\/category\/smart-water\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7432,"url":"https:\/\/smartdatamodels.org\/index.php\/updating-all-specifications-to-make-it-easier-to-be-updated\/","url_meta":{"origin":505,"position":3},"title":"Updating all specifications to make it easier to be updated","author":"maestro","date":"24\/10\/2022","format":false,"excerpt":"Initially, you will see few changes in the specifications of all data models,(it is in progress because it will last around 2 days to get it completed) - The inclusion of the model for those attributes having it. - Including the data type (when there is only one) for 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":1578,"url":"https:\/\/smartdatamodels.org\/index.php\/new-data-model-touristtrip\/","url_meta":{"origin":505,"position":4},"title":"New Data model TouristTrip","author":"maestro","date":"10\/02\/2021","format":false,"excerpt":"The new Subject of dataModel.TourismDestinations, inside the SmartDestination domain has released 1 new data model: TouristTrip : A tourist trip. A created itinerary of visits to one or more places of interest (TouristAttraction\/TouristDestination) often linked by a similar theme, geographic area, or interest to a particular touristType. The UNWTO defines\u2026","rel":"","context":"In &quot;SmartDestinations&quot;","block_context":{"text":"SmartDestinations","link":"https:\/\/smartdatamodels.org\/index.php\/category\/smartdestinations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1472,"url":"https:\/\/smartdatamodels.org\/index.php\/new-subject-touristdestination-at-smart-destinations-domain-and-data-models-event-and-tourist-destination\/","url_meta":{"origin":505,"position":5},"title":"New Subject TouristDestination at Smart Destinations domain and data models Event and Tourist Destination","author":"maestro","date":"29\/01\/2021","format":false,"excerpt":"New Subject, dataModel.TourismDestinations for allocating data models related to touristic destinations. It is located in the Smart Destinations domain repository. Event is based on the examples provided for the semantic standard UNE 178503 and schema.org. TouristDestination is also based on this standard and UNE178503. Schema and examples already available, specification\u2026","rel":"","context":"In &quot;SmartDestinations&quot;","block_context":{"text":"SmartDestinations","link":"https:\/\/smartdatamodels.org\/index.php\/category\/smartdestinations\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/505","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=505"}],"version-history":[{"count":3,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/505\/revisions"}],"predecessor-version":[{"id":508,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/505\/revisions\/508"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}