-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #344 from eclipse-tractusx/feature/verification-sc…
…hemas Feature/verification schemas: Verification Schemas of Certified Data Credential and Digital Product Passport
- Loading branch information
Showing
10 changed files
with
7,416 additions
and
0 deletions.
There are no files selected for viewing
45 changes: 45 additions & 0 deletions
45
dpp-verification/schemas/cdc/1.0.0/certifiedDataCredential.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"CertifiedDataCredential": { | ||
"@context": { | ||
"@definition": "Credential that contains the complete passport and is signed by the issuer of the data. It allows to track changes during the updates from the passport in the supply chain.\nIt can be \"self-testified\" by the data provider when creating/issuing the passport data. It contains the additional attributes added to the Verifiable Credential Data Model v2.", | ||
"@version": 1.1, | ||
"id": "@id", | ||
"parent": { | ||
"@context": { | ||
"@definition": "The parent object contains the link for the previous verifiable credential version of the data.", | ||
"@version": 1.1, | ||
"checksum": { | ||
"@context": { | ||
"@definition": "Constains the SHA512 Hash of the complete verifiable credential of the parent content" | ||
}, | ||
"@id": "cdc:checksum", | ||
"@type": "schema:string" | ||
}, | ||
"id": { | ||
"@context": { | ||
"@definition": "Contains the DID identification of the previous verifiable credential node" | ||
}, | ||
"@id": "cdc:id", | ||
"@type": "schema:string" | ||
}, | ||
"type": "@type" | ||
}, | ||
"@id": "cdc:parent" | ||
}, | ||
"semanticId": { | ||
"@context": { | ||
"@definition": "The property which contains the semantic id string of the credential subject. It contains the complete identification of which aspect model version its contained. The key can be used to find the model information in the expanded JSON-LD." | ||
}, | ||
"@id": "cdc:semanticId", | ||
"@type": "schema:string" | ||
}, | ||
"type": "@type" | ||
}, | ||
"@id": "cdc:CertifiedDataCredential" | ||
}, | ||
"cdc": "urn:samm:io.catenax.dpp_verification.cdc:1.0.0#", | ||
"schema": "https://schema.org/" | ||
} | ||
} |
1,696 changes: 1,696 additions & 0 deletions
1,696
dpp-verification/schemas/dpp/5.0.0/digitalProductPass.jsonld
Large diffs are not rendered by default.
Oops, something went wrong.
80 changes: 80 additions & 0 deletions
80
dpp-verification/semantics/io.catenax.dpp_verification.cdc/1.0.0/CertifiedDataCredential.ttl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
################################################################################# | ||
# Tractus-X - Digital Product Passport Verification Add-on | ||
# | ||
# Copyright (c) 2024 BMW AG | ||
# Copyright (c) 2024 CGI Deutschland B.V. & Co. KG | ||
# Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
# | ||
# See the NOTICE file(s) distributed with this work for additional | ||
# information regarding copyright ownership. | ||
# | ||
# This work is made available under the terms of the | ||
# Creative Commons Attribution 4.0 International (CC-BY-4.0) license, | ||
# which is available at | ||
# https://creativecommons.org/licenses/by/4.0/legalcode. | ||
# | ||
# SPDX-License-Identifier: CC-BY-4.0 | ||
################################################################################# | ||
|
||
@prefix samm: <urn:samm:org.eclipse.esmf.samm:meta-model:2.1.0#> . | ||
@prefix samm-c: <urn:samm:org.eclipse.esmf.samm:characteristic:2.1.0#> . | ||
@prefix samm-e: <urn:samm:org.eclipse.esmf.samm:entity:2.1.0#> . | ||
@prefix unit: <urn:samm:org.eclipse.esmf.samm:unit:2.1.0#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
@prefix : <urn:samm:io.catenax.dpp_verification.cdc:1.0.0#> . | ||
|
||
:CertifiedDataCredential a samm:Aspect ; | ||
samm:preferredName "CertifiedDataCredential"@en ; | ||
samm:description "Credential that contains the complete passport and is signed by the issuer of the data. It allows to track changes during the updates from the passport in the supply chain.\nIt can be \"self-testified\" by the data provider when creating/issuing the passport data. It contains the additional attributes added to the Verifiable Credential Data Model v2."@en ; | ||
samm:see <https://www.w3.org/TR/vc-data-model-2.0/> ; | ||
samm:see <https://github.com/eclipse-tractusx/digital-product-pass/tree/main/dpp-verification#verification-statements-documentscredentials> ; | ||
samm:properties ( :parent :semanticId ) ; | ||
samm:operations ( ) ; | ||
samm:events ( ) . | ||
|
||
:parent a samm:Property ; | ||
samm:preferredName "Parent"@en ; | ||
samm:description "The parent object contains the link for the previous verifiable credential version of the data."@en ; | ||
samm:characteristic :ParentCharacteristic . | ||
|
||
:semanticId a samm:Property ; | ||
samm:preferredName "Semantic Id"@en ; | ||
samm:description "The property which contains the semantic id string of the credential subject. It contains the complete identification of which aspect model version its contained. The key can be used to find the model information in the expanded JSON-LD."@en ; | ||
samm:characteristic samm-c:Text ; | ||
samm:exampleValue "urn:samm:io.catenax.generic.digital_product_passport:5.0.0#DigitalProductPass" . | ||
|
||
:ParentCharacteristic a samm:Characteristic ; | ||
samm:description "Entity of the parent attribute"@en ; | ||
samm:dataType :ParentEntity . | ||
|
||
:ParentEntity a samm:Entity ; | ||
samm:preferredName "Parent Entity"@en ; | ||
samm:description "Entity of the parent characteristic"@en ; | ||
samm:properties ( [ samm:property :id; samm:payloadName "@id" ] :checksum ) . | ||
|
||
:id a samm:Property ; | ||
samm:preferredName "@id"@en ; | ||
samm:description "Contains the DID identification of the previous verifiable credential node"@en ; | ||
samm:characteristic :DID ; | ||
samm:exampleValue "did:web:dpp-test-system.com:BPNL000000000000:api:public:urn%3Auuid%3A1c5b6a7c-90d4-3481-0538-f134ff53076d" . | ||
|
||
:checksum a samm:Property ; | ||
samm:preferredName "checksum"@en ; | ||
samm:description "Constains the SHA512 Hash of the complete verifiable credential of the parent content"@en ; | ||
samm:characteristic :SHA512 ; | ||
samm:exampleValue "64b1a523da600e8fc0018cf57b8f7756b83bb6e9b11c81b1c7444272fab239902321b1b6ae6624d6846fd010616ae98c118f12491f922badd64e58b782c6a115" . | ||
|
||
:DID a samm:Characteristic ; | ||
samm:preferredName "Decentralized Identifier"@en ; | ||
samm:description "Decentralized identifiers (DIDs) are a new type of identifier that enables verifiable, decentralized digital identity. A DID refers to any subject (e.g., a person, organization, thing, data model, abstract entity, etc.) as determined by the controller of the DID. In contrast to typical, federated identifiers, DIDs have been designed so that they may be decoupled from centralized registries, identity providers, and certificate authorities. Specifically, while other parties might be used to help enable the discovery of information related to a DID, the design enables the controller of a DID to prove control over it without requiring permission from any other party. DIDs are URIs that associate a DID subject with a DID document allowing trustable interactions associated with that subject."@en ; | ||
samm:see <https://www.w3.org/TR/did-core/> ; | ||
samm:dataType xsd:string . | ||
|
||
:SHA512 a samm:Characteristic ; | ||
samm:preferredName "SHA512"@en ; | ||
samm:description "Secure Hash 512"@en ; | ||
samm:see <https://csrc.nist.gov/files/pubs/fips/180-2/final/docs/fips180-2.pdf> ; | ||
samm:dataType xsd:string . | ||
|
7 changes: 7 additions & 0 deletions
7
...n/semantics/io.catenax.dpp_verification.cdc/1.0.0/gen/CertifiedDataCredential-sample.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"parent": { | ||
"checksum": "64b1a523da600e8fc0018cf57b8f7756b83bb6e9b11c81b1c7444272fab239902321b1b6ae6624d6846fd010616ae98c118f12491f922badd64e58b782c6a115", | ||
"@id": "did:web:dpp-test-system.com:BPNL000000000000:api:public:urn%3Auuid%3A1c5b6a7c-90d4-3481-0538-f134ff53076d" | ||
}, | ||
"semanticId": "urn:samm:io.catenax.generic.digital_product_passport:5.0.0#DigitalProductPass" | ||
} |
53 changes: 53 additions & 0 deletions
53
...n/semantics/io.catenax.dpp_verification.cdc/1.0.0/gen/CertifiedDataCredential-schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema", | ||
"description": "Credential that contains the complete passport and is signed by the issuer of the data. It allows to track changes during the updates from the passport in the supply chain.\nIt can be \"self-testified\" by the data provider when creating/issuing the passport data. It contains the additional attributes added to the Verifiable Credential Data Model v2.", | ||
"type": "object", | ||
"components": { | ||
"schemas": { | ||
"urn_samm_io.catenax.dpp_verification.cdc_1.0.0_DID": { | ||
"type": "string", | ||
"description": "Decentralized identifiers (DIDs) are a new type of identifier that enables verifiable, decentralized digital identity. A DID refers to any subject (e.g., a person, organization, thing, data model, abstract entity, etc.) as determined by the controller of the DID. In contrast to typical, federated identifiers, DIDs have been designed so that they may be decoupled from centralized registries, identity providers, and certificate authorities. Specifically, while other parties might be used to help enable the discovery of information related to a DID, the design enables the controller of a DID to prove control over it without requiring permission from any other party. DIDs are URIs that associate a DID subject with a DID document allowing trustable interactions associated with that subject." | ||
}, | ||
"urn_samm_io.catenax.dpp_verification.cdc_1.0.0_SHA512": { | ||
"type": "string", | ||
"description": "Secure Hash 512" | ||
}, | ||
"urn_samm_io.catenax.dpp_verification.cdc_1.0.0_ParentCharacteristic": { | ||
"description": "Entity of the parent attribute", | ||
"type": "object", | ||
"properties": { | ||
"@id": { | ||
"description": "Contains the DID identification of the previous verifiable credential node", | ||
"$ref": "#/components/schemas/urn_samm_io.catenax.dpp_verification.cdc_1.0.0_DID" | ||
}, | ||
"checksum": { | ||
"description": "Constains the SHA512 Hash of the complete verifiable credential of the parent content", | ||
"$ref": "#/components/schemas/urn_samm_io.catenax.dpp_verification.cdc_1.0.0_SHA512" | ||
} | ||
}, | ||
"required": [ | ||
"@id", | ||
"checksum" | ||
] | ||
}, | ||
"urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text": { | ||
"type": "string", | ||
"description": "Describes a Property which contains plain text. This is intended exclusively for human readable strings, not for identifiers, measurement values, etc." | ||
} | ||
} | ||
}, | ||
"properties": { | ||
"parent": { | ||
"description": "The parent object contains the link for the previous verifiable credential version of the data.", | ||
"$ref": "#/components/schemas/urn_samm_io.catenax.dpp_verification.cdc_1.0.0_ParentCharacteristic" | ||
}, | ||
"semanticId": { | ||
"description": "The property which contains the semantic id string of the credential subject. It contains the complete identification of which aspect model version its contained. The key can be used to find the model information in the expanded JSON-LD.", | ||
"$ref": "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Text" | ||
} | ||
}, | ||
"required": [ | ||
"parent", | ||
"semanticId" | ||
] | ||
} |
38 changes: 38 additions & 0 deletions
38
...cation/semantics/io.catenax.dpp_verification.cdc/1.0.0/gen/CertifiedDataCredential.jsonld
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"CertifiedDataCredential": { | ||
"@context": { | ||
"@definition": "Credential that contains the complete passport and is signed by the issuer of the data. It allows to track changes during the updates from the passport in the supply chain.\nIt can be \"self-testified\" by the data provider when creating/issuing the passport data.", | ||
"@version": 1.1, | ||
"id": "@id", | ||
"parent": { | ||
"@context": { | ||
"@definition": "The parent object contains the link for the previous verifiable credential version of the data.", | ||
"@version": 1.1, | ||
"checksum": { | ||
"@context": { | ||
"@definition": "Constains the SHA512 Hash of the complete verifiable credential of the parent content" | ||
}, | ||
"@id": "cdc:checksum", | ||
"@type": "schema:string" | ||
}, | ||
"id": { | ||
"@context": { | ||
"@definition": "Contains the DID identification of the previous verifiable credential node" | ||
}, | ||
"@id": "cdc:id", | ||
"@type": "schema:string" | ||
}, | ||
"type": "@type" | ||
}, | ||
"@id": "cdc:parent" | ||
}, | ||
"type": "@type" | ||
}, | ||
"@id": "cdc:CertifiedDataCredential" | ||
}, | ||
"cdc": "urn:samm:io.catenax.dpp_verification.cdc:1.0.0#", | ||
"schema": "https://schema.org/" | ||
} | ||
} |
Oops, something went wrong.