From 0c31caef0925a980f6d25a35992b937371fa8d64 Mon Sep 17 00:00:00 2001 From: Jacob Date: Tue, 19 Nov 2024 15:19:36 +0000 Subject: [PATCH] Update w3id-vdl-v1.jsonld The previous version here was an unused early version of the spec, updated to the published version. --- crates/contexts/w3id-vdl-v1.jsonld | 154 ++++++++++++++--------------- 1 file changed, 76 insertions(+), 78 deletions(-) diff --git a/crates/contexts/w3id-vdl-v1.jsonld b/crates/contexts/w3id-vdl-v1.jsonld index 832436cf2..1c0ac2790 100644 --- a/crates/contexts/w3id-vdl-v1.jsonld +++ b/crates/contexts/w3id-vdl-v1.jsonld @@ -3,108 +3,106 @@ "@protected": true, "id": "@id", "type": "@type", - "license": { - "@id": "https://w3id.org/vdl#license", + "name": "https://schema.org/name", + "description": "https://schema.org/description", + "image": { + "@id": "https://schema.org/image", "@type": "@id" }, - "Iso18013DriversLicenseCredential": "https://w3id.org/vdl#Iso18013DriversLicenseCredential", + "url": { + "@id": "https://schema.org/url", + "@type": "@id" + }, + "Iso18013DriversLicenseCredential": + "https://w3id.org/vdl#Iso18013DriversLicenseCredential", + "LicensedDriver": { + "@id": "https://w3id.org/vdl#LicensedDriver", + "@type": "@id", + "@context": { + "@protected": true, + "driversLicense": { + "@id": "https://w3id.org/vdl#license", + "@type": "@id" + } + } + }, "Iso18013DriversLicense": { "@id": "https://w3id.org/vdl#Iso18013DriversLicense", "@context": { "@protected": true, - "id": "@id", - "type": "@type", - "family_name": { - "@id": "https://w3id.org/vdl#family_name" - }, - "given_name": { - "@id": "https://w3id.org/vdl#given_name" + "administrative_number": "https://w3id.org/vdl#administrativeNumber", + "age_birth_year": { + "@id": "https://w3id.org/vdl#ageBirthYear", + "@type": "http://www.w3.org/2001/XMLSchema#unsignedInt" }, + "age_in_years": { + "@id": "https://w3id.org/vdl#ageInYears", + "@type": "http://www.w3.org/2001/XMLSchema#unsignedInt" + }, + "age_over_18": "https://w3id.org/vdl#ageOver18", + "age_over_21": "https://w3id.org/vdl#ageOver21", + "age_over_25": "https://w3id.org/vdl#ageOver25", + "age_over_62": "https://w3id.org/vdl#ageOver62", + "age_over_65": "https://w3id.org/vdl#ageOver65", "birth_date": { - "@id": "https://w3id.org/vdl#birth_date" - }, - "issue_date": { - "@id": "https://w3id.org/vdl#issue_date", + "@id": "https://w3id.org/vdl#birthDate", "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, - "expiry_date": { - "@id": "https://w3id.org/vdl#expiry_date", - "@type": "http://www.w3.org/2001/XMLSchema#dateTime" - }, - "issuing_country": { - "@id": "https://w3id.org/vdl#issuing_country" - }, - "issuing_authority": { - "@id": "https://w3id.org/vdl#issuing_authority" - }, - "document_number": { - "@id": "https://w3id.org/vdl#document_number" - }, - "administrative_number": { - "@id": "https://w3id.org/vdl#administrative_number" - }, + "birth_place": "https://w3id.org/vdl#birthPlace", + "document_number": "https://w3id.org/vdl#documentNumber", "driving_privileges": { - "@id": "https://w3id.org/vdl#driving_privileges", + "@id": "https://w3id.org/vdl#drivingPrivileges", "@type": "@json" }, - "un_distinguishing_sign": { - "@id": "https://w3id.org/vdl#un_distinguishing_sign" - }, - "gender": { - "@id": "https://w3id.org/vdl#gender" + "expiry_date": { + "@id": "https://w3id.org/vdl#expiryDate", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, + "eye_colour": "https://w3id.org/vdl#eyeColour", + "family_name": "https://w3id.org/vdl#familyName", + "family_name_national_character": "https://w3id.org/vdl#familyNameNationalCharacter", + "given_name": "https://w3id.org/vdl#givenName", + "given_name_national_character": "https://w3id.org/vdl#givenNameNationalCharacter", + "hair_colour": "https://w3id.org/vdl#hairColour", "height": { - "@id": "https://w3id.org/vdl#height" - }, - "weight": { - "@id": "https://w3id.org/vdl#weight" - }, - "eye_color": { - "@id": "https://w3id.org/vdl#eye_color" - }, - "hair_color": { - "@id": "https://w3id.org/vdl#hair_color" + "@id": "https://w3id.org/vdl#height", + "@type": "http://www.w3.org/2001/XMLSchema#unsignedInt" }, - "birth_place": { - "@id": "https://w3id.org/vdl#birth_place" - }, - "resident_address": { - "@id": "https://w3id.org/vdl#resident_address" + "issue_date": { + "@id": "https://w3id.org/vdl#issueDate", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, + "issuing_authority": "https://w3id.org/vdl#issuingAuthority", + "issuing_country": "https://w3id.org/vdl#issuingCountry", + "issuing_jurisdiction": "https://w3id.org/vdl#issuingJurisdiction", + "nationality": "https://w3id.org/vdl#nationality", "portrait": { - "@id": "https://w3id.org/vdl#portrait" + "@id": "https://w3id.org/vdl#portrait", + "@type": "@id" }, "portrait_capture_date": { - "@id": "https://w3id.org/vdl#portrait_capture_date" - }, - "age_in_years": { - "@id": "https://w3id.org/vdl#age_in_years" - }, - "age_birth_year": { - "@id": "https://w3id.org/vdl#age_birth_year" - }, - "issuing_jurisdiction": { - "@id": "https://w3id.org/vdl#issuing_jurisdiction" - }, - "nationality": { - "@id": "https://w3id.org/vdl#nationality" - }, - "resident_city": { - "@id": "https://w3id.org/vdl#resident_city" - }, - "resident_state": { - "@id": "https://w3id.org/vdl#resident_state" - }, - "resident_postal_code": { - "@id": "https://w3id.org/vdl#resident_postal_code" + "@id": "https://w3id.org/vdl#portraitCaptureDate", + "@type": "http://www.w3.org/2001/XMLSchema#dateTime" }, - "name_national_character": { - "@id": "https://w3id.org/vdl#name_national_character" + "resident_address": "https://w3id.org/vdl#residentAddress", + "resident_city": "https://w3id.org/vdl#residentCity", + "resident_country": "https://w3id.org/vdl#residentCountry", + "resident_postal_code": "https://w3id.org/vdl#residentPostalCode", + "resident_state": "https://w3id.org/vdl#residentState", + "sex": { + "@id": "https://w3id.org/vdl#sex", + "@type": "http://www.w3.org/2001/XMLSchema#unsignedInt" }, "signature_usual_mark": { - "@id": "https://w3id.org/vdl#signature_usual_mark" + "@id": "https://w3id.org/vdl#signatureUsualMark", + "@type": "@id" + }, + "un_distinguishing_sign": "https://w3id.org/vdl#unDistinguishingSign", + "weight": { + "@id": "https://w3id.org/vdl#weight", + "@type": "http://www.w3.org/2001/XMLSchema#unsignedInt" } } } } -} \ No newline at end of file +}