{"id":3192,"date":"2021-10-08T08:58:36","date_gmt":"2021-10-08T06:58:36","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=3192"},"modified":"2021-10-08T01:17:48","modified_gmt":"2021-10-07T23:17:48","slug":"local-context-available-in-all-subjects","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/local-context-available-in-all-subjects\/","title":{"rendered":"Local context available in all subjects"},"content":{"rendered":"<p>We the middle of a reorganization of the @context resources.<\/p>\n<p>Our first priority is to not touch the @context that is currently available. We grant you we keep it.<\/p>\n<p>Why is this new option being created?, because otherwise is not possible to solve the conflicts in the IRI when we have attributes with the same &#8216;name&#8217; but with different meanings. Consequently, their long IRIs (for use in NGSI-LD) need to be different.<\/p>\n<h3>WHAT IS AVAILABLE TODAY<\/h3>\n<p>The first step is the creation of a local context.jsonld in the root of every subject. It has been made available today.<\/p>\n<p>You can see an example of this <a href=\"https:\/\/github.com\/smart-data-models\/dataModel.Weather\/blob\/master\/context.jsonld\">local @context<\/a> for the subject weather.<\/p>\n<p>The long IRI has the format\u00a0 (predictable):<\/p>\n<p>&#8220;https:\/\/smartdatamodels.org\/&#8221; +\u00a0 subject name + &#8220;\/&#8221; + attribute name<\/p>\n<p>Ej. <span class=\"pl-s\">&#8220;precipitation&#8221;<\/span>: <span class=\"pl-s\">&#8220;https:\/\/smartdatamodels.org\/dataModel.Weather\/precipitation&#8221;<\/span><span class=\"pl-kos\">,<\/span><\/p>\n<p>Soon there will be pages on that IRI (they are in fact URL) with some info about the attribute you could use for any purpose.<\/p>\n<h3>WHAT WILL BE AVAILABLE<\/h3>\n<p>1) In the coming future, you will be able to use the local IRI from the Smart Data Models program or commonly used ontologies and vocabularies.<\/p>\n<p>2) A core of attributes will be kept common for many data models e.g. name, description, alternateName, location, address, etc. They will have IRI in the format<\/p>\n<p>&#8220;https:\/\/smartdatamodels.org\/&#8221; + attribute name<\/p>\n<p>currently we already have these IRI but there will be also a translator for the properties in the format<\/p>\n<p>&#8220;https:\/\/smartdatamodels.org\/dataModel.Weather\/category&#8221;: &#8220;https:\/\/smartdatamodels.org\/category&#8221;,<\/p>\n<p>3) Additionally,\u00a0 the Smart Data Models to remain interoperable with external ontologies and vocabularies. so there will be also the option to create a @context with external references in the format<\/p>\n<p>&#8220;https:\/\/smartdatamodels.org\/name&#8221;: &#8220;schema:name&#8221;<\/p>\n<p>Your comments <a href=\"mailto:info@smartdatamodels.org\">are welcomed<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We the middle of a reorganization of the @context resources. Our first priority is to not touch the @context that is currently available. We grant you we keep it. Why is this new option being created?, because otherwise is not possible to solve the conflicts in the IRI when we&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/local-context-available-in-all-subjects\/\">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":false,"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],"tags":[],"class_list":["post-3192","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"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":6680,"url":"https:\/\/smartdatamodels.org\/index.php\/new-customization-option-for-context\/","url_meta":{"origin":3192,"position":0},"title":"New customization option for context","author":"maestro","date":"18\/08\/2022","format":false,"excerpt":"The Smart Data Models Program does not define canonically and uniquely the terms used in the data models. There are many ontologies and vocabularies providing solutions to this issue. For those users of linked data solutions, every subject includes a context.jsonld file (see example) with long IRI for the terms\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":3454,"url":"https:\/\/smartdatamodels.org\/index.php\/local-context-now-have-existing-url\/","url_meta":{"origin":3192,"position":1},"title":"Local @context now have existing URL","author":"maestro","date":"09\/12\/2021","format":false,"excerpt":"In the root of every subject in the Smart Data Models program there is a file named context.jsonld (example from environment subject) It compiles long IRI for every term in the subject (But for those which are general terms). their URLs match this pattern \"https:\/\/smartdatamodels.org\/ 'subject'\u00a0 \/ term\" e.g.\u00a0 \"aqiMajorPollutant\":\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":5975,"url":"https:\/\/smartdatamodels.org\/index.php\/mapping-with-core-public-service-vocabulary-uri-available\/","url_meta":{"origin":3192,"position":2},"title":"Mapping with core public service vocabulary URI available","author":"maestro","date":"10\/06\/2022","format":false,"excerpt":"Every data model in the Smart Data Models program can be mapped with external ontologies and there is a service on the main menu to achieve that. See main menu -> @context -> generate an external @context After the publication of data models of CPSV-AP now it is possible to\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":"CPSV-AP","src":"https:\/\/i0.wp.com\/ec.europa.eu\/isa2\/sites\/default\/files\/cpsv-ap.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3281,"url":"https:\/\/smartdatamodels.org\/index.php\/added-all-the-ontologies-coming-from-saref-to-the-external-context-options\/","url_meta":{"origin":3192,"position":3},"title":"Added all the ontologies coming from SAREF to the external context options","author":"maestro","date":"25\/10\/2021","format":false,"excerpt":"The new service for the generation of externally referenced @context has now available the mapping of the 13 SAREF ontologies. Check them out in the ontologies_files directory in the data-models repo.","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":8195,"url":"https:\/\/smartdatamodels.org\/index.php\/new-service-for-customization-of-context-with-official-ontologies\/","url_meta":{"origin":3192,"position":4},"title":"New service for customization of @context with official ontologies","author":"maestro","date":"30\/01\/2023","format":false,"excerpt":"Some of the data models available are generated according to some ontologies (like dataModels.OSLO). The @context provided for the subject includes IRIs with the smartdatamodels by default, however, the use of official ontologies can be required. In order to allow this the file notes_context.jsonld was created and also included in\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":10263,"url":"https:\/\/smartdatamodels.org\/index.php\/metadata-of-the-catalogue-available\/","url_meta":{"origin":3192,"position":5},"title":"Metadata of the catalogue available","author":"maestro","date":"01\/02\/2024","format":false,"excerpt":"Now in the tools menu (currently the last option) you have a complete list of the most relevant links to the assets of the data models compile in the Smart Data Models initiative. You can check in the main menu -> Tools\u00a0 -> Metadata of the data models The information\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\/3192","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=3192"}],"version-history":[{"count":1,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/3192\/revisions"}],"predecessor-version":[{"id":3193,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/3192\/revisions\/3193"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=3192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=3192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=3192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}