From cbfeb140b241e21760461d9994846a0590075eed Mon Sep 17 00:00:00 2001 From: Saud Khan Date: Wed, 4 Dec 2024 16:17:38 +0100 Subject: [PATCH] chore(fix): fixed digital twins payloads and integrated IRS guide --- dpp-tutorial/builder-path.md | 34 ++++++++++++++++++- .../digital-twins/car-dt-template.json | 12 ------- .../resources/digital-twins/example-dt.json | 18 ++-------- .../example-dt-irs.json | 0 4 files changed, 36 insertions(+), 28 deletions(-) rename dpp-tutorial/resources/{digital-twins => irs}/example-dt-irs.json (100%) diff --git a/dpp-tutorial/builder-path.md b/dpp-tutorial/builder-path.md index f7679e4b6..3b3247f6d 100644 --- a/dpp-tutorial/builder-path.md +++ b/dpp-tutorial/builder-path.md @@ -315,6 +315,35 @@ curl --location --request GET '/shell-descriptors/ + +## 4ยบ Add Relationships to Digital Twin (Drill Down Feature) + +This step enables you to view the component relationships. + +Example: + + ___________________ + | | + | Battery | + |___________________| + | + | ___________________ + |--->| | + | Battery Module | + |___________________| + | + | ___________________ + |--->| | + | Battery Cell | + |___________________| + + + + +Refer to the [irs-drill-down](./irs-drill-down.md) guide for more information + + + In case of error, you can always modify your digital twin using the following commands: > PUT /shell-descriptors/ @@ -344,6 +373,9 @@ curl --location --request PUT '/shell-descriptors/here to access the next steps. @@ -356,4 +388,4 @@ This work is licensed under the [CC-BY-4.0](https://creativecommons.org/licenses - SPDX-FileCopyrightText: 2024 BMW AG - SPDX-FileCopyrightText: 2024 CGI Deutschland B.V. & Co. KG - SPDX-FileCopyrightText: 2024 Contributors to the Eclipse Foundation -- Source URL: https://github.com/eclipse-tractusx/digital-product-pass \ No newline at end of file +- Source URL: https://github.com/eclipse-tractusx/digital-product-pass diff --git a/dpp-tutorial/resources/digital-twins/car-dt-template.json b/dpp-tutorial/resources/digital-twins/car-dt-template.json index c6e68ce52..806705417 100644 --- a/dpp-tutorial/resources/digital-twins/car-dt-template.json +++ b/dpp-tutorial/resources/digital-twins/car-dt-template.json @@ -94,21 +94,9 @@ "semanticId": { "type": "ExternalReference", "keys": [ - { - "type": "Operation", - "value": "https://w3c.github.io/vc-jws-2020/contexts/v1/" - }, { "type": "Submodel", "value": "urn:samm:io.catenax.generic.digital_product_passport:5.0.0#DigitalProductPassport" - }, - { - "type": "Entity", - "value": "https://www.w3.org/ns/credentials/v2" - }, - { - "type": "DataElement", - "value": "urn:samm:io.catenax.dpp_verification.cdc:1.0.0#CertifiedDataCredential" } ] }, diff --git a/dpp-tutorial/resources/digital-twins/example-dt.json b/dpp-tutorial/resources/digital-twins/example-dt.json index 74a04704c..2ecdc55db 100644 --- a/dpp-tutorial/resources/digital-twins/example-dt.json +++ b/dpp-tutorial/resources/digital-twins/example-dt.json @@ -7,7 +7,7 @@ ], "displayName": [], "globalAssetId": "urn:uuid:", - "idShort": "Car", + "idShort": "", "id": "", "specificAssetIds": [ { @@ -24,7 +24,7 @@ } }, { - "name": "", + "name": "partInstanceId", "value": "", "externalSubjectId": { "type": "ExternalReference", @@ -73,7 +73,7 @@ { "interface": "SUBMODEL-3.0", "protocolInformation": { - "href": "/api/public/>", + "href": "/api/public/", "endpointProtocol": "HTTP", "endpointProtocolVersion": ["1.1"], "subprotocol": "DSP", @@ -94,21 +94,9 @@ "semanticId": { "type": "ExternalReference", "keys": [ - { - "type": "Operation", - "value": "https://w3c.github.io/vc-jws-2020/contexts/v1/" - }, { "type": "Submodel", "value": "urn:samm:io.catenax.generic.digital_product_passport:5.0.0#DigitalProductPassport" - }, - { - "type": "Entity", - "value": "https://www.w3.org/ns/credentials/v2" - }, - { - "type": "DataElement", - "value": "urn:samm:io.catenax.dpp_verification.cdc:1.0.0#CertifiedDataCredential" } ] }, diff --git a/dpp-tutorial/resources/digital-twins/example-dt-irs.json b/dpp-tutorial/resources/irs/example-dt-irs.json similarity index 100% rename from dpp-tutorial/resources/digital-twins/example-dt-irs.json rename to dpp-tutorial/resources/irs/example-dt-irs.json