Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix: Schema, Example, and Context Fixes #264

Merged
Merged
Show file tree
Hide file tree
Changes from 185 commits
Commits
Show all changes
186 commits
Select commit Hold shift + click to select a range
a4b2bba
Create validate-json-schemas.yml
simantvermasap Dec 12, 2023
26877b8
Merge branch 'International-Data-Spaces-Association:main' into main
simantvermasap Jan 24, 2024
42d8884
Merge branch 'International-Data-Spaces-Association:main' into main
simantvermasap Jan 26, 2024
ee9d23e
Update validate-json-schemas.yml
simantvermasap Feb 5, 2024
fc2edff
Update validate-json-schemas.yml
simantvermasap Mar 6, 2024
01cf036
Update validate-json-schemas.yml
simantvermasap Mar 6, 2024
ec4e0a4
Update validate-json-schemas.yml to match correct file path
simantvermasap Mar 13, 2024
4d829fc
test schema validator
SimantVerma-Bcone Mar 13, 2024
8f28bd1
schema validator test- providerId
SimantVerma-Bcone Mar 13, 2024
4fdc8fe
change in contract agreement
SimantVerma-Bcone Mar 13, 2024
571127c
schema validate test
SimantVerma-Bcone Mar 13, 2024
f0de629
reversing change
SimantVerma-Bcone Mar 13, 2024
9d4a175
Update validate-json-schemas.yml
simantvermasap Mar 13, 2024
f120528
Merge branch 'main' of https://github.com/simantvermasap/ids-specific…
SimantVerma-Bcone Mar 13, 2024
25e9b42
Update validate-json-schemas.yml
simantvermasap Mar 13, 2024
497444b
Update validate-json-schemas.yml
simantvermasap Mar 13, 2024
cc4df03
Update validate-json-schemas.yml
simantvermasap Mar 13, 2024
c50fc05
Update validate-json-schemas.yml
simantvermasap Mar 13, 2024
627b53f
Update validate-json-schemas.yml
simantvermasap Mar 13, 2024
7ee823a
Update validate-json-schemas.yml
simantvermasap Mar 14, 2024
2ecdb53
Update validate-json-schemas.yml
simantvermasap Mar 14, 2024
f0a4532
test workflow validation file
sebbader-sap Mar 20, 2024
3d154f5
deactivate static.yml
sebbader-sap Mar 20, 2024
b6d60b5
test matrix strategy
sebbader-sap Mar 20, 2024
b84312b
test the walbo validator
sebbader-sap Mar 20, 2024
81b1d62
Update validate-json-schemas.yml
sebbader-sap Mar 20, 2024
30ec1f3
Update validate-json-schemas.yml
sebbader-sap Mar 20, 2024
c85727a
use http for $schema
sebbader-sap Mar 20, 2024
fbb6b8f
undo http only for $schema
sebbader-sap Mar 20, 2024
2f8fcbc
test dsanders11/json-schema-validate-action
sebbader-sap Mar 20, 2024
f7f7d0c
Update validate-json-schemas.yml
sebbader-sap Mar 20, 2024
7872c1d
add all schema and example files for catalog
sebbader-sap Mar 20, 2024
8cc7453
Update validate-json-schemas.yml
sebbader-sap Mar 20, 2024
4817edc
Update validate-json-schemas.yml
sebbader-sap Mar 20, 2024
8dbb78d
Update validate-json-schemas.yml
sebbader-sap Mar 20, 2024
ec62152
Update validate-json-schemas.yml
sebbader-sap Mar 20, 2024
393ad07
screw up catalog-error.json
sebbader-sap Mar 20, 2024
ef95d1d
correct the catalog error example
sebbader-sap Mar 20, 2024
7802543
Update static.yml
sebbader-sap Mar 20, 2024
fc2bed3
Update validate-json-schemas.yml
simantvermasap Mar 21, 2024
8fa2973
Update validate-json-schemas.yml
simantvermasap Mar 21, 2024
c7a569b
Update validate-json-schemas.yml
simantvermasap Mar 21, 2024
c43554d
Update validate-json-schemas.yml
simantvermasap Mar 21, 2024
ca297d2
Update validate-json-schemas.yml
simantvermasap Mar 21, 2024
8d58ebd
Update validate-json-schemas.yml
simantvermasap Mar 21, 2024
b961601
Update validate-json-schemas.yml - removing comments
simantvermasap Mar 21, 2024
ab70cfc
Create validate-shapes.yml
simantvermasap Mar 22, 2024
83957f7
Update validate-shapes.yml
simantvermasap Mar 22, 2024
09d0c5a
Update validate-shapes.yml
simantvermasap Mar 22, 2024
040b869
Update validate-shapes.yml
simantvermasap Mar 22, 2024
f12b164
Update validate-shapes.yml
simantvermasap Mar 22, 2024
42ace49
Update validate-shapes.yml
simantvermasap Mar 22, 2024
c0b6c35
Update validate-shapes.yml
sebbader-sap Mar 22, 2024
0cd74cb
Update validate-shapes.yml
sebbader-sap Mar 22, 2024
8c5348d
Merging main branch to forked
simantvermasap Mar 26, 2024
0726e79
Merge pull request #12 from International-Data-Spaces-Association/main
simantvermasap Mar 26, 2024
f5e1a4f
Update validate-json-schemas.yml
simantvermasap Mar 27, 2024
f57d9ae
Update validate-json-schemas.yml
simantvermasap Mar 27, 2024
119b18e
Update validate-json-schemas.yml
simantvermasap Mar 27, 2024
6701075
Update validate-shapes.yml
simantvermasap Mar 27, 2024
b577f56
Update validate-shapes.yml
simantvermasap Mar 27, 2024
8491930
Update validate-json-schemas.yml
simantvermasap Mar 28, 2024
5ddd72a
Update validate-json-schemas.yml
simantvermasap Apr 3, 2024
0fa50a2
Update validate-shapes.yml
simantvermasap Apr 3, 2024
daa8768
Fix missing comma in context.json
sebbader-sap Apr 3, 2024
a919185
Dummy context replacement for catalog-error.json
sebbader-sap Apr 3, 2024
0ea590a
Negative test run for catalog-error.json
sebbader-sap Apr 3, 2024
f9e438e
Undo negative test run for catalog-error.json
sebbader-sap Apr 3, 2024
d80fbe6
catalog-error.json validation with action
simantvermasap Apr 16, 2024
127fdca
test not required in catalog for hasPolicy
sebbader-sap Apr 17, 2024
2b6fead
relax the dataset import for catalog-schema.json
sebbader-sap Apr 17, 2024
88e789d
Update catalog-schema.json
sebbader-sap Apr 17, 2024
1174441
Update catalog.json
sebbader-sap Apr 17, 2024
a976704
fix constraint in catalog.json
sebbader-sap Apr 17, 2024
95c5c8e
odrl:duty issue
simantvermasap Apr 26, 2024
087a474
Merge branch 'main' of https://github.com/simantvermasap/ids-specific…
simantvermasap Apr 26, 2024
07fa3b8
odrl:duty check
simantvermasap Apr 26, 2024
af61fe6
revert odrl duty
simantvermasap Apr 26, 2024
24226bb
changed odrl:duty to object
simantvermasap Apr 26, 2024
1eabb26
fixing odrl:policy
simantvermasap Apr 26, 2024
116eb82
not required property
simantvermasap Apr 26, 2024
e469366
reverting the changes
simantvermasap Apr 30, 2024
9261a27
odrl:eq
simantvermasap Apr 30, 2024
477d811
odrl:duty to object
simantvermasap Apr 30, 2024
e23c268
catalog.json changes
simantvermasap May 1, 2024
19a5f00
catalog.json changes
simantvermasap May 1, 2024
3c5cc2f
catalog.json
simantvermasap May 1, 2024
b431aa7
catalog.json changes
simantvermasap May 1, 2024
ecda2e6
catalog schema
simantvermasap May 1, 2024
9c8c476
catalog.json
simantvermasap May 1, 2024
1f55e78
catalog schema
simantvermasap May 1, 2024
b4d6098
catalog schema
simantvermasap May 1, 2024
539aa6e
odrl:policy
simantvermasap May 1, 2024
9540c25
catalog schema
simantvermasap May 1, 2024
9280acf
catalog schema
simantvermasap May 1, 2024
42cb5f1
catalog schema
simantvermasap May 1, 2024
120e375
catalog schema
simantvermasap May 1, 2024
ee3030c
catalog schema
simantvermasap May 1, 2024
364d000
contract agreement message
simantvermasap May 1, 2024
38fbc5a
contract agreement
simantvermasap May 1, 2024
e7686bb
Bugfix in context.json
sebbader-sap May 2, 2024
4c46c51
remove required @target from agreement
sebbader-sap May 2, 2024
1c081cc
fix required odrl:target for agreement
sebbader-sap May 2, 2024
2c3d856
fix required odrl:target for agreement
sebbader-sap May 2, 2024
b956530
Update contract-agreement-message-schema.json
sebbader-sap May 2, 2024
3f99b65
Update contract-schema.json
sebbader-sap May 2, 2024
54c91a6
Update contract-schema.json
sebbader-sap May 2, 2024
c280619
Update contract-offer-message-schema.json
sebbader-sap May 2, 2024
e7b8c25
Update catalog-schema.json
sebbader-sap May 2, 2024
c423708
Update dataset-schema.json
sebbader-sap May 2, 2024
f7c5f6d
Update catalog-schema.json
sebbader-sap May 2, 2024
dd697aa
Update dataset.json
sebbader-sap May 2, 2024
c6c7fc1
Update contract-offer-message-schema.json
sebbader-sap May 2, 2024
40f43a7
Update contract-offer-message_initial.json
sebbader-sap May 2, 2024
a5c25c2
Update contract-offer-message_initial.json
sebbader-sap May 2, 2024
2b72042
Update contract-request-message_initial.json
sebbader-sap May 2, 2024
12359d4
Update contract-request-message.json
sebbader-sap May 2, 2024
790659f
Update contract-request-message.json
sebbader-sap May 2, 2024
ab33608
Update contract-request-message-schema.json
sebbader-sap May 2, 2024
c10b20c
Update contract-request-message_initial.json
sebbader-sap May 2, 2024
bd18e1c
fixing dataset request message shape
simantvermasap May 3, 2024
7e8c6c9
fixing catalog error shape
simantvermasap May 3, 2024
93c378e
reversing the change
simantvermasap May 3, 2024
ca77d61
context.json url fix
simantvermasap May 3, 2024
e53d320
catalog context.json fixes
simantvermasap May 3, 2024
8222cd1
dataset reuest message shape error
simantvermasap May 3, 2024
a1598a9
Datset reuest message fix
simantvermasap May 3, 2024
dff90b0
dataset request message fix
simantvermasap May 3, 2024
0136001
dspace:dataset issue
simantvermasap May 3, 2024
278dc8d
dataset.json-odrl:policy
simantvermasap May 3, 2024
81db054
dct:title issue fix
simantvermasap May 3, 2024
aaef94c
dct:title fix
simantvermasap May 3, 2024
5676632
dct:title fix
simantvermasap May 3, 2024
496e50c
dct:title fix
simantvermasap May 4, 2024
63cf7a8
Negotiation ; delimiter issue
simantvermasap May 6, 2024
a0f87d2
Transfer ; delimiter issue
simantvermasap May 6, 2024
dd90dfa
callbackAddress issue - negotiation
simantvermasap May 6, 2024
861cc85
xsd:string to URI
simantvermasap May 6, 2024
83c491b
message correction
simantvermasap May 6, 2024
4d4c249
calback URI fix
simantvermasap May 6, 2024
17887ab
xsd:anyURI fix
simantvermasap May 6, 2024
2301063
Transfer fix
simantvermasap May 6, 2024
a2c4388
Transfer fixes
simantvermasap May 6, 2024
bd276b7
transfer fix- xsd:string fro agreementId
simantvermasap May 6, 2024
3cd70f9
transfer request message - agreementId fix
simantvermasap May 7, 2024
a703021
dct:title fix - for catalog
simantvermasap May 7, 2024
78b7e73
reversing contxt.json links
simantvermasap May 9, 2024
97e6436
reverting rawgithub link in schemas
simantvermasap May 9, 2024
3a1ae1e
reversing rawgithub links
simantvermasap May 9, 2024
cf6b9fe
Delete validate-json-schemas.yml
simantvermasap May 10, 2024
4a4f116
Delete validate-shapes.yml
simantvermasap May 10, 2024
182f084
fixes for dcat-shapes.ttl
simantvermasap May 13, 2024
26f2228
Merge branch 'main' of https://github.com/simantvermasap/ids-specific…
simantvermasap May 13, 2024
aa75d37
Create validate-shapes.yml
simantvermasap May 14, 2024
efd5687
Create validate-json-schemas.yml
simantvermasap May 14, 2024
a897145
changing ra-link for context.json
simantvermasap May 15, 2024
6717e49
adding condition for dcat-shapes.ttl : Update validate-shapes.yml
simantvermasap May 15, 2024
cd219ba
Update validate-shapes.yml
simantvermasap May 15, 2024
eeb9b6b
Update validate-shapes.yml
simantvermasap May 15, 2024
f3b63a7
Update validate-shapes.yml
simantvermasap May 15, 2024
788c22a
Update validate-shapes.yml
simantvermasap May 15, 2024
33c1a2f
Update validate-shapes.yml
simantvermasap May 15, 2024
aa144c2
resolving error in contract.agreement.message.http
simantvermasap May 15, 2024
56d161d
Merge branch 'main' of https://github.com/simantvermasap/ids-specific…
simantvermasap May 15, 2024
e7a85e1
Update dataset.json Policy->Offer
sebbader-sap May 17, 2024
1d5b754
Update dataset-shape.ttl
sebbader-sap May 17, 2024
71db3dc
Update catalog.json
sebbader-sap May 17, 2024
a5a52db
Update context.json
sebbader-sap May 17, 2024
9f3b600
Update transfer-request-message-shape.ttl
sebbader-sap May 17, 2024
2dcce8c
Update dcat-shapes.ttl
sebbader-sap May 17, 2024
3da78c3
Update dataset-shape.ttl
sebbader-sap May 17, 2024
4ad92bf
Update transfer-request-message-shape.ttl
sebbader-sap May 17, 2024
ba9a19d
Update dataset-shape.ttl
sebbader-sap May 17, 2024
0e88dad
replace context in examples
sebbader-sap May 17, 2024
9c50249
Update catalog.json
sebbader-sap May 17, 2024
bff314c
Update catalog-schema.json
sebbader-sap May 17, 2024
dba5882
Update contract-agreement-message-schema.json
sebbader-sap May 17, 2024
823e2ba
Update dataset-request-message.json
sebbader-sap May 17, 2024
fa9c035
Update contract-agreement-message-schema.json
sebbader-sap May 17, 2024
0088a47
Update contract-offer-message-schema.json
sebbader-sap May 17, 2024
84e91d8
Update contract-request-message-schema.json
sebbader-sap May 17, 2024
5145306
use intermediate context
sebbader-sap May 17, 2024
4e922f1
Update dataset-request-message-shape.ttl
sebbader-sap May 17, 2024
752654f
undo intermediate changes
sebbader-sap May 17, 2024
ba89643
Merge branch 'main' of https://github.com/simantvermasap/ids-specific…
sebbader-sap May 17, 2024
97df01d
copy files to the 2024-1 release folder
sebbader-sap May 21, 2024
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
39 changes: 21 additions & 18 deletions catalog/message/example/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,36 +38,39 @@
],
"odrl:hasPolicy": [
{
"@id": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
"@type": "odrl:Offer",
"dspace:providerId": "http://example.com/Provider",
"odrl:assigner": "http://example.com/Provider",
"odrl:permission": [
{
"odrl:action": "odrl:use",
"odrl:constraint": [
{
"odrl:leftOperand": "odrl:spatial",
"odrl:operator": "odrl:EQ",
"odrl:rightOperand": "odrl:EU"
"odrl:operator": "odrl:eq",
"odrl:rightOperand": "http://example.org/EU"
}
],
"odrl:duty": []
"odrl:duty": {
"odrl:action": "cc:Attribution"
}
}
],
"odrl:prohibition": [],
"odrl:obligation": []
]
}
],
"dcat:distribution": {
"@type": "dcat:Distribution",
"dct:format": "dspace:s3+push",
"dcat:accessService": [
{
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77",
"@type": "dcat:DataService",
"dcat:endpointURL": "https://provider-a.com/connector"
}
]
}
"dcat:distribution": [
{
"@type": "dcat:Distribution",
"dct:format": "dspace:s3+push",
"dcat:accessService": [
{
"@id": "urn:uuid:4aa2dcc8-4d2d-569e-d634-8394a8834d77",
"@type": "dcat:DataService",
"dcat:endpointURL": "https://provider-a.com/connector"
}
]
}
]
}
]
}
2 changes: 1 addition & 1 deletion catalog/message/example/dataset-request-message.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"@context": "https://w3id.org/dspace/2024/1/context.json",
"@type": "dspace:DatasetRequestMessage",
"dspace:dataset": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88"
"dspace:dataset": "urn:uuid:3afeadd8-ed2d-569e-d634-8394a8836d57"
}
7 changes: 4 additions & 3 deletions catalog/message/example/dataset.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"dcat:keyword": [
"traffic"
],
"odrl:hasPolicy": {
"odrl:hasPolicy": [ {
"@type": "odrl:Offer",
"@id": "urn:uuid:2828282:3dd1add8-4d2d-569e-d634-8394a8836a88",
"odrl:assigner": "urn:tsdshhs636378",
"odrl:permission": [
{
"odrl:action": "odrl:use",
Expand All @@ -27,7 +28,7 @@
]
}
]
},
} ],
"dcat:distribution": [
{
"@type": "dcat:Distribution",
Expand All @@ -42,4 +43,4 @@
]
}
]
}
}
10 changes: 6 additions & 4 deletions catalog/message/schema/catalog-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"type": "object",
"allOf": [
{
"$ref": "https://w3id.org/dspace/2024/1/catalog/dataset-schema.json#/definitions/Dataset"
"$ref": "https://w3id.org/dspace/2024/1/catalog/dataset-schema.json#/definitions/AbstractDataset"
},
{
"properties": {
Expand Down Expand Up @@ -49,9 +49,11 @@
}
],
"required": [ "@context", "@type" ],
"not": {
"required": [ "odrl:hasPolicy" ]
}
"anyOf" : [
{
"not" : { "required" : [ "odrl:hasPolicy" ] }
}
]
}
}
}
12 changes: 10 additions & 2 deletions catalog/message/schema/dataset-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
],
"$id": "https://w3id.org/dspace/2024/1/catalog/dataset-schema.json",
"definitions": {
"Dataset": {
"AbstractDataset": {
"type": "object",
"allOf": [
{
Expand All @@ -33,6 +33,14 @@
}
}
}
]
},
"Dataset": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AbstractDataset"
}
],
"required": [
"odrl:hasPolicy"
Expand Down Expand Up @@ -164,4 +172,4 @@
"required": [ "@value", "@language" ]
}
}
}
}
3 changes: 1 addition & 2 deletions catalog/message/shape/dataset-request-message-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ dspace_shapes:DatasetRequestMessageShape
sh:property [
a sh:PropertyShape ;
sh:path dspace:dataset ;
sh:class dcat:Dataset ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/catalog-request-message-shape.ttl> (DatasetRequestMessage): An dspace:dataset property must point to one dcat:Dataset."@en ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dataset-request-message-shape.ttl> (DatasetRequestMessage): There must be exactly one dspace:dataset property."@en ;
] ;
.
8 changes: 4 additions & 4 deletions catalog/message/shape/dataset-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ dspace_shapes:DatasetShape
sh:property [
a sh:PropertyShape ;
sh:path dct:title ;
sh:datatype xsd:string ;
sh:datatype rdf:langString ;
sh:minCount 0;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dataset-shape.ttl> (DatasetShape): A dct:title property must point to a xsd:string field."@en ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dataset-shape.ttl> (DatasetShape): A dct:title property must point to a language tagged field."@en ;
] ;

sh:property [
a sh:PropertyShape ;
sh:path odrl:hasPolicy ;
sh:class odrl:Policy ;
sh:class odrl:Offer ;
sh:severity sh:Violation ;
sh:minCount 0;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dataset-shape.ttl> (DatasetShape): An odrl:hasPolicy property must point to an odrl:Policy."@en ;
] ;

.
.
8 changes: 4 additions & 4 deletions catalog/message/shape/dcat-shapes.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,17 @@ dspace_shapes:DataServiceShape
sh:property [
a sh:PropertyShape ;
sh:path dcat:endpointDescription ;
sh:datatype xsd:string ;
sh:datatype xsd:anyURI ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DataServiceShape): A dcat:endpointDescription property must point to a xsd:string field."@en ;
] ;

sh:property [
a sh:PropertyShape ;
sh:path dcat:endpointURL ;
sh:datatype xsd:string ;
sh:datatype xsd:anyURI ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DataServiceShape): A dcat:endpointURL property must point to a xsd:string field."@en ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DataServiceShape): A dcat:endpointURL property must point to a xsd:anyURI field."@en ;
] ;

sh:property [
Expand All @@ -264,4 +264,4 @@ dspace_shapes:DataServiceShape
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/dcat-shapes.ttl> (DataServiceShape): A dcat:servesDataset property must point to a dcat:Dataset."@en ;
] ;

.
.
2 changes: 1 addition & 1 deletion common/schema/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"odrl:leftOperand": { "@type": "@id" },
"odrl:operator": { "@type": "@id" },
"odrl:rightOperandReference": { "@type": "@id" },
"odrl:profile": { "@container": "@set" }
"odrl:profile": { "@container": "@set" },
"odrl:assigner": { "@type": "@id" },
"odrl:assignee": { "@type": "@id" }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
}]
}]
},
"dspace:callbackAddress": "https://......"
"dspace:callbackAddress": "https://example.com/callback"
}
2 changes: 1 addition & 1 deletion negotiation/message/example/contract-offer-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
}]
}]
},
"dspace:callbackAddress": "https://......"
"dspace:callbackAddress": "https://example.com/callback"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"dspace:offer": {
"@type": "odrl:Offer",
"@id": "urn:uuid:d526561f-528e-4d5a-ae12-9a9dd9b7a518",
"target": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88"
"odrl:assigner": "urn:tsdshhs636378",
"target": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
"odrl:permission": [{
"odrl:action": "odrl:use"
}]
},
"dspace:callbackAddress": "https://......"
"dspace:callbackAddress": "https://example.com/callback"
}
4 changes: 3 additions & 1 deletion negotiation/message/example/contract-request-message.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"dspace:providerPid": "urn:uuid:a343fcbf-99fc-4ce8-8e9b-148c97605aab",
"dspace:consumerPid": "urn:uuid:32541fe6-c580-409e-85a8-8a9a32fbe833",
"dspace:offer": {
"@type": "odrl:Offer",
"@id": "urn:uuid:d526561f-528e-4d5a-ae12-9a9dd9b7a815",
"odrl:target": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
"odrl:assigner": "urn:tsdshhs636378",
"odrl:assignee": "urn:jashd766",
Expand All @@ -16,5 +18,5 @@
}]
}]
},
"dspace:callbackAddress": "https://......"
"dspace:callbackAddress": "https://example.com/callback"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
"dspace:offer": {
"@type": "odrl:Offer",
"@id": "urn:uuid:2828282:3dd1add8-4d2d-569e-d634-8394a8836a89",
"odrl:target": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88"
"odrl:target": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
"odrl:assigner": "urn:tsdshhs636378",
"odrl:permission": [{
"odrl:action": "odrl:use"
}]
},
"dspace:callbackAddress": "https://......"
"dspace:callbackAddress": "https://example.com/callback"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dspace:providerPid": "urn:uuid:a343fcbf-99fc-4ce8-8e9b-148c97605aab",
"dspace:consumerPid": "urn:uuid:32541fe6-c580-409e-85a8-8a9a32fbe833",
"dspace:agreement": {
"@id": "some-other-id",
"@id": "urn:uuid:e8dc8655-44c2-46ef-b701-4cffdc2faa44",
"@type": "odrl:Agreement",
"odrl:target": "urn:uuid:3dd1add8-4d2d-569e-d634-8394a8836a88",
"odrl:assignee": "...",
Expand Down Expand Up @@ -39,5 +39,6 @@
]
}
]
}
},
"dspace:callbackAddress": "https://example.com/callback"
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"required": [ "@context", "@type", "dspace:providerPid", "dspace:offer", "dspace:callbackAddress" ]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"required": [ "@context", "@type", "dspace:consumerPid", "dspace:offer", "dspace:callbackAddress" ]
}
}
}
}
5 changes: 2 additions & 3 deletions negotiation/message/schema/contract-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@
"odrl:assignee": {
"type": "string"
}
},
"not": { "required": [ "odrl:target" ] }
}
},
"MessageOffer": {
"type": "object",
Expand Down Expand Up @@ -153,7 +152,7 @@
"required": [
"@type",
"@id",
"@target",
"odrl:target",
"odrl:assignee",
"odrl:assigner"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ dspace_shapes:ContractAgreementMessageShape
sh:property [
a sh:PropertyShape ;
sh:path dspace:callbackAddress ;
sh:datatype xsd:string ;
sh:datatype xsd:anyURI ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/contract-agreement-message-shape.ttl> (ContractAgreementMessageShape): An dspace:callbackAddress property must point to exactly one xsd:string value."@en ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/contract-agreement-message-shape.ttl> (ContractAgreementMessageShape): An dspace:callbackAddress property must point to exactly one xsd:anyURI value."@en ;
]
.
4 changes: 2 additions & 2 deletions negotiation/message/shape/contract-offer-message-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ dspace_shapes:ContractOfferMessageShape
sh:property [
a sh:PropertyShape ;
sh:path dspace:callbackAddress ;
sh:datatype xsd:string ;
sh:datatype xsd:anyURI ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/contract-offer-message-shape.ttl> (ContractOfferMessageShape): A dspace:callbackAddress property must point to exactly one xsd:string value."@en ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/contract-offer-message-shape.ttl> (ContractOfferMessageShape): A dspace:callbackAddress property must point to exactly one xsd:anyURI value."@en ;
] ;
.
4 changes: 2 additions & 2 deletions negotiation/message/shape/contract-request-message-shape.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ dspace_shapes:ContractRequestMessageShape
sh:property [
a sh:PropertyShape ;
sh:path dspace:callbackAddress ;
sh:datatype xsd:string ;
sh:datatype xsd:anyURI ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/contract-request-message-shape.ttl> (ContractRequestMessageShape): An dspace:callbackAddress property must point to exactly one xsd:string value."@en ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/contract-request-message-shape.ttl> (ContractRequestMessageShape): An dspace:callbackAddress property must point to exactly one xsd:anyURI value."@en ;
] ;
.
2 changes: 1 addition & 1 deletion releases/2024-1/common/schema/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"odrl:leftOperand": { "@type": "@id" },
"odrl:operator": { "@type": "@id" },
"odrl:rightOperandReference": { "@type": "@id" },
"odrl:profile": { "@container": "@set" }
"odrl:profile": { "@container": "@set" },
"odrl:assigner": { "@type": "@id" },
"odrl:assignee": { "@type": "@id" }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@
"required": [ "@context", "@type", "dspace:providerPid", "dspace:offer", "dspace:callbackAddress" ]
}
}
}
}
Loading