From 68f2a07001d4939e08220adc8e8b672486a194fe Mon Sep 17 00:00:00 2001 From: Muhammad Saud Khan Date: Tue, 2 Apr 2024 15:11:19 +0200 Subject: [PATCH 1/3] chore(update): updated dpp testdata payload file --- .../testing/testdata/testdata-payload.json | 232 +++++++++++++++++- 1 file changed, 230 insertions(+), 2 deletions(-) diff --git a/deployment/local/testing/testdata/testdata-payload.json b/deployment/local/testing/testdata/testdata-payload.json index b7c2c5284..1aa6c302d 100644 --- a/deployment/local/testing/testdata/testdata-payload.json +++ b/deployment/local/testing/testdata/testdata-payload.json @@ -44,6 +44,16 @@ "value": "IMR18650V1", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "manufacturerPartId", "value": "XYZ78901", @@ -356,6 +366,16 @@ "value": "NCR186850B", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "manufacturerPartId", "value": "XYZ78901", @@ -668,6 +688,16 @@ "value": "X123456789012X12345678901234566", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "manufacturerPartId", "value": "XYZ78901", @@ -980,6 +1010,16 @@ "value": "Y792927456954B81677903848654570", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "manufacturerPartId", "value": "XYZ78901", @@ -1396,6 +1436,16 @@ "value": "XYZ78901", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "BAT-XYZ789", @@ -1433,6 +1483,20 @@ { "name": "SerialPart", "data": { + "localIdentifiers": [ + { + "value": "BPNL00000007RVTB", + "key": "manufacturerId" + }, + { + "value": "XYZ78901", + "key": "manufacturerPartId" + }, + { + "value": "BAT-XYZ789", + "key": "partInstanceId" + } + ], "partTypeInformation": { "classification": "product", "manufacturerPartId": "XYZ78901", @@ -1570,7 +1634,7 @@ "operation": { "importer": "BPNL000000000000", "manufacturer": { - "manufacturerId": "BPNL000000000000", + "manufacturerId": "BPNL00000007RVTB", "facilityId": "BPNL000000000123" } } @@ -1588,6 +1652,16 @@ "value": "XYZ78901", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "EVMODULE-TRJ712", @@ -1625,6 +1699,24 @@ { "name": "SerialPart", "data": { + "localIdentifiers": [ + { + "value": "BPNL00000007RVTB", + "key": "manufacturerId" + }, + { + "value": "XYZ78901", + "key": "manufacturerPartId" + }, + { + "value": "EVMODULE-TRJ712", + "key": "partInstanceId" + } + ], + "manufacturingInformation": { + "date": "2022-02-04T14:48:54", + "country": "DEU" + }, "partTypeInformation": { "classification": "component", "manufacturerPartId": "XYZ78901", @@ -1789,6 +1881,16 @@ "value": "XYZ78901", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "CTA-13123", @@ -1815,6 +1917,20 @@ { "name": "SerialPart", "data": { + "localIdentifiers": [ + { + "value": "BPNL00000007RVTB", + "key": "manufacturerId" + }, + { + "value": "XYZ78901", + "key": "manufacturerPartId" + }, + { + "value": "CTA-13123", + "key": "partInstanceId" + } + ], "partTypeInformation": { "classification": "component", "manufacturerPartId": "XYZ78901", @@ -1979,6 +2095,16 @@ "value": "XYZ78901", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "KLZ-90-8564-96", @@ -2190,9 +2316,23 @@ { "name": "SerialPart", "data": { + "localIdentifiers": [ + { + "value": "BPNL00000007RVTB", + "key": "manufacturerId" + }, + { + "value": "XYZ78901", + "key": "manufacturerPartId" + }, + { + "value": "KLZ-90-8564-96", + "key": "partInstanceId" + } + ], "partTypeInformation": { "classification": "product", - "manufacturerPartId": "677-4.456-3434-K", + "manufacturerPartId": "XYZ78901", "nameAtManufacturer": "NMC111 Cathode" }, "validityPeriod": { @@ -2214,6 +2354,16 @@ "value": "XYZ78901", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "SNJ-4654-76", @@ -2374,6 +2524,16 @@ "value": "XYZ78901", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "ABC123", @@ -2413,6 +2573,16 @@ "value": "XYZ78901", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "SN12345678", @@ -2728,6 +2898,16 @@ "value": "MFG024", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "PRT-30001", @@ -2765,6 +2945,20 @@ { "name": "SerialPart", "data": { + "localIdentifiers": [ + { + "value": "BPNL00000007RVTB", + "key": "manufacturerId" + }, + { + "value": "MFG024", + "key": "manufacturerPartId" + }, + { + "value": "PRT-30001", + "key": "partInstanceId" + } + ], "partTypeInformation": { "classification": "product", "manufacturerPartId": "MFG024", @@ -3084,6 +3278,16 @@ "value": "GR08-T789", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "manufacturerPartId", "value": "GP67890", @@ -3362,6 +3566,20 @@ { "name": "SerialPart", "data": { + "localIdentifiers": [ + { + "value": "BPNL00000007RVTB", + "key": "manufacturerId" + }, + { + "value": "GP67890", + "key": "manufacturerPartId" + }, + { + "value": "GR08-T789", + "key": "partInstanceId" + } + ], "partTypeInformation": { "classification": "component", "manufacturerPartId": "GP67890", @@ -3386,6 +3604,16 @@ "value": "MAT7814", "allowedBpns": ["BPNL00000007RVTB"] }, + { + "name": "manufacturerId", + "value": "BPNL00000007RVTB", + "allowedBpns": ["BPNL00000007RVTB"] + }, + { + "name": "digitalTwinType", + "value": "PartInstance", + "allowedBpns": ["BPNL00000007RVTB"] + }, { "name": "partInstanceId", "value": "NCM-6789", From c14e994b3818bffe9b9e106e2671534a048bb292 Mon Sep 17 00:00:00 2001 From: Muhammad Saud Khan Date: Thu, 4 Apr 2024 13:15:14 +0200 Subject: [PATCH 2/3] chore(update): updated test script to support edc v0.6.0, fix image path in backend readme --- deployment/local/testing/functions.sh | 83 ++++++++---- .../testing/testdata/testdata-payload.json | 122 +++++++++++++----- .../local/testing/transform-and-upload.sh | 13 +- dpp-backend/digitalproductpass/README.md | 2 +- 4 files changed, 161 insertions(+), 59 deletions(-) diff --git a/deployment/local/testing/functions.sh b/deployment/local/testing/functions.sh index 7439bbf85..86acc9168 100644 --- a/deployment/local/testing/functions.sh +++ b/deployment/local/testing/functions.sh @@ -69,51 +69,60 @@ create_edc_asset () { ASSET_ID=${UUID} payload='{ - "@context": {}, - "asset": { - "@type": "Asset", - "@id": "'${ASSET_ID}'", - "properties": { - "description": "Digital Product Passport (DPP) test data" + "@context": { + "edc": "https://w3id.org/edc/v0.0.1/ns/", + "cx-common": "https://w3id.org/catenax/ontology/common#", + "cx-taxo": "https://w3id.org/catenax/taxonomy#", + "dct": "https://purl.org/dc/terms/" + }, + "@id": "'${ASSET_ID}'", + "properties": { + "type": { + "@id": "Asset" } }, "dataAddress": { "@type": "DataAddress", "type": "HttpData", + "baseUrl": "'${SUBMODEL_SERVER}'", + "proxyQueryParams": "true", "proxyPath": "true", - "proxyBody": "true", "proxyMethod": "true", - "proxyQueryParams": "true", - "baseUrl": "'${SUBMODEL_SERVER}'" + "proxyBody": "true" } }' - HTTP_RESPONSE=$(curl -X POST -s -H 'Content-Type: application/json' --data "${payload}" --header 'X-Api-Key: '${API_KEY} -o /dev/null -w "%{http_code}\n" ${PROVIDER_EDC}/management/v2/assets) + HTTP_RESPONSE=$(curl -X POST -s -H 'Content-Type: application/json' --data "${payload}" --header 'X-Api-Key: '${API_KEY} -o /dev/null -w "%{http_code}\n" ${PROVIDER_EDC}/management/v3/assets) check_status_code "[DPP] - edc asset created with uuid : ${ASSET_ID}" } create_registry_asset () { + PAYLOAD='{ - "@context": {}, - "asset": { - "@type": "data.core.digitalTwinRegistry", - "@id": "'${REGISTRY_ASSET_ID}'", - "properties": { - "type": "data.core.digitalTwinRegistry", - "description": "Digital Twin Registry for DPP", - "contenttype": "application/json" - } + "@context": { + "edc": "https://w3id.org/edc/v0.0.1/ns/", + "cx-common": "https://w3id.org/catenax/ontology/common#", + "cx-taxo": "https://w3id.org/catenax/taxonomy#", + "dct": "https://purl.org/dc/terms/" + }, + "@id": "'${REGISTRY_ASSET_ID}'", + "properties": { + "type": { + "@id": "DigitalTwinRegistry" + }, + "version": "3.0", + "asset:prop:type": "data.core.digitalTwinRegistry" }, "dataAddress": { "@type": "DataAddress", "type": "HttpData", + "baseUrl": "'${REGISTRY_URL}'", + "proxyQueryParams": "true", "proxyPath": "true", - "proxyBody": "true", "proxyMethod": "true", - "proxyQueryParams": "true", - "baseUrl": "'${REGISTRY_URL}'" + "proxyBody": "true" } }' - HTTP_RESPONSE=$(curl -X POST -H 'Content-Type: application/json' -s --data "${PAYLOAD}" --header 'X-Api-Key: '${API_KEY} -o /dev/null -w "%{http_code}\n" ${PROVIDER_EDC}/management/v2/assets) + HTTP_RESPONSE=$(curl -X POST -H 'Content-Type: application/json' -s --data "${PAYLOAD}" --header 'X-Api-Key: '${API_KEY} -o /dev/null -w "%{http_code}\n" ${PROVIDER_EDC}/management/v3/assets) check_status_code "registry asset created with uuid : registry-asset" } @@ -133,6 +142,15 @@ create_default_policy () { check_status_code "policy created with uuid : default-policy" } +create_registry_policy () { + policy=$1 + POLICY_ID=$(echo "${policy}" | jq -r '.["@id"]') + + + HTTP_RESPONSE=$(curl -X POST -H 'Content-Type: application/json' -s --data "${policy}" --header 'X-Api-Key: '${API_KEY} -o /dev/null -w "%{http_code}\n" ${PROVIDER_EDC}/management/v2/policydefinitions) + check_status_code "policy created with uuid : registry-policy" +} + create_edc_policy () { policy=$1 @@ -161,6 +179,25 @@ create_default_contractdefinition () { check_status_code "contract created with uuid : default-contract-definition" } +create_registry_contractdefinition () { + + PAYLOAD='{ + "@context": {}, + "@id": "registry-contract-definition", + "@type": "ContractDefinition", + "accessPolicyId": "registry-policy", + "contractPolicyId": "registry-policy", + "assetsSelector" : { + "@type": "CriterionDto", + "operandLeft": "https://w3id.org/edc/v0.0.1/ns/id", + "operator": "=", + "operandRight": "'${REGISTRY_ASSET_ID}'" + } + }' + HTTP_RESPONSE=$(curl -X POST -H 'Content-Type: application/json' -s --data "${PAYLOAD}" --header 'X-Api-Key: '${API_KEY} -o /dev/null -w "%{http_code}\n" ${PROVIDER_EDC}/management/v2/contractdefinitions) + check_status_code "contract created with uuid : registry-contract-definition" +} + create_contractdefinition () { # since contract id does not support urn:uuid as prefix, generate a new one with the prerfix diff --git a/deployment/local/testing/testdata/testdata-payload.json b/deployment/local/testing/testdata/testdata-payload.json index 1aa6c302d..349158f70 100644 --- a/deployment/local/testing/testdata/testdata-payload.json +++ b/deployment/local/testing/testdata/testdata-payload.json @@ -1,40 +1,100 @@ { - "policies": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" + "policies": [ + { + "@context": { + "tx": "https://w3id.org/tractusx/v0.0.1/ns/", + "odrl": "http://www.w3.org/ns/odrl/2/", + "cx-policy": "https://w3id.org/catenax/policy/" + }, + "@type": "PolicyDefinitionRequestDto", + "@id": "registry-policy", + "profile": "cx-policy:profile2405", + "policy": { + "@type": "Policy", + "@context": "http://www.w3.org/ns/odrl.jsonld", + "odrl:permission": [ + { + "odrl:action": "USE", + "odrl:constraint": { + "@type": "LogicalConstraint", + "odrl:and": [ + { + "@type": "Constraint", + "odrl:leftOperand": "Membership", + "odrl:operator": { + "@id": "odrl:eq" + }, + "odrl:rightOperand": "active" + }, + { + "@type": "Constraint", + "odrl:leftOperand": "BusinessPartnerNumber", + "odrl:operator": { + "@id": "odrl:eq" + }, + "odrl:rightOperand": "BPNL00000007RVTB" + }, + { + "@type": "Constraint", + "odrl:leftOperand": "cx-policy:UsagePurpose", + "odrl:operator": { + "@id": "odrl:eq" + }, + "odrl:rightOperand": "cx.core.digitalTwinRegistry:1" + } + ] + } + } + ] + } }, - "@type": "PolicyDefinitionRequestDto", - "@id": "dpp-policy-id", - "policy": { - "@type": "Policy", - "odrl:permission": [ - { - "odrl:action": "USE", - "odrl:constraint": { - "@type": "AtomicConstraint", - "odrl:or": [ - { - "@type": "Constraint", - "odrl:leftOperand": "Membership", - "odrl:operator": { - "@id": "odrl:eq" + { + "@context": { + "odrl": "http://www.w3.org/ns/odrl/2/", + "cx-policy": "https://w3id.org/catenax/policy/" + }, + "@type": "PolicyDefinitionRequestDto", + "@id": "dpp-policy-id", + "profile": "cx-policy:profile2405", + "policy": { + "@type": "Policy", + "odrl:permission": [ + { + "odrl:action": "USE", + "odrl:constraint": { + "@type": "LogicalConstraint", + "odrl:and": [ + { + "@type": "Constraint", + "odrl:leftOperand": "Membership", + "odrl:operator": { + "@id": "odrl:eq" + }, + "odrl:rightOperand": "active" }, - "odrl:rightOperand": "active" - }, - { - "@type": "Constraint", - "odrl:leftOperand": "FrameworkAgreement.sustainability", - "odrl:operator": { - "@id": "odrl:eq" + { + "@type": "Constraint", + "odrl:leftOperand": "cx-policy:FrameworkAgreement", + "odrl:operator": { + "@id": "odrl:eq" + }, + "odrl:rightOperand": "circulareconomy:1.0" }, - "odrl:rightOperand": "active" - } - ] + { + "@type": "Constraint", + "odrl:leftOperand": "cx-policy:UsagePurpose", + "odrl:operator": { + "@id": "odrl:eq" + }, + "odrl:rightOperand": "cx.circular.dpp:1" + } + ] + } } - } - ] + ] + } } - }, + ], "shells": [ { "catenaXId": "urn:uuid:541ec5a5-9215-12f4-0803-94f456c947df", diff --git a/deployment/local/testing/transform-and-upload.sh b/deployment/local/testing/transform-and-upload.sh index be0dccb3f..be937d91a 100644 --- a/deployment/local/testing/transform-and-upload.sh +++ b/deployment/local/testing/transform-and-upload.sh @@ -58,20 +58,25 @@ export SUBMODEL_ID='' source ./functions.sh -POLICY='' +DATA_POLICY='' +REGISTRY_POLICY='' + +REGISTRY_POLICY=$(jq '.policies[0]' "${datapath}") +DATA_POLICY=$(jq '.policies[1]' "${datapath}") + # create edc assets, policies and contracts for the registry (DTR) echo "Creating default edc assets for the registry asset" create_registry_asset +create_registry_policy "${REGISTRY_POLICY}" +create_registry_contractdefinition create_default_policy create_default_contractdefinition echo -POLICY=$(jq '.policies' "${datapath}") - # create assets for passes echo "Creating edc assets for the passport" create_edc_asset -create_edc_policy "${POLICY}" +create_edc_policy "${DATA_POLICY}" create_contractdefinition echo diff --git a/dpp-backend/digitalproductpass/README.md b/dpp-backend/digitalproductpass/README.md index 7a6f573b5..aa65dd96d 100644 --- a/dpp-backend/digitalproductpass/README.md +++ b/dpp-backend/digitalproductpass/README.md @@ -21,7 +21,7 @@ SPDX-License-Identifier: Apache-2.0 --> -

  Digital Product Pass Backend

+

  Digital Product Pass Backend


From 1c53734caa83a12c4711f43cd6b6a74e510e4a56 Mon Sep 17 00:00:00 2001 From: Muhammad Saud Khan Date: Wed, 17 Apr 2024 11:31:54 +0200 Subject: [PATCH 3/3] chore(update): updated changelog and remove MOCKed jsson data, fixed readme icon --- CHANGELOG.md | 7 + README.md | 2 +- src/assets/MOCK/SNJ-4654-76.json | 304 ------------ src/assets/MOCK/digitalProductPass-2.0.0.json | 456 ------------------ src/assets/MOCK/dpp-materialPass-2.0.0.json | 384 --------------- .../gearDigitalProductPass-v2-refined.json | 413 ---------------- 6 files changed, 8 insertions(+), 1558 deletions(-) delete mode 100644 src/assets/MOCK/SNJ-4654-76.json delete mode 100644 src/assets/MOCK/digitalProductPass-2.0.0.json delete mode 100644 src/assets/MOCK/dpp-materialPass-2.0.0.json delete mode 100644 src/assets/MOCK/gearDigitalProductPass-v2-refined.json diff --git a/CHANGELOG.md b/CHANGELOG.md index f9fa9ba8e..36ef671a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,11 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e ## [Unreleased] +### Added +- Added the following Industry Core changes to the policy and digital twin: + - Added `manufacturerId` and `digitalTwinType` to the specificAssetIds in digital twin registry + - Added localIdentifiers to the SerialPart aspect model + ### Updated - Refactored workflows where required - Moved frontend source files into dpp-frontend directory @@ -37,10 +42,12 @@ The changelog format is based on [Keep a Changelog](https://keepachangelog.com/e - Re-organized directory strcuture for docs and deployment folders - Updated documentation references where required - Updated infrastructure guide +- Updated testdata script to allow EDC constrained policy for the registry ### Deleted - Deleted unused files/directories/docs/images - Removed environment-specific values files from helm charts + - Removed MOCKed json payloads - Removed docker directory diff --git a/README.md b/README.md index 023ef6333..a85b4705e 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ SPDX-License-Identifier: Apache-2.0 --> -

  Digital Product Pass Application

+

  Digital Product Pass Application

[![Contributors][contributors-shield]][contributors-url] [![Stargazers][stars-shield]][stars-url] diff --git a/src/assets/MOCK/SNJ-4654-76.json b/src/assets/MOCK/SNJ-4654-76.json deleted file mode 100644 index b53137b7c..000000000 --- a/src/assets/MOCK/SNJ-4654-76.json +++ /dev/null @@ -1,304 +0,0 @@ -{ - "metadata": { - "contract": { - "@id": "9b3c0977-6b14-4201-bd76-55f681a92872", - "@type": "dcat:Dataset", - "odrl:hasPolicy": { - "@id": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "dcat:distribution": [ - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "HttpProxy" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - }, - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "AmazonS3" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - } - ], - "edc:description": "Battery Passport test data", - "edc:id": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "negotiation": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "@type": "NegotiationInitiateRequestDto", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "protocol": "dataspace-protocol-http", - "connectorId": "BPNL00000000CBA5", - "offer": { - "offerId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "policy": { - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - } - } - }, - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393629505, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:ContractNegotiationDto", - "edc:type": "CONSUMER", - "edc:protocol": "dataspace-protocol-http", - "edc:state": "FINALIZED", - "edc:counterPartyAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "edc:callbackAddresses": [], - "edc:contractAgreementId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - }, - "transfer": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "dataDestination": { - "properties": { - "type": "HttpProxy" - } - }, - "managedResources": false, - "privateProperties": { - "receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18" - }, - "protocol": "dataspace-protocol-http", - "transferType": { - "contentType": "application/octet-stream", - "isFinite": true - } - }, - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393631831, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:TransferProcessDto", - "edc:state": "COMPLETED", - "edc:stateTimestamp": 1688393633142, - "edc:type": "CONSUMER", - "edc:callbackAddresses": [], - "edc:dataDestination": { - "edc:type": "HttpProxy" - }, - "edc:dataRequest": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:DataRequestDto", - "edc:assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "edc:contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390" - }, - "edc:receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - } - }, - "semanticId": "urn:bamm:io.catenax.transmission.transmission_pass:1.0.0#TransmissionPass", - "aspect": { - "productSpecificParameters": { - "torqueConverter": [ - "ABC1234567890", - "XYZ9876543210" - ], - "driveType": "Combustion Engine", - "oilType": "ZF Lifeguard Hybrid 2", - "spreading": 6.79, - "torque": 500.0, - "power": 300.0, - "standardGearRatio": { - "gear": "1", - "ratio": 4.1567 - }, - "oilCapacity": 8.9, - "electricPerformance": [ - "Electric Performance Specification A", - "Electric Performance Specification B" - ], - "speedResistance": { - "speed": 7800, - "gear": "1" - } - }, - "instructions": { - "packagingInstructions": [ - { - "documentTitle": "Packaging Instructions", - "documentLink": "https://www.example.com/packaging-instructions.pdf" - } - ], - "transportationInstructions": [ - { - "documentTitle": "Transportation Instructions", - "documentLink": "https://www.example.com/transportation-instructions.pdf" - } - ], - "dismantlingProcedure": [ - { - "documentTitle": "Dismantling Procedure", - "documentLink": "https://www.example.com/dismantling-procedure.pdf" - } - ], - "safetyMeasures": [ - { - "documentTitle": "Safety Measures", - "documentLink": "https://www.example.com/safety-measures.pdf" - } - ], - "vehicleDismantlingProcedure": [ - { - "documentTitle": "Vehicle Dismantling Procedure", - "documentLink": "https://www.example.com/vehicle-dismantling-procedure.pdf" - } - ] - }, - "identification": { - "manufacturerId": "XYZ78901", - "localIdentifiers": [ - { - "value": "SNJ-4654-76", - "key": "PartInstanceID" - } - ], - "dataMatrixCode": "ABCDEF1234567890" - }, - "sparePartSupplier": [ - { - "supplierContact": { - "faxNumber": "+49 89 0987654321", - "website": "https://www.example-supplier.com", - "phoneNumber": "+49 89 1234567890", - "email": "supplier@example.com" - }, - "supplierId": "BPNL1234567890ZZ", - "sparePartName": "Torque Converter" - } - ], - "stateOfHealth": { - "serviceHistory": [ - "2023-05-22T13:16:47.239+02:00" - ], - "expectedLifespan": 500000, - "remanufacturing": { - "remanufacturingDate": "2023-05-22T13:16:47.239+02:00", - "productStatusValue": "First Life" - } - }, - "generalInformation": { - "additionalInformation": "This is a test product with realistic data.", - "physicalDimensionsProperty": { - "width": 1000.0, - "length": 20000.1, - "weight": 100.7, - "diameter": 0.03, - "height": 0.1 - }, - "warrantyPeriod": 60.0, - "productDescription": "Manual Transmission", - "productType": "8HP60MH" - }, - "sustainability": { - "substancesOfConcern": [ - "Substance A", - "Substance B" - ], - "responsibleSourcingDocument": [ - { - "documentTitle": "Responsible Sourcing Document", - "documentLink": "https://www.example.com/responsible-sourcing.pdf" - } - ], - "recyclateContent": { - "nickel": 0.05, - "lithium": 0.01, - "cobalt": 0.02, - "otherSubstance": [ - { - "substancePercentage": 0.1, - "substanceName": "Lead" - } - ] - }, - "criticalRawMaterials": [ - "Material X", - "Material Y" - ], - "carbonFootprint": { - "crossSectoralStandardsUsed": [ - { - "crossSectoralStandard": "GHG Protocol Product Standard" - } - ], - "co2FootprintTotal": 200.0, - "productOrSectorSpecificRules": [ - { - "operator": "PEF", - "ruleNames": "ABC 2021", - "otherOperatorName": "NSF" - } - ] - } - } - } -} diff --git a/src/assets/MOCK/digitalProductPass-2.0.0.json b/src/assets/MOCK/digitalProductPass-2.0.0.json deleted file mode 100644 index 11b895012..000000000 --- a/src/assets/MOCK/digitalProductPass-2.0.0.json +++ /dev/null @@ -1,456 +0,0 @@ -{ - "metadata": { - "contract": { - "@id": "9b3c0977-6b14-4201-bd76-55f681a92872", - "@type": "dcat:Dataset", - "odrl:hasPolicy": { - "@id": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "dcat:distribution": [ - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "HttpProxy" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - }, - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "AmazonS3" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - } - ], - "edc:description": "Battery Passport test data", - "edc:id": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "negotiation": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "@type": "NegotiationInitiateRequestDto", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "protocol": "dataspace-protocol-http", - "connectorId": "BPNL00000000CBA5", - "offer": { - "offerId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "policy": { - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - } - } - }, - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393629505, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:ContractNegotiationDto", - "edc:type": "CONSUMER", - "edc:protocol": "dataspace-protocol-http", - "edc:state": "FINALIZED", - "edc:counterPartyAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "edc:callbackAddresses": [], - "edc:contractAgreementId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - }, - "transfer": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "dataDestination": { - "properties": { - "type": "HttpProxy" - } - }, - "managedResources": false, - "privateProperties": { - "receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18" - }, - "protocol": "dataspace-protocol-http", - "transferType": { - "contentType": "application/octet-stream", - "isFinite": true - } - }, - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393631831, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:TransferProcessDto", - "edc:state": "COMPLETED", - "edc:stateTimestamp": 1688393633142, - "edc:type": "CONSUMER", - "edc:callbackAddresses": [], - "edc:dataDestination": { - "edc:type": "HttpProxy" - }, - "edc:dataRequest": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:DataRequestDto", - "edc:assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "edc:contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390" - }, - "edc:receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - } - }, - "semanticId": "general", - "aspect": { - "typology": { - "shortName": "8HP60", - "class": { - "definition": "Manual transmission (motor vehicle)", - "code": "44-09-02-02" - }, - "longName": "Product Description long text" - }, - "metadata": { - "predecessor": "null", - "issueDate": "2000-01-01", - "version": "1.0.0", - "economicOperator": { - "legitimization": "DE123456789", - "identification": "BPNL1234567890ZZ" - }, - "status": "draft", - "expirationDate": "2000-01-01" - }, - "characteristics": { - "physicalDimension": { - "grossWeight": { - "value": 20.5, - "unit": "unit:kilogram" - }, - "weightOrVolume": { - "left": { - "value": 20.5, - "unit": "unit:cubicMetre" - } - }, - "diameter": { - "value": 20.5, - "unit": "unit:millimetre" - }, - "grossVolume": { - "value": 20.5, - "unit": "unit:cubicMetre" - }, - "width": { - "value": 20.5, - "unit": "unit:millimetre" - }, - "length": { - "value": 20.5, - "unit": "unit:millimetre" - }, - "height": { - "value": 20.5, - "unit": "unit:millimetre" - } - }, - "lifespan": [ - { - "value": 36, - "unit": "unit:day", - "key": "guaranteed lifetime" - } - ], - "physicalState": "solid" - }, - "commercial": { - "placedOnMarket": "2000-01-01" - }, - "identification": { - "localIdentifier": { - "value": "PRT-30001", - "key": "PartInstanceId" - }, - "additionalCode": [ - { - "value": "8703 24 10 00", - "key": "TARIC" - }, - { - "value": "MFG024", - "key": "manufacturerPartId" - } - ], - "dataCarrier": { - "carrierType": "QR", - "carrierLayout": "upper-left side" - } - }, - "sources": [ - { - "header": "Sustainability Document Material XY", - "category": "Product Specifications", - "type": "URL", - "content": "www.alink.pdf" - } - ], - "handling": { - "spareParts": { - "left": { - "producer": [ - { - "id": "BPNL1234567890ZZ" - } - ], - "part": [ - { - "name": "Aluminum Housing", - "gtin": "12345678" - } - ] - } - }, - "substanceOfConcern": { - "left": [ - { - "name": { - "name": "phenolphthalein", - "type": "IUPAC" - }, - "location": "Housing", - "unit": "unit:partPerMillion", - "concentration": { - "left": [ - { - "max": 2.6, - "min": 2.1 - } - ] - }, - "exemption": "shall not apply to product x containing not more than 1,5 ml of liquid", - "id": [ - { - "type": "CAS", - "id": "201-004-7" - } - ] - } - ] - } - }, - "additionalData": [ - { - "description": "This is the machine parameters that are produced when the machine is used", - "label": "Specific Manufacturer Machine Parameters", - "type": { - "typeUnit": null, - "dataType": "object" - }, - "children": [ - { - "description": "The usage of the eletricity in the machine", - "label": "Eletricity Usage", - "type": { - "typeUnit": "unit:volts", - "dataType": "integer" - }, - "data": "25" - }, - { - "description": "The name of the machine that produced the product", - "label": "Machine Name", - "type": { - "typeUnit": null, - "dataType": "string" - }, - "data": "Laser Machine MX-421W" - }, - { - "description": "The list of products the machine can produce", - "label": "Product Names", - "type": { - "typeUnit": null, - "dataType": "array" - }, - "data": [ - "Tranmissions", - "Batteries", - "Seats", - "Doors" - ] - } - ] - }, - { - "description": "This are the properties of interest", - "label": "Properties of Interest", - "type": { - "typeUnit": null, - "dataType": "object" - }, - "children": [ - { - "description": "This are the main properties of interest", - "label": "Main Properties", - "type": { - "typeUnit": null, - "dataType": "object" - }, - "children": [ - { - "description": "This is the Normal temperature of production", - "label": "Normal Temperature", - "type": { - "typeUnit": "unit:celcius", - "dataType": "float" - }, - "data": 62.7 - }, - { - "description": "This is the minimmum temperature of production", - "label": "Minimum Temperature", - "type": { - "typeUnit": "unit:celcius", - "dataType": "float" - }, - "data": -80.68 - }, - { - "description": "This is the maximum temperature of production", - "label": "Maximum Temperature", - "type": { - "typeUnit": "unit:celcius", - "dataType": "float" - }, - "data": 800.85 - } - ] - } - ] - } - ], - "sustainability": { - "PEF": { - "carbon": [ - { - "lifecycle": "main product production", - "rulebook": "https://www.alink.pdf/", - "unit": "kg CO2 eq", - "type": "Climate Change Total", - "value": 12.678 - } - ], - "carbon2": { - "lifecycle": "main product production", - "rulebook": "https://www.alink.pdf/", - "unit": "kg CO2 eq", - "type": "Climate Change Total", - "value": 12.678 - }, - "environmental": [ - { - "lifecycle": "main product production", - "rulebook": "https://www.alink.pdf/", - "unit": "kg CO2 eq", - "type": "Climate Change Total", - "value": 72.678 - } - ] - }, - "state": "first life", - "material": { - "left": [ - { - "name": { - "name": "phenolphthalein", - "type": "IUPAC" - }, - "unit": "unit:partPerMillion", - "recycled": false, - "id": [ - { - "type": "CAS", - "id": "201-004-7" - } - ], - "value": 5, - "renewable": true - } - ] - }, - "critical": { - "left": [ - "eOMtThyhVNLWUZNRcBaQKxI" - ] - } - }, - "operation": { - "importer": { - "left": { - "eori": "GB123456789000", - "id": "BPNL1234567890ZZ" - } - }, - "manufacturer": { - "facility": "BPNS1234567890ZZ", - "manufacturingDate": "2000-01-31", - "manufacturer": "BPNL1234567890ZZ" - } - } - } -} \ No newline at end of file diff --git a/src/assets/MOCK/dpp-materialPass-2.0.0.json b/src/assets/MOCK/dpp-materialPass-2.0.0.json deleted file mode 100644 index 85806b2df..000000000 --- a/src/assets/MOCK/dpp-materialPass-2.0.0.json +++ /dev/null @@ -1,384 +0,0 @@ -{ - "metadata": { - "contract": { - "@id": "9b3c0977-6b14-4201-bd76-55f681a92872", - "@type": "dcat:Dataset", - "odrl:hasPolicy": { - "@id": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "dcat:distribution": [ - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "HttpProxy" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - }, - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "AmazonS3" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - } - ], - "edc:description": "Battery Passport test data", - "edc:id": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "negotiation": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "@type": "NegotiationInitiateRequestDto", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "protocol": "dataspace-protocol-http", - "connectorId": "BPNL00000000CBA5", - "offer": { - "offerId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "policy": { - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - } - } - }, - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393629505, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:ContractNegotiationDto", - "edc:type": "CONSUMER", - "edc:protocol": "dataspace-protocol-http", - "edc:state": "FINALIZED", - "edc:counterPartyAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "edc:callbackAddresses": [], - "edc:contractAgreementId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - }, - "transfer": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "dataDestination": { - "properties": { - "type": "HttpProxy" - } - }, - "managedResources": false, - "privateProperties": { - "receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18" - }, - "protocol": "dataspace-protocol-http", - "transferType": { - "contentType": "application/octet-stream", - "isFinite": true - } - }, - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393631831, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:TransferProcessDto", - "edc:state": "COMPLETED", - "edc:stateTimestamp": 1688393633142, - "edc:type": "CONSUMER", - "edc:callbackAddresses": [], - "edc:dataDestination": { - "edc:type": "HttpProxy" - }, - "edc:dataRequest": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:DataRequestDto", - "edc:assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "edc:contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390" - }, - "edc:receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - } - }, - "semanticId": "general", - "aspect": { - "typology": { - "shortName": "NCM", - "class": { - "definition": "Material", - "code": "42-542-542" - }, - "longName": "Nickel-Cobalt-Manganese Cathode Material" - }, - "metadata": { - "predecessor": null, - "issueDate": "2024-01-23", - "version": "1.0.0", - "economicOperator": { - "legitimization": "DE123456789", - "identification": "BPNL1234567890ZZ" - }, - "status": "Approved", - "expirationDate": "2025-01-23" - }, - "characteristics": { - "physicalDimension": { - "grossWeight": { - "value": 33.7, - "unit": "unit:kilogram" - }, - "grossVolume": { - "value": 6.74, - "unit": "unit:liter" - } - }, - "lifespan": [ - { - "value": 10, - "unit": "unit:year", - "key": "guaranteed lifetime" - } - ], - "physicalState": "liquid" - }, - "commercial": { - "placedOnMarket": "1945-02-12" - }, - "identification": { - "localIdentifier": { - "value": "NCM-6789", - "key": "PartInstanceId" - }, - "additionalCode": [ - { - "value": "8703 24 10 00", - "key": "TARIC" - }, - { - "value": "MAT7814", - "key": "manufacturerPartId" - } - ], - "dataCarrier": { - "carrierType": "QR", - "carrierLayout": "safety instruction in top right corner" - } - }, - "sources": [ - { - "header": "Sustainability Document for Materials", - "category": "Product Specifications", - "type": "URL", - "content": "www.examplelink.pdf" - }, - { - "header": "Sustainability Document for Nickel-Cobalt-Manganese", - "category": "Product Specifications", - "type": "URL", - "content": "www.alink.pdf" - }, - { - "header": "Safety Intructions for Nickel-Cobalt-Manganese", - "category": "Safety", - "type": "URL", - "content": "www.alink.pdf" - }, - { - "header": "Reclycling Guide for Cathode Materials", - "category": "Reclycling Instructions", - "type": "URL", - "content": "www.alink.pdf" - } - ], - "handling": { - "spareParts": { - "left": { - "producer": [ - { - "id": "BPNL00000000CBA5" - } - ], - "part": [] - } - }, - "substanceOfConcern": { - "left": [ - { - "name": { - "name": "Nickel", - "type": "Ni-TYPE-7890" - }, - "location": "Material", - "unit": "unit:kilogram", - "concentration": { - "left": [ - { - "max": 1.5, - "min": 2.0 - } - ] - }, - "exemption": "Shall not apply to battery packs containing not more than 1,5 ml of liquid", - "id": [ - { - "type": "CAS", - "id": "7440-02-0" - } - ] - } - ] - } - }, - "additionalData": [], - "sustainability": { - "PEF": { - "carbon": [ - { - "lifecycle": "main product production", - "rulebook": "https://www.alink.pdf/", - "unit": "kg CO2 eq", - "type": "Climate Change Total", - "value": 5.421 - } - ], - "environmental": [ - { - "lifecycle": "main product production", - "rulebook": "https://www.alink.pdf/", - "unit": "kg CO2 eq", - "type": "Climate Change Total", - "value": 12.678 - } - ] - }, - "state": "second life", - "material": { - "left": [ - { - "name": { - "name": "Nickel", - "type": "Ni" - }, - "unit": "unit:massPercentage", - "recycled": false, - "id": [ - { - "type": "CAS", - "id": "7440-02-0" - } - ], - "value": 60, - "renewable": true - }, - { - "name": { - "name": "Cobalt", - "type": "Co" - }, - "unit": "unit:massPercentage", - "recycled": false, - "id": [ - { - "type": "CAS", - "id": "7440-48-4" - } - ], - "value": 15, - "renewable": true - }, - { - "name": { - "name": "Cobalt", - "type": "Co" - }, - "unit": "unit:massPercentage", - "recycled": false, - "id": [ - { - "type": "CAS", - "id": "7439-96-5" - } - ], - "value": 12, - "renewable": true - } - ] - }, - "critical": { - "left": [ - "Ni", - "Co", - "Mn" - ] - } - }, - "operation": { - "importer": { - "left": { - "eori": "GB123456789000", - "id": "BPNL12345566212" - } - }, - "manufacturer": { - "facility": "BPNS120120015AS", - "manufacturingDate": "2023-12-25", - "manufacturer": "BPNL000000000000" - } - } - } -} diff --git a/src/assets/MOCK/gearDigitalProductPass-v2-refined.json b/src/assets/MOCK/gearDigitalProductPass-v2-refined.json deleted file mode 100644 index e06e25440..000000000 --- a/src/assets/MOCK/gearDigitalProductPass-v2-refined.json +++ /dev/null @@ -1,413 +0,0 @@ -{ - "metadata": { - "contract": { - "@id": "9b3c0977-6b14-4201-bd76-55f681a92872", - "@type": "dcat:Dataset", - "odrl:hasPolicy": { - "@id": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "dcat:distribution": [ - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "HttpProxy" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - }, - { - "@type": "dcat:Distribution", - "dct:format": { - "@id": "AmazonS3" - }, - "dcat:accessService": "1795254a-e354-46c7-9d88-04608b05ca9f" - } - ], - "edc:description": "Battery Passport test data", - "edc:id": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - }, - "negotiation": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "@type": "NegotiationInitiateRequestDto", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "protocol": "dataspace-protocol-http", - "connectorId": "BPNL00000000CBA5", - "offer": { - "offerId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:dc616f20-2781-450a-837a-290d861c8e0a", - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "policy": { - "@type": "odrl:Set", - "odrl:permission": [], - "odrl:prohibition": [], - "odrl:obligation": [], - "odrl:target": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918" - } - } - }, - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393629505, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b8a41089-1eac-462a-b8e8-e40f724b302f", - "@type": "edc:ContractNegotiationDto", - "edc:type": "CONSUMER", - "edc:protocol": "dataspace-protocol-http", - "edc:state": "FINALIZED", - "edc:counterPartyAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "edc:callbackAddresses": [], - "edc:contractAgreementId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - }, - "transfer": { - "init": { - "request": { - "@context": { - "odrl": "http://www.w3.org/ns/odrl/2/" - }, - "assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "connectorAddress": "https://materialpass.dev.demo.catena-x.net/BPNL000000000000/api/v1/dsp", - "contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390", - "dataDestination": { - "properties": { - "type": "HttpProxy" - } - }, - "managedResources": false, - "privateProperties": { - "receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18" - }, - "protocol": "dataspace-protocol-http", - "transferType": { - "contentType": "application/octet-stream", - "isFinite": true - } - }, - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:IdResponseDto", - "edc:createdAt": 1688393631831, - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - }, - "get": { - "response": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:TransferProcessDto", - "edc:state": "COMPLETED", - "edc:stateTimestamp": 1688393633142, - "edc:type": "CONSUMER", - "edc:callbackAddresses": [], - "edc:dataDestination": { - "edc:type": "HttpProxy" - }, - "edc:dataRequest": { - "@id": "b9ab18f2-b624-4e2c-a922-c2e727467bb2", - "@type": "edc:DataRequestDto", - "edc:assetId": "365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918", - "edc:contractId": "3:365e6fbe-bb34-11ec-8422-0242ac120002-61125dc3-5e6f-4f4b-838d-447432b97918:102bae7a-22de-44b2-9ed5-ca5f62023390" - }, - "edc:receiverHttpEndpoint": "https://materialpass.dev.demo.catena-x.net/endpoint/bb8d235e-96c1-4fa3-a9ea-2ec71255ed18", - "@context": { - "dct": "https://purl.org/dc/terms/", - "tx": "https://w3id.org/tractusx/v0.0.1/ns/", - "edc": "https://w3id.org/edc/v0.0.1/ns/", - "dcat": "https://www.w3.org/ns/dcat/", - "odrl": "http://www.w3.org/ns/odrl/2/", - "dspace": "https://w3id.org/dspace/v0.8/" - } - } - } - } - }, - "semanticId": "general", - "aspect": { - "typology": { - "shortName": "Performance Gear", - "class": { - "definition": "Gear", - "code": "42-03-02-01" - }, - "longName": "High-performance gear for automotive applications" - }, - "metadata": { - "predecessor": null, - "issueDate": "2023-08-30", - "version": "2.1.6", - "economicOperator": { - "legitimization": "DE987654321000", - "identification": "BPNL1R2S3T4U5V6W" - }, - "status": "Approved", - "expirationDate": "2023-08-30" - }, - "characteristics": { - "physicalDimension": { - "grossWeight": { - "value": 50.5, - "unit": "unit:kilogram" - }, - "width": { - "value": 200.0, - "unit": "unit:millimetre" - }, - "length": { - "value": 300.0, - "unit": "unit:millimetre" - }, - "height": { - "value": 150.0, - "unit": "unit:millimetre" - } - }, - "lifespan": [ - { - "value": 36, - "unit": "unit:day", - "key": "guaranteed lifetime" - } - ], - "physicalState": "solid" - }, - "commercial": { - "placedOnMarket": "2023-08-30" - }, - "identification": { - "localIdentifier": { - "value": "GR08-T789", - "key": "PartInstanceId" - }, - "additionalCode": [ - { - "value": "8483 30 10 00", - "key": "TARIC" - }, - { - "value": "GP67890", - "key": "manufacturerPartId" - } - ], - "dataCarrier": { - "carrierType": "QR", - "carrierLayout": "upper-left side" - } - }, - "sources": [ - { - "header": "Safety Datasheet for Gear Set", - "category": "Safety", - "type": "link", - "content": "www.example.com/gear_safety_datasheet.pdf" - }, - { - "header": "User Manual for Gear Set", - "category": "User Manual", - "type": "link", - "content": "www.example.com/gear_user_manual.pdf" - } - ], - "handling": { - "spareParts": { - "left": { - "producer": [ - { - "id": "BPNL1R2S3T4U5V6W" - } - ], - "part": [ - { - "name": "Aluminum Housing", - "gtin": "12345678" - } - ] - } - }, - "substanceOfConcern": { - "left": [ - { - "name": { - "name": "phenolphthalein", - "type": "IUPAC" - }, - "location": "Housing", - "unit": "unit:partPerMillion", - "concentration": { - "left": [ - { - "max": 2.6, - "min": 2.1 - } - ] - }, - "exemption": "shall not apply to product x containing not more than 1,5 ml of liquid", - "id": [ - { - "type": "CAS", - "id": "201-004-7" - } - ] - } - ] - } - }, - "additionalData": [ - { - "description": "Machine parameters related to gear production", - "label": "Machine Parameters", - "type": { - "typeUnit": null, - "dataType": "object" - }, - "children": [ - { - "description": "Gear cutting speed in rotations per minute", - "label": "Cutting Speed", - "type": { - "typeUnit": "unit:rpm", - "dataType": "integer" - }, - "data": 1500 - }, - { - "description": "Machine model used for gear production", - "label": "Machine Model", - "type": { - "typeUnit": null, - "dataType": "string" - }, - "data": "GearMaster G550" - }, - { - "description": "List of gear types produced by the machine", - "label": "Gear Types", - "type": { - "typeUnit": null, - "dataType": "array" - }, - "data": [ - "Spur Gears", - "Helical Gears", - "Bevel Gears", - "Worm Gears" - ] - } - ] - }, - { - "description": "Gear material properties", - "label": "Material Properties", - "type": { - "typeUnit": null, - "dataType": "object" - }, - "children": [ - { - "description": "Material hardness measured in Rockwell C scale", - "label": "Hardness", - "type": { - "typeUnit": null, - "dataType": "float" - }, - "data": 55.3 - }, - { - "description": "Material strength measured in megapascals", - "label": "Strength", - "type": { - "typeUnit": "unit:MPa", - "dataType": "float" - }, - "data": 800.5 - } - ] - } - ], - "sustainability": { - "PEF": { - "carbon": [ - { - "lifecycle": "main product production", - "rulebook": "ISO 14067", - "unit": "kg CO2 eq", - "type": "ISO 14067", - "value": 2.5 - } - ], - "carbon2": null, - "environmental": null - }, - "state": "first life", - "material": { - "left": [ - { - "name": "Steel Alloy", - "unit": "unit:partPerMillion", - "recycled": false, - "renewable": false, - "percentage": 95.0 - }, - { - "name": "Aluminum Alloy", - "unit": "unit:partPerMillion", - "recycled": false, - "renewable": false, - "percentage": 46.0 - } - ] - }, - "critical": { - "left": [ - "Steel" - ] - } - }, - "operation": { - "importer": { - "left": { - "eori": "DE987654321000", - "id": "BPNL1R2S3T4U5V6W" - } - }, - "manufacturer": { - "facility": "BPNS4B5C6D7E8F9G", - "manufacturingDate": "2023-08-30T14:30:00", - "manufacturer": "BPNL1R2S3T4U5V6W" - } - } - } -}