From 101cec84044fe22b5741e602a7082f1e20694ea8 Mon Sep 17 00:00:00 2001 From: duyme Date: Fri, 31 Oct 2025 18:17:29 +0100 Subject: [PATCH 1/5] openapi ctx example --- openapi/ver/current/skg-if-openapi.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/openapi/ver/current/skg-if-openapi.yaml b/openapi/ver/current/skg-if-openapi.yaml index ab4c732..c5df1d1 100644 --- a/openapi/ver/current/skg-if-openapi.yaml +++ b/openapi/ver/current/skg-if-openapi.yaml @@ -2358,10 +2358,10 @@ components: information if dereferenced. JsonLdCtx: type: object - description: "This JSON-LD context object covers the SKG-IF entities. See [SKG-IF JSON-LD preamble](https://skg-if.github.io/interoperability-framework/#json-ld-preamble)" + description: "This JSON-LD context for SKG-IF entities" properties: "@context": - description: JSON-LD context + description: JSON-LD context for SKG-IF entities type: array minItems: 1 maxItems: 2 @@ -2395,8 +2395,7 @@ components: # required: [ skgifjson] #] additionalProperties: false - required: [ "@context" ] - examples: - - "@context": + examples: - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" - - "@base" : "https://w3id.org/skg-if/sandbox/myprov/" \ No newline at end of file + - "@base" : "https://w3id.org/skg-if/sandbox/myprov/" + required: [ "@context" ] From 9d10437791263d0f3db068b13b4ad9736de82cf0 Mon Sep 17 00:00:00 2001 From: duyme Date: Fri, 31 Oct 2025 18:20:28 +0100 Subject: [PATCH 2/5] ctx example --- openapi/ver/current/skg-if-openapi.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi/ver/current/skg-if-openapi.yaml b/openapi/ver/current/skg-if-openapi.yaml index c5df1d1..04ae580 100644 --- a/openapi/ver/current/skg-if-openapi.yaml +++ b/openapi/ver/current/skg-if-openapi.yaml @@ -2396,6 +2396,6 @@ components: #] additionalProperties: false examples: - - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" - - "@base" : "https://w3id.org/skg-if/sandbox/myprov/" + - ["https://w3id.org/skg-if/context/1.0.1/skg-if.json", + {"@base" : "https://w3id.org/skg-if/sandbox/myprov/"}] required: [ "@context" ] From d2f33d72835833c2eb254ca4c9029591545e739d Mon Sep 17 00:00:00 2001 From: duyme Date: Fri, 31 Oct 2025 18:26:26 +0100 Subject: [PATCH 3/5] ctx example --- openapi/ver/current/skg-if-openapi.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openapi/ver/current/skg-if-openapi.yaml b/openapi/ver/current/skg-if-openapi.yaml index 04ae580..ed5f8bb 100644 --- a/openapi/ver/current/skg-if-openapi.yaml +++ b/openapi/ver/current/skg-if-openapi.yaml @@ -2379,7 +2379,7 @@ components: properties: "@base": type: string - description : "Default base URL specific to the implementer. https://w3id.org/skg-if/sandbox//" + description : "Default base URL specific to the implementer. https://w3id.org/skg-if/sandbox/provider_accronym/" x-faker: fake: ['https://w3id.org/skg-if/sandbox/myprov/'] example: "https://w3id.org/skg-if/sandbox/myprov/" @@ -2396,6 +2396,5 @@ components: #] additionalProperties: false examples: - - ["https://w3id.org/skg-if/context/1.0.1/skg-if.json", - {"@base" : "https://w3id.org/skg-if/sandbox/myprov/"}] + - ["https://w3id.org/skg-if/context/1.0.1/skg-if.json", {"@base" : "https://w3id.org/skg-if/sandbox/my_prov/"}] required: [ "@context" ] From 5bedd7c65d85f6c794fa369fefae35d2115410da Mon Sep 17 00:00:00 2001 From: duyme Date: Fri, 31 Oct 2025 18:31:03 +0100 Subject: [PATCH 4/5] ctx ex --- openapi/ver/current/skg-if-openapi.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openapi/ver/current/skg-if-openapi.yaml b/openapi/ver/current/skg-if-openapi.yaml index ed5f8bb..a0aa871 100644 --- a/openapi/ver/current/skg-if-openapi.yaml +++ b/openapi/ver/current/skg-if-openapi.yaml @@ -2374,15 +2374,17 @@ components: #default: "https://w3id.org/skg-if/context/1.0.1/skg-if.json" x-faker: fake: ['https://w3id.org/skg-if/context/1.0.1/skg-if.json'] - #example: "https://w3id.org/skg-if/context/1.0.1/skg-if.json" + #examples: + # - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" - type: object properties: "@base": type: string description : "Default base URL specific to the implementer. https://w3id.org/skg-if/sandbox/provider_accronym/" x-faker: - fake: ['https://w3id.org/skg-if/sandbox/myprov/'] - example: "https://w3id.org/skg-if/sandbox/myprov/" + fake: ['https://w3id.org/skg-if/sandbox/my_prov/'] + examples: + - "https://w3id.org/skg-if/sandbox/my_prov/" #required: ["@base"] additionalProperties: type: string From f76e357ac893a2822e4193fa1a9b2d10060a31d8 Mon Sep 17 00:00:00 2001 From: duyme Date: Fri, 31 Oct 2025 18:39:31 +0100 Subject: [PATCH 5/5] update version 1.1.0 --- .../current/sample_data/grants/grant_1.json | 2 +- .../organisations/org_brown_university.json | 2 +- .../products/journal_article_full.json | 2 +- .../current/sample_data/products/test.json | 2 +- openapi/ver/current/skg-if-openapi.yaml | 34 +++++++++---------- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/openapi/ver/current/sample_data/grants/grant_1.json b/openapi/ver/current/sample_data/grants/grant_1.json index 2d4bd02..f0ee2bf 100644 --- a/openapi/ver/current/sample_data/grants/grant_1.json +++ b/openapi/ver/current/sample_data/grants/grant_1.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", { "@base": "https://w3id.org/skg-if/sandbox/myprov/" } diff --git a/openapi/ver/current/sample_data/organisations/org_brown_university.json b/openapi/ver/current/sample_data/organisations/org_brown_university.json index c1ace1d..3b6084d 100644 --- a/openapi/ver/current/sample_data/organisations/org_brown_university.json +++ b/openapi/ver/current/sample_data/organisations/org_brown_university.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", { "@base": "https://w3id.org/skg-if/sandbox/myprov/" } diff --git a/openapi/ver/current/sample_data/products/journal_article_full.json b/openapi/ver/current/sample_data/products/journal_article_full.json index 677e4f2..8221abf 100644 --- a/openapi/ver/current/sample_data/products/journal_article_full.json +++ b/openapi/ver/current/sample_data/products/journal_article_full.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", { "@base": "https://w3id.org/skg-if/sandbox/myprov/" } diff --git a/openapi/ver/current/sample_data/products/test.json b/openapi/ver/current/sample_data/products/test.json index ae01f29..3102ae8 100644 --- a/openapi/ver/current/sample_data/products/test.json +++ b/openapi/ver/current/sample_data/products/test.json @@ -1,6 +1,6 @@ { "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", { "@base": "https://example.com/skg-if/api/" } diff --git a/openapi/ver/current/skg-if-openapi.yaml b/openapi/ver/current/skg-if-openapi.yaml index a0aa871..8d1078f 100644 --- a/openapi/ver/current/skg-if-openapi.yaml +++ b/openapi/ver/current/skg-if-openapi.yaml @@ -89,7 +89,7 @@ paths: summary: "Journal article - FAIR Guiding Principles" value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "https://w3id.org/skg-if/sandbox/myprov/"} ] "@graph" : @@ -160,7 +160,7 @@ paths: summary: "Dataset - OpenAIRE Graph dataset new collected projects" value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "https://w3id.org/skg-if/sandbox/myprov/"} ] "@graph" : @@ -350,7 +350,7 @@ paths: summary: Josiah Carberry person value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "http://example.com/"} ] "@graph" : @@ -366,7 +366,7 @@ paths: summary: John Doe person on-the-fly id value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "http://example.com/"} ] "@graph" : @@ -504,7 +504,7 @@ paths: summary: "Brown University" value : "@context": - - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" + - "https://w3id.org/skg-if/context/1.1.0/skg-if.json" - "@base" : "https://w3id.org/skg-if/sandbox/myprov/" "@graph": - local_identifier: 'otf_session12324_org_1124' @@ -521,7 +521,7 @@ paths: summary: "John Carter Brown Library - Brown University" value : "@context": - - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" + - "https://w3id.org/skg-if/context/1.1.0/skg-if.json" - "@base" : "https://w3id.org/skg-if/sandbox/myprov/" "@graph": - local_identifier: 'otf_session12325_org_1125' @@ -540,7 +540,7 @@ paths: summary: "Lab of science" value : "@context": - - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" + - "https://w3id.org/skg-if/context/1.1.0/skg-if.json" - "@base" : "https://w3id.org/skg-if/sandbox/myprov/" "@graph": - local_identifier: 'otf_session12325_org_1126' @@ -550,7 +550,7 @@ paths: summary: "European Commission Funder" value : "@context": - - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" + - "https://w3id.org/skg-if/context/1.1.0/skg-if.json" - "@base" : "https://w3id.org/skg-if/sandbox/myprov/" "@graph": - local_identifier: 'otf_session12324_org_1127' @@ -659,7 +659,7 @@ paths: summary: GraspOS grant value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "http://example.com/"} ] "@graph" : @@ -857,7 +857,7 @@ paths: summary: Journal of Psychoceramics venue value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "http://example.com/"} ] "@graph" : @@ -958,7 +958,7 @@ paths: summary: Computer Science topic value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "http://example.com/"} ] "@graph" : @@ -1070,7 +1070,7 @@ paths: summary: Oxford University Research Archive datasource value : "@context": [ - "https://w3id.org/skg-if/context/1.0.1/skg-if.json", + "https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "http://example.com/"} ] "@graph" : @@ -2370,12 +2370,12 @@ components: - type: string description: "URL to SKG-IF context supported by the current OpenApi" enum: - - https://w3id.org/skg-if/context/1.0.1/skg-if.json - #default: "https://w3id.org/skg-if/context/1.0.1/skg-if.json" + - https://w3id.org/skg-if/context/1.1.0/skg-if.json + #default: "https://w3id.org/skg-if/context/1.1.0/skg-if.json" x-faker: - fake: ['https://w3id.org/skg-if/context/1.0.1/skg-if.json'] + fake: ['https://w3id.org/skg-if/context/1.1.0/skg-if.json'] #examples: - # - "https://w3id.org/skg-if/context/1.0.1/skg-if.json" + # - "https://w3id.org/skg-if/context/1.1.0/skg-if.json" - type: object properties: "@base": @@ -2398,5 +2398,5 @@ components: #] additionalProperties: false examples: - - ["https://w3id.org/skg-if/context/1.0.1/skg-if.json", {"@base" : "https://w3id.org/skg-if/sandbox/my_prov/"}] + - ["https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "https://w3id.org/skg-if/sandbox/my_prov/"}] required: [ "@context" ]