From 0d140f5cccdb67b36e11ee67d789f4f8e09c1f24 Mon Sep 17 00:00:00 2001 From: Daniel Armengod Date: Thu, 1 Feb 2024 21:36:51 +0100 Subject: [PATCH] In preparation to make schemas (and templates) a git submodule --- vc_templates/base--data.json | 14 --- vc_templates/course-credential--data.json | 21 ----- vc_templates/course-credential.json | 78 ---------------- vc_templates/federation-membership--data.json | 12 --- vc_templates/federation-membership.json | 91 ------------------- .../financial-vulnerability--data.json | 17 ---- vc_templates/financial-vulnerability.json | 69 -------------- vc_templates/membership-card--data.json | 15 --- vc_templates/membership-card.json | 67 -------------- 9 files changed, 384 deletions(-) delete mode 100644 vc_templates/base--data.json delete mode 100644 vc_templates/course-credential--data.json delete mode 100644 vc_templates/course-credential.json delete mode 100644 vc_templates/federation-membership--data.json delete mode 100644 vc_templates/federation-membership.json delete mode 100644 vc_templates/financial-vulnerability--data.json delete mode 100644 vc_templates/financial-vulnerability.json delete mode 100644 vc_templates/membership-card--data.json delete mode 100644 vc_templates/membership-card.json diff --git a/vc_templates/base--data.json b/vc_templates/base--data.json deleted file mode 100644 index 6e6ffae..0000000 --- a/vc_templates/base--data.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "id": "https://idhub.pangea.org/credentials/987654321", - "issuer": { - "id": "did:example:5678", - "name": "Pangea Internet Solidari" - }, - "issuanceDate": "2023-12-06T19:23:24Z", - "issued": "2023-12-06T19:23:24Z", - "validFrom": "2023-12-06T19:23:24Z", - "validUntil": "2024-12-06T19:23:24Z", - "credentialSubject": { - "id": "did:example:1234" - } -} \ No newline at end of file diff --git a/vc_templates/course-credential--data.json b/vc_templates/course-credential--data.json deleted file mode 100644 index 866f30c..0000000 --- a/vc_templates/course-credential--data.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "credentialSubject": { - "firstName": "Joan", - "lastName": "Martí", - "personalIdentifier": "12345678A", - "issuedDate": "2023-12-13", - "modeOfInstruction": "online", - "courseDuration": 40, - "courseDays": 2, - "courseName": "Conflict Resolution Training", - "courseDescription": "This course provides an in-depth understanding of conflict resolution techniques and strategies.", - "gradingScheme": "pass/fail", - "scoreAwarded": 8, - "qualificationAwarded": "A", - "courseLevel": "intermediate", - "courseFramework": "placeholder course framework", - "courseCredits": 2, - "dateOfAssessment": "2023-12-15", - "evidenceAssessment": "final exam" - } -} \ No newline at end of file diff --git a/vc_templates/course-credential.json b/vc_templates/course-credential.json deleted file mode 100644 index 6d309e9..0000000 --- a/vc_templates/course-credential.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - { - "firstName": "https://idhub.pangea.org/context/#firstName", - "lastName": "https://idhub.pangea.org/context/#lastName", - "personalIdentifier": "https://idhub.pangea.org/context/#personalIdentifier", - "issuedDate": "https://idhub.pangea.org/context/#issuedDate", - "modeOfInstruction": "https://idhub.pangea.org/context/#modeOfInstruction", - "courseDuration": "https://idhub.pangea.org/context/#courseDuration", - "courseDays": "https://idhub.pangea.org/context/#courseDays", - "courseName": "https://idhub.pangea.org/context/#courseName", - "courseDescription": "https://idhub.pangea.org/context/#courseDescription", - "gradingScheme": "https://idhub.pangea.org/context/#gradingScheme", - "scoreAwarded": "https://idhub.pangea.org/context/#scoreAwarded", - "qualificationAwarded": "https://idhub.pangea.org/context/#qualificationAwarded", - "courseLevel": "https://idhub.pangea.org/context/#courseLevel", - "courseFramework": "https://idhub.pangea.org/context/#courseFramework", - "courseCredits": "https://idhub.pangea.org/context/#courseCredits", - "dateOfAssessment": "https://idhub.pangea.org/context/#dateOfAssessment", - "evidenceAssessment": "https://idhub.pangea.org/context/#evidenceAssessment" - } - ], - "id": "[[PLACEHOLDER]]", - "type": [ - "VerifiableCredential", - "VerifiableAttestation", - "CourseCredential" - ], - "issuer": { - "id": "[[PLACEHOLDER]]", - "name": "[[PLACEHOLDER]]" - }, - "issuanceDate": "[[PLACEHOLDER]]", - "validFrom": "[[PLACEHOLDER]]", - "validUntil": "[[PLACEHOLDER]]", - "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": "A NGO Course Credential Schema awarded by a NGO federation and their NGO members, as proposed by Lafede.cat", - "credentialSubject": { - "id": "[[PLACEHOLDER]]", - "firstName": "[[PLACEHOLDER]]", - "lastName": "[[PLACEHOLDER]]", - "personalIdentifier": "[[PLACEHOLDER]]", - "issuedDate": "[[PLACEHOLDER]]", - "modeOfInstruction": "[[PLACEHOLDER]]", - "courseDuration": "[[PLACEHOLDER]]", - "courseDays": "[[PLACEHOLDER]]", - "courseName": "[[PLACEHOLDER]]", - "courseDescription": "[[PLACEHOLDER]]", - "gradingScheme": "[[PLACEHOLDER]]", - "scoreAwarded": "[[PLACEHOLDER]]", - "qualificationAwarded": "[[PLACEHOLDER]]", - "courseLevel": "[[PLACEHOLDER]]", - "courseFramework": "[[PLACEHOLDER]]", - "courseCredits": "[[PLACEHOLDER]]", - "dateOfAssessment": "[[PLACEHOLDER]]", - "evidenceAssessment": "[[PLACEHOLDER]]" - }, - "credentialSchema": { - "id": "https://idhub.pangea.org/vc_schemas/course-credential.json", - "type": "FullJsonSchemaValidator2021" - } - } - \ No newline at end of file diff --git a/vc_templates/federation-membership--data.json b/vc_templates/federation-membership--data.json deleted file mode 100644 index b51e00b..0000000 --- a/vc_templates/federation-membership--data.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "credentialSubject": { - "federation": "Lafede.cat – Federació d’Organitzacions per a la Justícia global", - "legalName": "EDUALTER – EDUCACIÓ ALTERNATIVA", - "postCode": "08001", - "city": "Barcelona", - "membershipType": "full", - "membershipStatus": "active", - "membershipSince": "2022-01-01", - "certificationDate": "2021-12-13" - } -} \ No newline at end of file diff --git a/vc_templates/federation-membership.json b/vc_templates/federation-membership.json deleted file mode 100644 index 0660117..0000000 --- a/vc_templates/federation-membership.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - { - "federation": "https://idhub.pangea.org/context/#federation", - "legalName": "https://idhub.pangea.org/context/#legalName", - "shortName": "https://idhub.pangea.org/context/#shortName", - "registrationIdentifier": "https://idhub.pangea.org/context/#registrationIdentifier", - "publicRegistry": "https://idhub.pangea.org/context/#publicRegistry", - "streetAddress": "https://idhub.pangea.org/context/#streetAddress", - "postCode": "https://idhub.pangea.org/context/#postCode", - "city": "https://idhub.pangea.org/context/#city", - "taxReference": "https://idhub.pangea.org/context/#taxReference", - "membershipType": "https://idhub.pangea.org/context/#membershipType", - "membershipStatus": "https://idhub.pangea.org/context/#membershipStatus", - "membershipId": "https://idhub.pangea.org/context/#membershipId", - "membershipSince": "https://idhub.pangea.org/context/#membershipSince", - "email": "https://idhub.pangea.org/context/#email", - "phone": "https://idhub.pangea.org/context/#phone", - "website": "https://idhub.pangea.org/context/#website", - "evidence": "https://idhub.pangea.org/context/#evidence", - "certificationDate": "https://idhub.pangea.org/context/#certificationDate" - } - ], - "id": "[[PLACEHOLDER]]", - "type": [ - "VerifiableCredential", - "VerifiableAttestation", - "FederationMembership" - ], - "issuer": { - "id": "[[PLACEHOLDER]]", - "name": "[[PLACEHOLDER]]" - }, - "issuanceDate": "[[PLACEHOLDER]]", - "validFrom": "[[PLACEHOLDER]]", - "validUntil": "[[PLACEHOLDER]]", - "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" - }, - { - "value": "Credencial per a les ONG que són membres d'una federació d'ONG", - "lang": "es" - } - ], - "credentialSubject": { - "id": "[[PLACEHOLDER]]", - "federation": "[[PLACEHOLDER]]", - "legalName": "[[PLACEHOLDER]]", - "shortName": "[[PLACEHOLDER]]", - "registrationIdentifier": "[[PLACEHOLDER]]", - "publicRegistry": "[[PLACEHOLDER]]", - "streetAddress": "[[PLACEHOLDER]]", - "postCode": "[[PLACEHOLDER]]", - "city": "[[PLACEHOLDER]]", - "taxReference": "[[PLACEHOLDER]]", - "membershipType": "[[PLACEHOLDER]]", - "membershipStatus": "[[PLACEHOLDER]]", - "membershipId": "[[PLACEHOLDER]]", - "membershipSince": "[[PLACEHOLDER]]", - "email": "[[PLACEHOLDER]]", - "phone": "[[PLACEHOLDER]]", - "website": "[[PLACEHOLDER]]", - "evidence": "[[PLACEHOLDER]]", - "certificationDate": "[[PLACEHOLDER]]" - }, - "credentialSchema": { - "id": "https://idhub.pangea.org/vc_schemas/federation-membership.json", - "type": "FullJsonSchemaValidator2021" - } - } \ No newline at end of file diff --git a/vc_templates/financial-vulnerability--data.json b/vc_templates/financial-vulnerability--data.json deleted file mode 100644 index f18af67..0000000 --- a/vc_templates/financial-vulnerability--data.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "credentialSubject": { - "firstName": "Joan", - "lastName": "Pera", - "email": "joan.pera@pangea.org", - "phoneNumber": "1234567890", - "identityDocType": "DNI", - "identityNumber": "12345678A", - "streetAddress": "Tallers 19 2-1 Barcelona", - "socialWorkerName": "Mireia", - "socialWorkerSurname": "Pujol", - "financialVulnerabilityScore": "5", - "amountCoveredByOtherAids": "20", - "connectivityOptionList": "fibre, mobile", - "assessmentDate": "2023-12-06" - } -} \ No newline at end of file diff --git a/vc_templates/financial-vulnerability.json b/vc_templates/financial-vulnerability.json deleted file mode 100644 index 35751c3..0000000 --- a/vc_templates/financial-vulnerability.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - "https://idhub.pangea.org/credentials/financial-vulnerability/v1" - ], - "id": "[[PLACEHOLDER]]", - "type": [ - "VerifiableCredential", - "VerifiableAttestation", - "FinancialVulnerabilityCredential" - ], - "issuer": { - "id": "[[PLACEHOLDER]]", - "name": "[[PLACEHOLDER]]" - }, - "issuanceDate": "[[PLACEHOLDER]]", - "issued": "[[PLACEHOLDER]]", - "validFrom": "[[PLACEHOLDER]]", - "validUntil": "[[PLACEHOLDER]]", - "name": [ - { - "value": "Financial Vulnerability Credential", - "lang": "en" - }, - { - "value": "Credencial de Vulnerabilitat Financera", - "lang": "ca_ES" - }, - { - "value": "Credencial de Vulnerabilidad Financiera", - "lang": "es" - } - ], - "description": [ - { - "value": "The Financial Vulnerability Credential is issued to individuals or families to prove their financial vulnerability based on various factors, with the objective of presenting it to a third party to receive benefits or services.", - "lang": "en" - }, - { - "value": "La Credencial de Vulnerabilitat Financera és emesa a persones o famílies per acreditar la seva vulnerabilitat financera sobre la base de diversos factors, amb l'objectiu que la presentin a una tercera part per rebre beneficis o serveis.", - "lang": "ca_ES" - }, - { - "value": "La Credencial de Vulnerabilidad Financiera es emitida a personas o familias para acreditar su vulnerabilidad financiera con base en diversos factores, con el objetivo de que la presenten a una tercera parte para recibir beneficios o servicios.", - "lang": "es" - } - ], - "credentialSubject": { - "id": "[[PLACEHOLDER]]", - "firstName": "[[PLACEHOLDER]]", - "lastName": "[[PLACEHOLDER]]", - "email": "[[PLACEHOLDER]]", - "identityDocType": "[[PLACEHOLDER]]", - "identityNumber": "[[PLACEHOLDER]]", - "phoneNumber": "[[PLACEHOLDER]]", - "streetAddress": "[[PLACEHOLDER]]", - "socialWorkerName": "[[PLACEHOLDER]]", - "socialWorkerSurname": "[[PLACEHOLDER]]", - "financialVulnerabilityScore": "[[PLACEHOLDER]]", - "amountCoveredByOtherAids": "[[PLACEHOLDER]]", - "connectivityOptionList": "[[PLACEHOLDER]]", - "assessmentDate": "[[PLACEHOLDER]]" - }, - "credentialSchema": { - "id": "https://idhub.pangea.org/vc_schemas/financial-vulnerability.json", - "type": "FullJsonSchemaValidator2021" - } -} \ No newline at end of file diff --git a/vc_templates/membership-card--data.json b/vc_templates/membership-card--data.json deleted file mode 100644 index 8f4247a..0000000 --- a/vc_templates/membership-card--data.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "credentialSubject": { - "firstName": "Joan", - "lastName": "Pera", - "email": "joan.pera@pangea.org", - "typeOfPerson": "natural", - "identityDocType": "DNI", - "identityNumber": "12345678A", - "organisation": "Pangea", - "membershipType": "individual", - "membershipId": "123456", - "affiliatedSince": "2023-01-01T00:00:00Z", - "affiliatedUntil": "2024-01-01T00:00:00Z" - } -} \ No newline at end of file diff --git a/vc_templates/membership-card.json b/vc_templates/membership-card.json deleted file mode 100644 index e3d1c15..0000000 --- a/vc_templates/membership-card.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "@context": [ - "https://www.w3.org/2018/credentials/v1", - "https://idhub.pangea.org/credentials/base/v1", - "https://idhub.pangea.org/credentials/membership-card/v1" - ], - "type": [ - "VerifiableCredential", - "VerifiableAttestation", - "MembershipCard" - ], - "id": "[[PLACEHOLDER]]", - "issuer": { - "id": "[[PLACEHOLDER]]", - "name": "[[PLACEHOLDER]]" - }, - "issuanceDate": "[[PLACEHOLDER]]", - "issued": "[[PLACEHOLDER]]", - "validFrom": "[[PLACEHOLDER]]", - "validUntil": "[[PLACEHOLDER]]", - "name": [ - { - "value": "Membership Card", - "lang": "en" - }, - { - "value": "Carnet de soci/a", - "lang": "ca_ES" - }, - { - "value": "Carnet de socio/a", - "lang": "es" - } - ], - "description": [ - { - "value": "The membership card specifies an individual's subscription or enrollment in specific services or benefits issued by an organization.", - "lang": "en" - }, - { - "value": "El carnet de soci especifica la subscripció o la inscripció d'un individu en serveis o beneficis específics emesos per una organització.", - "lang": "ca_ES" - }, - { - "value": "El carnet de socio especifica la suscripción o inscripción de un individuo en servicios o beneficios específicos emitidos por uns organización.", - "lang": "es" - } - ], - "credentialSubject": { - "id": "[[PLACEHOLDER]]", - "firstName": "[[PLACEHOLDER]]", - "lastName": "[[PLACEHOLDER]]", - "email": "[[PLACEHOLDER]]", - "typeOfPerson": "[[PLACEHOLDER]]", - "identityDocType": "[[PLACEHOLDER]]", - "identityNumber": "[[PLACEHOLDER]]", - "organisation": "[[PLACEHOLDER]]", - "membershipType": "[[PLACEHOLDER]]", - "membershipId": "[[PLACEHOLDER]]", - "affiliatedSince": "[[PLACEHOLDER]]", - "affiliatedUntil": "[[PLACEHOLDER]]" - }, - "credentialSchema": { - "id": "https://idhub.pangea.org/vc_schemas/membership-card.json", - "type": "FullJsonSchemaValidator2021" - } -} \ No newline at end of file