Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openapi/ver/current/sample_data/grants/grant_1.json
Original file line number Diff line number Diff line change
@@ -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/"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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/"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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/"
}
Expand Down
2 changes: 1 addition & 1 deletion openapi/ver/current/sample_data/products/test.json
Original file line number Diff line number Diff line change
@@ -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/"
}
Expand Down
50 changes: 25 additions & 25 deletions openapi/ver/current/skg-if-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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" :
Expand Down Expand Up @@ -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" :
Expand Down Expand Up @@ -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" :
Expand All @@ -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" :
Expand Down Expand Up @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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" :
Expand Down Expand Up @@ -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" :
Expand Down Expand Up @@ -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" :
Expand Down Expand Up @@ -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" :
Expand Down Expand Up @@ -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
Expand All @@ -2370,19 +2370,21 @@ 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']
#example: "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.1.0/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>/"
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
Expand All @@ -2395,8 +2397,6 @@ components:
# required: [ skgifjson]
#]
additionalProperties: false
examples:
- ["https://w3id.org/skg-if/context/1.1.0/skg-if.json", {"@base" : "https://w3id.org/skg-if/sandbox/my_prov/"}]
required: [ "@context" ]
examples:
- "@context":
- "https://w3id.org/skg-if/context/1.0.1/skg-if.json"
- "@base" : "https://w3id.org/skg-if/sandbox/myprov/"
Loading