{"id":8195,"date":"2023-01-30T20:27:15","date_gmt":"2023-01-30T19:27:15","guid":{"rendered":"https:\/\/smartdatamodels.org\/?p=8195"},"modified":"2023-01-31T01:49:16","modified_gmt":"2023-01-31T00:49:16","slug":"new-service-for-customization-of-context-with-official-ontologies","status":"publish","type":"post","link":"https:\/\/smartdatamodels.org\/index.php\/new-service-for-customization-of-context-with-official-ontologies\/","title":{"rendered":"New service for customization of @context with official ontologies"},"content":{"rendered":"<p>Some of the data models available are generated according to some ontologies (like <a href=\"https:\/\/github.com\/smart-data-models\/dataModel.OSLO\">dataModels.OSLO)<\/a>. The @context provided for the subject includes IRIs with the <em>smartdatamodels<\/em> by default, however, the use of official ontologies can be required.<\/p>\n<p>In order to allow this the file <em>notes_context.jsonld<\/em> was created and also included in the <a href=\"https:\/\/bit.ly\/contribution_manual\">contribution manual<\/a> (seection 1.5 slide 23).<\/p>\n<p>Now the service for mapping the external ontologies (Home -&gt; tools -&gt; <a href=\"https:\/\/smartdatamodels.org\/index.php\/generate-acontext-based-on-external-ontologies-iris\/\">Mapper @context with external ontologies<\/a>) can detect that instead of <a href=\"https:\/\/raw.githubusercontent.com\/smart-data-models\/data-models\/master\/context\/config_ontologies.json\">a regular configuration file<\/a> a <em>notes_context.jsonld<\/em> is provided and applies the replacement of terms defined there.<\/p>\n<p>It can be also used as an API call, in this link you have an example <a href=\"https:\/\/smartdatamodels.org\/extra\/create_external_referenced_context.php?localContext=https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.OSLO\/master\/context.jsonld&amp;configOntologies=https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.OSLO\/master\/notes_context.jsonld\">https:\/\/smartdatamodels.org\/extra\/create_external_referenced_context.php?localContext=https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.OSLO\/master\/context.jsonld&amp;configOntologies=https:\/\/raw.githubusercontent.com\/smart-data-models\/dataModel.OSLO\/master\/notes_context.jsonld <\/a><\/p>\n<p>The structure of the notes_context.jsonld has to follow the <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/templates\/Subject\/notes_context.jsonld\">template <\/a><\/p>\n<ul>\n<li aria-level=\"1\">{<\/li>\n<\/ul>\n<p>\u201c@context\u201d: {<\/p>\n<p>\u201cTerm1\u201d: \u201curi_term_1\u201d,<\/p>\n<p>\u201cTerm2\u201d: \u201curi_term_2\u201d,<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/Za9fChSn9yg\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/new-service-for-customization-of-context-with-official-ontologies\/\">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-8195","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":3281,"url":"https:\/\/smartdatamodels.org\/index.php\/added-all-the-ontologies-coming-from-saref-to-the-external-context-options\/","url_meta":{"origin":8195,"position":0},"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":3224,"url":"https:\/\/smartdatamodels.org\/index.php\/survey-what-ontologies-are-you-using-if-any\/","url_meta":{"origin":8195,"position":1},"title":"Survey. What ontologies are you using, if any?","author":"maestro","date":"18\/10\/2021","format":false,"excerpt":"","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":6680,"url":"https:\/\/smartdatamodels.org\/index.php\/new-customization-option-for-context\/","url_meta":{"origin":8195,"position":2},"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":5975,"url":"https:\/\/smartdatamodels.org\/index.php\/mapping-with-core-public-service-vocabulary-uri-available\/","url_meta":{"origin":8195,"position":3},"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":3255,"url":"https:\/\/smartdatamodels.org\/index.php\/local-context-service\/","url_meta":{"origin":8195,"position":4},"title":"Local context service","author":"maestro","date":"22\/10\/2021","format":false,"excerpt":"If you want to use data models coming from several subjects you will have to merge (somehow) their @contexts. In this first step, we offer you a service that allows you to choose what subjects you need to merge and to generate the @context. See the instructions on the page.\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":3192,"url":"https:\/\/smartdatamodels.org\/index.php\/local-context-available-in-all-subjects\/","url_meta":{"origin":8195,"position":5},"title":"Local context available in all subjects","author":"maestro","date":"08\/10\/2021","format":false,"excerpt":"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\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\/8195","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=8195"}],"version-history":[{"count":4,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/8195\/revisions"}],"predecessor-version":[{"id":8205,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/posts\/8195\/revisions\/8205"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=8195"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/categories?post=8195"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/tags?post=8195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}