Skip to content

Commit

Permalink
Merge pull request #29 from arnoweiss/main
Browse files Browse the repository at this point in the history
Refer from policies elements to Catena-X vocabulary
  • Loading branch information
jimmarino authored Apr 8, 2024
2 parents c1be580 + 301e984 commit 09527f1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 30 deletions.
28 changes: 14 additions & 14 deletions cx/credentials/schema/context/policy.context.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@
"@protected": true,
"cred": "https://www.w3.org/2018/credentials#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"tx-policy": "https://w3id.org/tractusx/policy/",
"Dismantler": "tx-policy:Dismantler",
"Dismantler.activityType": "tx-policy:Dismantler.activityType",
"Dismantler.allowedBrands": "tx-policy:Dismantler.allowedBrands",
"Membership": "tx-policy:Membership",
"UsagePurpose": "tx-policy:UsagePurpose",
"ContractReference": "tx-policy:ContractReference",
"FrameworkAgreement": "tx-policy:FrameworkAgreement",
"FrameworkAgreement.behavioraltwin": "tx-policy:FrameworkAgreement.behavioraltwin",
"FrameworkAgreement.pcf": "tx-policy:FrameworkAgreement.pcf",
"FrameworkAgreement.quality": "tx-policy:FrameworkAgreement.quality",
"FrameworkAgreement.resiliency": "tx-policy:FrameworkAgreement.resiliency",
"FrameworkAgreement.sustainability": "tx-policy:FrameworkAgreement.sustainability",
"FrameworkAgreement.traceability": "tx-policy:FrameworkAgreement.traceability"
"cx-policy": "https://w3id.org/catenax/policy/",
"Dismantler": "cx-policy:Dismantler",
"Dismantler.activityType": "cx-policy:Dismantler.activityType",
"Dismantler.allowedBrands": "cx-policy:Dismantler.allowedBrands",
"Membership": "cx-policy:Membership",
"UsagePurpose": "cx-policy:UsagePurpose",
"ContractReference": "cx-policy:ContractReference",
"FrameworkAgreement": "cx-policy:FrameworkAgreement",
"FrameworkAgreement.behavioraltwin": "cx-policy:FrameworkAgreement.behavioraltwin",
"FrameworkAgreement.pcf": "cx-policy:FrameworkAgreement.pcf",
"FrameworkAgreement.quality": "cx-policy:FrameworkAgreement.quality",
"FrameworkAgreement.resiliency": "cx-policy:FrameworkAgreement.resiliency",
"FrameworkAgreement.sustainability": "cx-policy:FrameworkAgreement.sustainability",
"FrameworkAgreement.traceability": "cx-policy:FrameworkAgreement.traceability"
}
}
2 changes: 1 addition & 1 deletion cx/credentials/specs/specification.changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
1. Remove `startTime`, `memberOf`, and `status` from the `Membership` credential
2. Remove `credentialSubject` and `type` attributes from all credentials
3. Create separate credential context using the URI: https://w3id.org/catenax/credentials/v1.0.0
4. Create separate policy context using the URI: https://w3id.org/tractusx/policy/v1.0.0
4. Create separate policy context using the URI: https://w3id.org/catenax/policy/v1.0.0
5. Create JSON Schema definitions for all credentials using the URI: https://w3id.org/catenax/schemas/v1.0.0/
6. Adopt JWT-based VCs using JWS algorithm `ES256K` and JWK curve `secp256k1`
7. Separate namespaces for `tractusx` and `catenax`
28 changes: 14 additions & 14 deletions cx/policy/samples/policy.sample.playground.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
"@protected": true,
"cred": "https://www.w3.org/2018/credentials#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"tx-policy": "https://w3id.org/tractusx/policy/",
"Dismantler": "tx-policy:Dismantler",
"Dismantler.activityType": "tx-policy:Dismantler.activityType",
"Dismantler.allowedBrands": "tx-policy:Dismantler.allowedBrands",
"Membership": "tx-policy:Membership",
"UsagePurpose": "tx-policy:UsagePurpose",
"ContractReference": "tx-policy:ContractReference",
"FrameworkAgreement": "tx-policy:FrameworkAgreement",
"FrameworkAgreement.behavioraltwin": "tx-policy:FrameworkAgreement.behavioraltwin",
"FrameworkAgreement.pcf": "tx-policy:FrameworkAgreement.pcf" ,
"FrameworkAgreement.quality": "tx-policy:FrameworkAgreement.quality",
"FrameworkAgreement.resiliency": "tx-policy:FrameworkAgreement.resiliency",
"FrameworkAgreement.sustainability": "tx-policy:FrameworkAgreement.sustainability",
"FrameworkAgreement.traceability": "tx-policy:FrameworkAgreement.traceability"
"cx-policy": "https://w3id.org/catenax/policy/",
"Dismantler": "cx-policy:Dismantler",
"Dismantler.activityType": "cx-policy:Dismantler.activityType",
"Dismantler.allowedBrands": "cx-policy:Dismantler.allowedBrands",
"Membership": "cx-policy:Membership",
"UsagePurpose": "cx-policy:UsagePurpose",
"ContractReference": "cx-policy:ContractReference",
"FrameworkAgreement": "cx-policy:FrameworkAgreement",
"FrameworkAgreement.behavioraltwin": "cx-policy:FrameworkAgreement.behavioraltwin",
"FrameworkAgreement.pcf": "cx-policy:FrameworkAgreement.pcf" ,
"FrameworkAgreement.quality": "cx-policy:FrameworkAgreement.quality",
"FrameworkAgreement.resiliency": "cx-policy:FrameworkAgreement.resiliency",
"FrameworkAgreement.sustainability": "cx-policy:FrameworkAgreement.sustainability",
"FrameworkAgreement.traceability": "cx-policy:FrameworkAgreement.traceability"
}
],
"@id": "definition-id",
Expand Down
2 changes: 1 addition & 1 deletion cx/policy/specs/policy.definitions.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ be used.
### 1.3 A Note on Json-Ld Prefixes

Json-Ld prefixes are not show in the examples since the Json-Ld context includes term aliases that make prefixes
optional for known constraint types. For example, assuming the `tx` prefix, `Membership` and `tx-policy:Membership` are equal
optional for known constraint types. For example, assuming the `cx` prefix, `Membership` and `cx-policy:Membership` are equal
and will be processed in the same way.

# 2. Membership Constraint
Expand Down

0 comments on commit 09527f1

Please sign in to comment.