From 5fae431488f58062987fc3050a99df24a0a383e8 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 7 Jun 2024 13:43:39 +0200 Subject: [PATCH] fix context in credentials --- .../credentials/course-credential.json | 132 ++++++++-------- .../credentials/e-operator-claim.json | 124 +++++++-------- .../credentials/federation-membership.json | 146 +++++++++--------- .../credentials/financial-vulnerability.json | 4 +- .../credentials/membership-card.json | 4 +- 5 files changed, 205 insertions(+), 205 deletions(-) diff --git a/idhub/templates/credentials/course-credential.json b/idhub/templates/credentials/course-credential.json index e7ac036..3475727 100644 --- a/idhub/templates/credentials/course-credential.json +++ b/idhub/templates/credentials/course-credential.json @@ -1,71 +1,71 @@ { - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - "https://idhub.pangea.org/credentials/course-credential/v1" - ], - "id": "{{ vc_id }}", - "type": [ - "VerifiableCredential", - "VerifiableAttestation", - "CourseCredential" - ], - "issuer": { - "id": "{{ issuer_did }}", - "name": "{{ organisation }}" + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://idhub.pangea.org/context/base.jsonld", + "https://idhub.pangea.org/context/course-credential.jsonld" + ], + "id": "{{ vc_id }}", + "type": [ + "VerifiableCredential", + "VerifiableAttestation", + "CourseCredential" + ], + "issuer": { + "id": "{{ issuer_did }}", + "name": "{{ organisation }}" + }, + "issuanceDate": "{{ issuance_date }}", + "validFrom": "{{ issuance_date }}", + "validUntil": "{{ validUntil }}", + "name": [ + { + "value": "NGO Course Credential for participants", + "lang": "en" }, - "issuanceDate": "{{ issuance_date }}", - "validFrom": "{{ issuance_date }}", - "validUntil": "{{ validUntil }}", - "name": [ - { - "value": "NGO Course Credential for participants", - "lang": "en" - }, - { - "value": "Credencial per participants d'un curs impartit per una ONG", - "lang": "ca_ES" - }, - { - "value": "Credencial para participantes de un curso impartido por una ONG", - "lang": "es" - } - ], - "description": [ - { - "value": "A NGO Course Credential Schema awarded by a NGO federation and their NGO members, as proposed by Lafede.cat", - "lang": "en" - } - ], - "credentialSubject": { - "id": "{{ subject_did }}", - "firstName": "{{ firstName }}", - "lastName": "{{ lastName }}", - "email": "{{ email }}", - "personalIdentifier": "{{ personalIdentifier }}", - "issuedDate": "{{ issuedDate }}", - "modeOfInstruction": "{{ modeOfInstruction }}", - "courseDuration": "{{ courseDuration }}", - "courseDays": "{{ courseDays }}", - "courseName": "{{ courseName }}", - "courseDescription": "{{ courseDescription }}", - "gradingScheme": "{{ gradingScheme }}", - "scoreAwarded": "{{ scoreAwarded }}", - "qualificationAwarded": "{{ qualificationAwarded }}", - "courseLevel": "{{ courseLevel }}", - "courseFramework": "{{ courseFramework }}", - "courseCredits": "{{ courseCredits }}", - "dateOfAssessment": "{{ dateOfAssessment }}", - "evidenceAssessment": "{{ evidenceAssessment }}" + { + "value": "Credencial per participants d'un curs impartit per una ONG", + "lang": "ca_ES" }, - "credentialStatus": { - "id": "{{ credential_status_id}}", - "type": "RevocationBitmap2022", - "revocationBitmapIndex": "{{ id_credential }}" - }, - "credentialSchema": { - "id": "https://idhub.pangea.org/vc_schemas/course-credential.json", - "type": "FullJsonSchemaValidator2021" + { + "value": "Credencial para participantes de un curso impartido por una ONG", + "lang": "es" } - } + ], + "description": [ + { + "value": "A NGO Course Credential Schema awarded by a NGO federation and their NGO members, as proposed by Lafede.cat", + "lang": "en" + } + ], + "credentialSubject": { + "id": "{{ subject_did }}", + "firstName": "{{ firstName }}", + "lastName": "{{ lastName }}", + "email": "{{ email }}", + "personalIdentifier": "{{ personalIdentifier }}", + "issuedDate": "{{ issuedDate }}", + "modeOfInstruction": "{{ modeOfInstruction }}", + "courseDuration": "{{ courseDuration }}", + "courseDays": "{{ courseDays }}", + "courseName": "{{ courseName }}", + "courseDescription": "{{ courseDescription }}", + "gradingScheme": "{{ gradingScheme }}", + "scoreAwarded": "{{ scoreAwarded }}", + "qualificationAwarded": "{{ qualificationAwarded }}", + "courseLevel": "{{ courseLevel }}", + "courseFramework": "{{ courseFramework }}", + "courseCredits": "{{ courseCredits }}", + "dateOfAssessment": "{{ dateOfAssessment }}", + "evidenceAssessment": "{{ evidenceAssessment }}" + }, + "credentialStatus": { + "id": "{{ credential_status_id}}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, + "credentialSchema": { + "id": "https://idhub.pangea.org/vc_schemas/course-credential.json", + "type": "FullJsonSchemaValidator2021" + } +} diff --git a/idhub/templates/credentials/e-operator-claim.json b/idhub/templates/credentials/e-operator-claim.json index 71c46f5..9b4496d 100644 --- a/idhub/templates/credentials/e-operator-claim.json +++ b/idhub/templates/credentials/e-operator-claim.json @@ -1,67 +1,67 @@ { - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - "https://idhub.pangea.org/credentials/e-operator-claim/v1" - ], - "id": "{{ vc_id }}", - "type": [ - "VerifiableCredential", - "VerifiableAttestation", - "EOperatorClaim" - ], - "issuer": { - "id": "{{ issuer_did }}", - "name": "{{ organisation }}" + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://idhub.pangea.org/context/base.jsonld", + "https://idhub.pangea.org/context/e-operator-claim.jsonld" + ], + "id": "{{ vc_id }}", + "type": [ + "VerifiableCredential", + "VerifiableAttestation", + "EOperatorClaim" + ], + "issuer": { + "id": "{{ issuer_did }}", + "name": "{{ organisation }}" + }, + "issuanceDate": "{{ issuance_date }}", + "validFrom": "{{ issuance_date }}", + "validUntil": "{{ validUntil }}", + "name": [ + { + "value": "Product and waste electronics operator claim", + "lang": "en" }, - "issuanceDate": "{{ issuance_date }}", - "validFrom": "{{ issuance_date }}", - "validUntil": "{{ validUntil }}", - "name": [ - { - "value": "Product and waste electronics operator claim", - "lang": "en" - }, - { - "value": "Declaració d'operador de productes i residus electrònics", - "lang": "ca_ES" - }, - { - "value": "Declaración de operador de productos y residuos electrónicos", - "lang": "es" - } - ], - "description": [ - { - "value": "Credential for e-product and e-waste operator claim", - "lang": "en" - }, - { - "value": "Credencial per operador de productes i residus electrònics", - "lang": "ca_ES" - }, - { - "value": "Credencial para operador de productos y residuos electrónicos", - "lang": "es" - } - ], - "credentialSubject": { - "id": "{{ subject_did }}", - "legalName": "{{ legalName }}", - "accreditedBy": "{{ accreditedBy }}", - "operatorNumber": "{{ operatorNumber }}", - "limitJurisdiction": "{{ limitJurisdiction }}", - "accreditedFor": "{{ accreditedFor }}", - "role": "{{ role }}", - "email": "{{ email }}" + { + "value": "Declaració d'operador de productes i residus electrònics", + "lang": "ca_ES" }, - "credentialStatus": { - "id": "{{ credential_status_id}}", - "type": "RevocationBitmap2022", - "revocationBitmapIndex": "{{ id_credential }}" - }, - "credentialSchema": { - "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", - "type": "FullJsonSchemaValidator2021" + { + "value": "Declaración de operador de productos y residuos electrónicos", + "lang": "es" } + ], + "description": [ + { + "value": "Credential for e-product and e-waste operator claim", + "lang": "en" + }, + { + "value": "Credencial per operador de productes i residus electrònics", + "lang": "ca_ES" + }, + { + "value": "Credencial para operador de productos y residuos electrónicos", + "lang": "es" + } + ], + "credentialSubject": { + "id": "{{ subject_did }}", + "legalName": "{{ legalName }}", + "accreditedBy": "{{ accreditedBy }}", + "operatorNumber": "{{ operatorNumber }}", + "limitJurisdiction": "{{ limitJurisdiction }}", + "accreditedFor": "{{ accreditedFor }}", + "role": "{{ role }}", + "email": "{{ email }}" + }, + "credentialStatus": { + "id": "{{ credential_status_id}}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, + "credentialSchema": { + "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", + "type": "FullJsonSchemaValidator2021" } +} diff --git a/idhub/templates/credentials/federation-membership.json b/idhub/templates/credentials/federation-membership.json index 9a382a1..b2ecb8b 100644 --- a/idhub/templates/credentials/federation-membership.json +++ b/idhub/templates/credentials/federation-membership.json @@ -1,78 +1,78 @@ { - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - "https://idhub.pangea.org/credentials/federation-membership/v1" - ], - "id": "{{ vc_id }}", - "type": [ - "VerifiableCredential", - "VerifiableAttestation", - "FederationMembership" - ], - "issuer": { - "id": "{{ issuer_did }}", - "name": "{{ organisation }}" + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://idhub.pangea.org/context/base.jsonld", + "https://idhub.pangea.org/context/federation-membership.jsonld" + ], + "id": "{{ vc_id }}", + "type": [ + "VerifiableCredential", + "VerifiableAttestation", + "FederationMembership" + ], + "issuer": { + "id": "{{ issuer_did }}", + "name": "{{ organisation }}" + }, + "issuanceDate": "{{ issuance_date }}", + "validFrom": "{{ issuance_date }}", + "validUntil": "{{ validUntil }}", + "name": [ + { + "value": "NGO federation membership attestation credential", + "lang": "en" }, - "issuanceDate": "{{ issuance_date }}", - "validFrom": "{{ issuance_date }}", - "validUntil": "{{ validUntil }}", - "name": [ - { - "value": "NGO federation membership attestation credential", - "lang": "en" - }, - { - "value": "Credencial d'atestat de pertinença a federació d'ONG", - "lang": "ca_ES" - }, - { - "value": "Credencial de atestado de membresía de Federación de ONG", - "lang": "es" - } - ], - "description": [ - { - "value": "Credential for NGOs that are members of a NGO federation", - "lang": "en" - }, - { - "value": "Credencial para ONG que son miembros de una federación de ONG", - "lang": "es" - }, - { - "value": "Credencial per a les ONG que són membres d'una federació d'ONG", - "lang": "ca_ES" - } - ], - "credentialSubject": { - "id": "{{ subject_did }}", - "federation": "{{ federation }}", - "legalName": "{{ legalName }}", - "shortName": "{{ shortName }}", - "registrationIdentifier": "{{ registrationIdentifier }}", - "publicRegistry": "{{ publicRegistry }}", - "streetAddress": "{{ streetAddress }}", - "postCode": "{{ postCode }}", - "city": "{{ city }}", - "taxReference": "{{ taxReference }}", - "membershipType": "{{ membershipType }}", - "membershipStatus": "{{ membershipStatus }}", - "membershipId": "{{ membershipId }}", - "membershipSince": "{{ membershipSince }}", - "email": "{{ email }}", - "phone": "{{ phone }}", - "website": "{{ website }}", - "evidence": "{{ evidence }}", - "certificationDate": "{{ certificationDate }}" + { + "value": "Credencial d'atestat de pertinença a federació d'ONG", + "lang": "ca_ES" }, - "credentialStatus": { - "id": "{{ credential_status_id}}", - "type": "RevocationBitmap2022", - "revocationBitmapIndex": "{{ id_credential }}" - }, - "credentialSchema": { - "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", - "type": "FullJsonSchemaValidator2021" + { + "value": "Credencial de atestado de membresía de Federación de ONG", + "lang": "es" } + ], + "description": [ + { + "value": "Credential for NGOs that are members of a NGO federation", + "lang": "en" + }, + { + "value": "Credencial para ONG que son miembros de una federación de ONG", + "lang": "es" + }, + { + "value": "Credencial per a les ONG que són membres d'una federació d'ONG", + "lang": "ca_ES" + } + ], + "credentialSubject": { + "id": "{{ subject_did }}", + "federation": "{{ federation }}", + "legalName": "{{ legalName }}", + "shortName": "{{ shortName }}", + "registrationIdentifier": "{{ registrationIdentifier }}", + "publicRegistry": "{{ publicRegistry }}", + "streetAddress": "{{ streetAddress }}", + "postCode": "{{ postCode }}", + "city": "{{ city }}", + "taxReference": "{{ taxReference }}", + "membershipType": "{{ membershipType }}", + "membershipStatus": "{{ membershipStatus }}", + "membershipId": "{{ membershipId }}", + "membershipSince": "{{ membershipSince }}", + "email": "{{ email }}", + "phone": "{{ phone }}", + "website": "{{ website }}", + "evidence": "{{ evidence }}", + "certificationDate": "{{ certificationDate }}" + }, + "credentialStatus": { + "id": "{{ credential_status_id}}", + "type": "RevocationBitmap2022", + "revocationBitmapIndex": "{{ id_credential }}" + }, + "credentialSchema": { + "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", + "type": "FullJsonSchemaValidator2021" } +} diff --git a/idhub/templates/credentials/financial-vulnerability.json b/idhub/templates/credentials/financial-vulnerability.json index cfe2495..14a74ca 100644 --- a/idhub/templates/credentials/financial-vulnerability.json +++ b/idhub/templates/credentials/financial-vulnerability.json @@ -1,8 +1,8 @@ { "@context": [ "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - "https://idhub.pangea.org/credentials/financial-vulnerability/v1" + "https://idhub.pangea.org/context/base.jsonld", + "https://idhub.pangea.org/context/financial-vulnerability.jsonld" ], "id": "{{ vc_id }}", "type": [ diff --git a/idhub/templates/credentials/membership-card.json b/idhub/templates/credentials/membership-card.json index 0ded5f5..896b50c 100644 --- a/idhub/templates/credentials/membership-card.json +++ b/idhub/templates/credentials/membership-card.json @@ -1,8 +1,8 @@ { "@context": [ "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - "https://idhub.pangea.org/credentials/membership-card/v1" + "https://idhub.pangea.org/context/base.jsonld", + "https://idhub.pangea.org/context/membership-card.jsonld" ], "type": [ "VerifiableCredential",