{"id":3233,"date":"2021-10-19T19:27:59","date_gmt":"2021-10-19T17:27:59","guid":{"rendered":"https:\/\/smartdatamodels.org\/?page_id=3233"},"modified":"2022-11-22T16:35:50","modified_gmt":"2022-11-22T15:35:50","slug":"generate-a-local-context-based-on-smart-data-models-iris","status":"publish","type":"page","link":"https:\/\/smartdatamodels.org\/index.php\/generate-a-local-context-based-on-smart-data-models-iris\/","title":{"rendered":"Generate a local context based on Smart Data Models IRIs"},"content":{"rendered":"<p><strong>Call: https:\/\/smartdatamodels.org\/extra\/context_local_generator.php<\/strong><\/p>\n<p><strong>Parameters<\/strong>: (Mandatories)<\/p>\n<ul>\n<li>schemaUrl: The link to the <strong>RAW<\/strong> version of the file listing the subjects (see <a href=\"https:\/\/raw.githubusercontent.com\/smart-data-models\/data-models\/master\/context\/merge_subjects_config.json\">example<\/a>)<\/li>\n<li>email: your email<\/li>\n<\/ul>\n<p>Example: <a href=\"https:\/\/smartdatamodels.org\/extra\/context_local_generator.php?schemaUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/data-models\/master\/context\/merge_subjects_config_example.json&amp;email=alberto.abella@fiware.org\">https:\/\/smartdatamodels.org\/extra\/context_local_generator.php?schemaUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/data-models\/master\/context\/merge_subjects_config_example.json&amp;email=alberto.abella@fiware.org<\/a><\/p>\n<p>It returns a json file with two main elements:<br \/>\n&#8211; <strong>@context<\/strong> with all the attribute&#8217;s names and local IRIs<br \/>\n&#8211; <strong>conflicts<\/strong> with all those attributes which have a conflict in the IRIs (you&#8217;ll have to fix them manually)<br \/>\nBy default is merging all subjects in Smart Data Models program (it takes around 5-10 seconds) so be patient after clicking.<\/p>\n<p>You can also use this form<br \/>\n\n<div class=\"wpcf7 no-js\" id=\"wpcf7-f3231-o1\" lang=\"en-US\" dir=\"ltr\" data-wpcf7-id=\"3231\">\n<div class=\"screen-reader-response\"><p role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"><\/p> <ul><\/ul><\/div>\n<form action=\"\/index.php\/wp-json\/wp\/v2\/pages\/3233#wpcf7-f3231-o1\" method=\"post\" class=\"wpcf7-form init\" aria-label=\"Contact form\" novalidate=\"novalidate\" data-status=\"init\">\n<fieldset class=\"hidden-fields-container\"><input type=\"hidden\" name=\"_wpcf7\" value=\"3231\" \/><input type=\"hidden\" name=\"_wpcf7_version\" value=\"6.1.5\" \/><input type=\"hidden\" name=\"_wpcf7_locale\" value=\"en_US\" \/><input type=\"hidden\" name=\"_wpcf7_unit_tag\" value=\"wpcf7-f3231-o1\" \/><input type=\"hidden\" name=\"_wpcf7_container_post\" value=\"0\" \/><input type=\"hidden\" name=\"_wpcf7_posted_data_hash\" value=\"\" \/><input type=\"hidden\" name=\"_wpcf7cf_hidden_group_fields\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_hidden_groups\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_visible_groups\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_repeaters\" value=\"[]\" \/><input type=\"hidden\" name=\"_wpcf7cf_steps\" value=\"{}\" \/><input type=\"hidden\" name=\"_wpcf7cf_options\" value=\"{&quot;form_id&quot;:3231,&quot;conditions&quot;:[],&quot;settings&quot;:{&quot;animation&quot;:&quot;yes&quot;,&quot;animation_intime&quot;:&quot;200&quot;,&quot;animation_outtime&quot;:&quot;200&quot;,&quot;conditions_ui&quot;:&quot;normal&quot;,&quot;notice_dismissed&quot;:&quot;true&quot;,&quot;notice_dismissed_rollback-cf7-5.9.4&quot;:true,&quot;notice_dismissed_rollback-cf7-5.9.5&quot;:true,&quot;notice_dismissed_rollback-cf7-6.1.4&quot;:true}}\" \/><input type=\"hidden\" name=\"redirect_nonce\" value=\"6d9e23d8f5\" \/><input type=\"hidden\" name=\"wpcf7cfpdf_hidden_name\" value=\"document-pdf\" \/><input type=\"hidden\" name=\"wpcf7cfpdf_hidden_reference\" value=\"2c0ff048\" \/><input type=\"hidden\" name=\"wpcf7cfpdf_hidden_date\" value=\"04042026\" \/><input type=\"hidden\" name=\"_wpcf7_recaptcha_response\" value=\"\" \/>\n<\/fieldset>\n<style>\n.wpcf7 input[type=\"submit\"] {\n color: #ffffff;\n font-size: 18px;\n font-weight: 700;\n background: #E2272E;\n padding: 15px 25px 15px 25px;\n border: none;\n border-radius: 5px;\n width: auto;\n text-transform: uppercase;\n letter-spacing: 5px;\n }\n .wpcf7 input:hover[type=\"submit\"] {\n background: #494949;\n transition: all 0.4s ease 0s;\n }\n .wpcf7 input:active[type=\"submit\"] {\n background: #000000;\n\t border: 1px;\n\t\t border-color: black;\n }\n.wpcf7 input[type=\"text\"],\n.wpcf7 input[type=\"email\"],\n.wpcf7 input[type=\"url\"],\n textarea {\n font-size: 16px;\n background-color: #f5f5f5;\n border: 1px;\n\t border-color: black;\n width: 95%;\n padding: 2%;\n }\n .wpcf7 {\n background: #A3A3A3;\n border: 10px solid #494949;\n width: 700px;\n padding: 20px 20px 20px 50px !important;\n }\n<\/style>\n<div class=\"divTable\" style=\"border: 0px solid #000;\">\n\t<div class=\"divTableBody\">\n\t\t<div class=\"divTableRow\">\n\t\t\t<div class=\"divTableCell\">\n\t\t\t\t<p>This form generates a @context by merging the local @context in each subject you choose. It does NOT solve the attribute names' conflicts.\n\t\t\t\t<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"divTableRow\">\n\t\t\t<div class=\"divTableCell\">\n\t\t\t\t<p><label>Configuration file with the URL of the subjects' @context. See the template <a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/context\/merge_subjects_config.json\">Configuration file<\/a>. <\/label><br \/>\n<span class=\"wpcf7-form-control-wrap\" data-name=\"schemaUrl\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-url wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-url\" aria-required=\"true\" aria-invalid=\"false\" value=\"\" type=\"url\" name=\"schemaUrl\" \/><\/span>\n\t\t\t\t<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"divTableRow\">\n\t\t\t<div class=\"divTableCell\">\n\t\t\t\t<p>Email\n\t\t\t\t<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<div class=\"divTableRow\">\n\t\t\t<div class=\"divTableCell\">\n\t\t\t\t<p><span class=\"wpcf7-form-control-wrap\" data-name=\"email\"><input size=\"40\" maxlength=\"400\" class=\"wpcf7-form-control wpcf7-email wpcf7-validates-as-required wpcf7-text wpcf7-validates-as-email\" aria-required=\"true\" aria-invalid=\"false\" value=\"\" type=\"email\" name=\"email\" \/><\/span>\n\t\t\t\t<\/p>\n\t\t\t<\/div>\n\t\t<\/div>\n\t<\/div>\n<\/div>\n<!-- DivTable.com -->\n<p><span class=\"wpcf7-form-control-wrap wpgdprc\"><span class=\"wpcf7-form-control wpcf7-wpgdprc wpcf7-validates-as-required\"><span class=\"wpcf7-list-item\"><input type=\"checkbox\" name=\"wpgdprc\" value=\"1\" aria-required=\"true\" aria-invalid=\"false\" \/><span class=\"wpcf7-list-item-label\">By using this form you agree with the storage and handling of your data by this website.<\/span><\/span><\/span>    <\/span>\n<\/p>\n<p><input class=\"wpcf7-form-control wpcf7-submit has-spinner\" type=\"submit\" value=\"Submit\" \/><br \/>\nAfter clicking it will appear a message confirming the submission\n<\/p>\n<p>It will take a while to redirect to the feedback on a specific page\n<\/p>\n<p><B>Thanks for being patient<\/b>\n<\/p><p style=\"display: none !important;\" class=\"akismet-fields-container\" data-prefix=\"_wpcf7_ak_\"><label>&#916;<textarea name=\"_wpcf7_ak_hp_textarea\" cols=\"45\" rows=\"8\" maxlength=\"100\"><\/textarea><\/label><input type=\"hidden\" id=\"ak_js_1\" name=\"_wpcf7_ak_js\" value=\"243\"\/><script>document.getElementById( \"ak_js_1\" ).setAttribute( \"value\", ( new Date() ).getTime() );<\/script><\/p><div class=\"wpcf7-response-output\" aria-hidden=\"true\"><\/div>\n<\/form>\n<\/div>\n\nAny use or suggestion on this service please report it to <a href=\"mailto:info@smartdatamodels.org\">info@smartdatamodels.org<\/a><\/p>\n<p><a href=\"https:\/\/github.com\/smart-data-models\/data-models\/blob\/master\/utils\/context_local_generator_V1.0.py\">source code<\/a> of this service if you want to improve it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Call: https:\/\/smartdatamodels.org\/extra\/context_local_generator.php Parameters: (Mandatories) schemaUrl: The link to the RAW version of the file listing the subjects (see example) email: your email Example: https:\/\/smartdatamodels.org\/extra\/context_local_generator.php?schemaUrl=https:\/\/raw.githubusercontent.com\/smart-data-models\/data-models\/master\/context\/merge_subjects_config_example.json&amp;email=alberto.abella@fiware.org It returns a json file with two main elements: &#8211; @context with all the attribute&#8217;s names and local IRIs &#8211; conflicts with all those attributes which&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/smartdatamodels.org\/index.php\/generate-a-local-context-based-on-smart-data-models-iris\/\">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-3233","page","type-page","status-publish","hentry"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1829,"url":"https:\/\/smartdatamodels.org\/index.php\/generate-a-ngsi-ld-payload-based-on-a-smart-data-model\/","url_meta":{"origin":3233,"position":0},"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":[]},{"id":2549,"url":"https:\/\/smartdatamodels.org\/index.php\/generate-a-geojson-feature-format-payload-based-on-a-smart-data-model\/","url_meta":{"origin":3233,"position":1},"title":"Generate a Geojson feature format payload based on a Smart Data Model","author":"maestro","date":"31\/05\/2021","format":false,"excerpt":"This is a beta 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\/geojson_features_generator_v1.0.php Parameters: (Mandatories) schemaUrl: The link to the RAW version of the json schema (see example) email: your email Example: https:\/\/smartdatamodels.org\/extra\/geojson_features_generator_v1.0.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":[]},{"id":3263,"url":"https:\/\/smartdatamodels.org\/index.php\/generate-acontext-based-on-external-ontologies-iris\/","url_meta":{"origin":3233,"position":2},"title":"Generate a@context based on external ontologies IRIs","author":"maestro","date":"20\/10\/2021","format":false,"excerpt":"Call: https:\/\/smartdatamodels.org\/extra\/create_external_referenced_context.php Parameters: (Mandatories) localContext: Link to the RAW version or the direct payload of the local context configOntologies: configuration file for merging the different ontologies (see example) mail: your email Example: https:\/\/smartdatamodels.org\/extra\/create_external_referenced_context.php?contextOntologies=https:\/\/raw.githubusercontent.com\/smart-data-models\/data-models\/master\/context\/config_ontologies.json&localContext=https:\/\/raw.githubusercontent.com\/smart-data-models\/data-models\/master\/context\/context2.0.jsonld&email=alberto.abella@fiware.org It returns a JSON file with a @context with all the attribute's names and their\u00a0 IRIs based\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2199,"url":"https:\/\/smartdatamodels.org\/index.php\/generate-a-ngsi-ld-keyvalues-payload-compliant-with-a-data-model\/","url_meta":{"origin":3233,"position":3},"title":"Generate a NGSI-LD keyvalues payload compliant with a data model","author":"maestro","date":"28\/04\/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_keyvalues_v0.95.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_keyvalues_v0.95.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":[]},{"id":948,"url":"https:\/\/smartdatamodels.org\/index.php\/check-a-schema-validates-a-payload\/","url_meta":{"origin":3233,"position":4},"title":"Check a schema validates a payload","author":"maestro","date":"09\/12\/2020","format":false,"excerpt":"Although the service keeps being operative we recommend using this https:\/\/www.jsonschemavalidator.net\/ because it provides more explanations about the errors. If you want to check if a schema validates a payload\u00a0 through this API call Call: https:\/\/smartdatamodels.org\/extra\/validate_payload.php Parameters: (Mandatories) payloadUrl: The url of the payload in RAW version schemaUrl: The link\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":909,"url":"https:\/\/smartdatamodels.org\/index.php\/create-automatically-the-specification-of-your-data-model\/","url_meta":{"origin":3233,"position":5},"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":[]}],"_links":{"self":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/3233","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=3233"}],"version-history":[{"count":9,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/3233\/revisions"}],"predecessor-version":[{"id":7670,"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/pages\/3233\/revisions\/7670"}],"wp:attachment":[{"href":"https:\/\/smartdatamodels.org\/index.php\/wp-json\/wp\/v2\/media?parent=3233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}