This specification describes a vocabulary for expressing a Verifiable Driver's License. The vocabulary uses the data element names and meanings of the ISO/IEC 18013-5 mobile driver's license (mDL) data model.
Alternate versions of the vocabulary definition exist in Turtle and JSON-LD.
This vocabulary is in production use. The California Department of Motor
Vehicles (CA DMV) uses it to express the digital driver's license in the CA DMV
App. The CA DMV OpenCred
verifier accepts credentials of type
Iso18013DriversLicenseCredential. The CA DMV
mDL
for Technology Developers page describes OpenCred.
Comments are welcome as GitHub issues.
This specification describes a vocabulary for expressing a Verifiable Driver's License. The vocabulary uses the data element names and meanings of the ISO/IEC 18013-5 mobile driver's license (mDL) data model.
The core properties use the data element identifiers of the ISO/IEC 18013-5
org.iso.18013.5.1 namespace, such as family_name and
birth_date. Each property has the same meaning as the ISO data
element with the same identifier.
ISO/IEC 18013-5 defines the mdoc format, which handles how mDL data is sent and secured. This vocabulary does not replace that format. It expresses the same data elements in a W3C verifiable credential, which a verifiable credential securing mechanism then protects.
Some value encodings differ from the mdoc encodings. Dates use
xsd:dateTime values. The portrait and the signature or usual mark
use URLs, such as data: URLs. The vocabulary defines age
attestations only for the ages 18, 21, 25, 62, and 65. It does not define the
biometric_template_xx data elements.
The following use cases outline a number of key scenarios that readers might find useful:
The following example shows a driver's license expressed as a verifiable credential. It uses this vocabulary and the AAMVA vocabulary.
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://w3id.org/vdl/v2",
"https://w3id.org/vdl/aamva/v1"
],
"type": [
"VerifiableCredential",
"Iso18013DriversLicenseCredential"
],
"issuer": {
"id": "did:key:z6MkjxvA4FNrQUhr8f7xhdQuP1VPzErkcnfxsRaU5oFgy2E5",
"name": "Utopia Department of Motor Vehicles",
"url": "https://dmv.utopia.example/",
"image": "https://dmv.utopia.example/logo.png"
},
"issuanceDate": "2023-11-15T10:00:00-07:00",
"expirationDate": "2028-11-15T12:00:00-06:00",
"name": "Utopia Driver's License",
"image": "data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUg...kSuQmCC",
"description": "A license granting driving privileges in Utopia.",
"credentialSubject": {
"id": "did:example:12347abcd",
"type": "LicensedDriver",
"driversLicense": {
"type": "Iso18013DriversLicense",
"document_number": "542426814",
"family_name": "TURNER",
"given_name": "SUSAN",
"portrait": "data:image/jpeg;base64,/9j/4AAQSkZJR...RSClooooP/2Q==",
"birth_date": "1998-08-28T00:00:00Z",
"issue_date": "2023-01-15T10:00:00-07:00",
"expiry_date": "2028-08-27T12:00:00-06:00",
"issuing_country": "UA",
"issuing_authority": "UADMV",
"driving_privileges": [{
"codes": [{"code": "D"}],
"vehicle_category_code": "D",
"issue_date": "2019-01-01",
"expiry_date": "2027-01-01"
},
{
"codes": [{"code": "C"}],
"vehicle_category_code": "C",
"issue_date": "2019-01-01",
"expiry_date": "2027-01-01"
}],
"un_distinguishing_sign": "UTA",
"aamva_aka_suffix": "1ST",
"sex": 2,
"aamva_family_name_truncation": "N",
"aamva_given_name_truncation": "N"
}
}
}
This specification makes use of the following namespaces:
vdlhttps://w3id.org/vdl#credhttps://www.w3.org/2018/credentials#schhttps://schema.org/dchttp://purl.org/dc/terms/owlhttp://www.w3.org/2002/07/owl#rdfhttp://www.w3.org/1999/02/22-rdf-syntax-ns#rdfshttp://www.w3.org/2000/01/rdf-schema#xsdhttp://www.w3.org/2001/XMLSchema#@context filesThe following @context files make use of the terms defined in this specification:
https://w3id.org/vdl/v2
descriptionimagenameurlIso18013DriversLicenseIso18013DriversLicenseCredentialLicensedDriverOpticalBarcodeCredentialTerseBitstringStatusListEntryadministrativeNumberageBirthYearageInYearsageOver18ageOver21ageOver25ageOver62ageOver65birthDatebirthPlacedocumentNumberdrivingPrivilegesexpiryDateeyeColourfamilyNamefamilyNameNationalCharactergivenNamegivenNameNationalCharacterhairColourheightissueDateissuingAuthorityissuingCountryissuingJurisdictionlicensenationalityportraitportraitCaptureDateresidentAddressresidentCityresidentCountryresidentPostalCoderesidentStatesexsignatureUsualMarkterseStatusListBaseUrlterseStatusListIndexunDistinguishingSignweightThis vocabulary assumes all terms specified in the base Verifiable Credentials [[VC-DATA-MODEL]] context. In addition, the following classes and properties express ISO/IEC 18013-5 mDL data.
The following are property definitions in the vdl namespace.
licenseDriver's license
This property appears as the "driversLicense" term in the JSON-LD context file.
LicensedDriverIso18013DriversLicense@context:https://w3id.org/vdl/v2familyNameFamily name
This property is equivalent to the "family_name" property specified by the ISO and AAMVA specifications as well as the "family_name" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2givenNameGiven names
This property is equivalent to the "given_name" property specified by the ISO and AAMVA specifications as well as the "given_name" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2birthDateDate of birth
This property is equivalent to the "birth_date" property specified by the ISO and AAMVA specifications as well as the "birth_date" term in the JSON-LD context file.
Iso18013DriversLicensexsd:dateTime@context:https://w3id.org/vdl/v2issueDateDate of Issue
This property is equivalent to the "issue_date" property specified by the ISO and AAMVA specifications as well as the "issue_date" term in the JSON-LD context file.
Iso18013DriversLicensexsd:dateTime@context:https://w3id.org/vdl/v2expiryDateDate of Expiry
This property is equivalent to the "expiry_date" property specified by the ISO and AAMVA specifications as well as the "expiry_date" term in the JSON-LD context file.
Iso18013DriversLicensexsd:dateTime@context:https://w3id.org/vdl/v2issuingCountryIssuing country
This property is equivalent to the "issuing_country" property specified by the ISO and AAMVA specifications as well as the "issuing_country" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2issuingAuthorityIssuing authority
This property is equivalent to the "issuing_authority" property specified by the ISO and AAMVA specifications as well as the "issuing_authority" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2documentNumberLicence number
This property is equivalent to the "document_number" property specified by the ISO and AAMVA specifications as well as the "document_number" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2administrativeNumberAdministrative number
This property is equivalent to the "administrative_number" property specified by the ISO and AAMVA specifications as well as the "administrative_number" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2drivingPrivilegesCategories of vehicles/restrictions/conditions
This property is equivalent to the "driving_privileges" property specified by the ISO and AAMVA specifications as well as the "driving_privileges" term in the JSON-LD context file.
Iso18013DriversLicenserdf:JSON@context:https://w3id.org/vdl/v2unDistinguishingSignUN distinguishing sign
This property is equivalent to the "un_distinguishing_sign" property specified by the ISO and AAMVA specifications as well as the "un_distinguishing_sign" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2sexSex
This property is equivalent to the "sex" property specified by the ISO and AAMVA specifications as well as the "sex" term in the JSON-LD context file.
Iso18013DriversLicensexsd:unsignedInt@context:https://w3id.org/vdl/v2heightHeight (cm)
This property is equivalent to the "height" property specified by the ISO and AAMVA specifications as well as the "height" term in the JSON-LD context file.
Iso18013DriversLicensexsd:unsignedInt@context:https://w3id.org/vdl/v2weightWeight (kg)
This property is equivalent to the "weight" property specified by the ISO and AAMVA specifications as well as the "weight" term in the JSON-LD context file.
Iso18013DriversLicensexsd:unsignedInt@context:https://w3id.org/vdl/v2eyeColourEye colour
This property is equivalent to the "eye_colour" property specified by the ISO and AAMVA specifications as well as the "eye_colour" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2hairColourHair colour
This property is equivalent to the "hair_colour" property specified by the ISO and AAMVA specifications as well as the "hair_colour" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2birthPlacePlace of birth
This property is equivalent to the "birth_place" property specified by the ISO and AAMVA specifications as well as the "birth_place" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2residentAddressPermanent place of residence
This property is equivalent to the "resident_address" property specified by the ISO and AAMVA specifications as well as the "resident_address" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2portraitPortrait of mDL Holder
data: URL that encodes the image.This property is equivalent to the "portrait" property specified by the ISO and AAMVA specifications as well as the "portrait" term in the JSON-LD context file.
Iso18013DriversLicense@context:https://w3id.org/vdl/v2portraitCaptureDatePortrait image timestamp
This property is equivalent to the "portrait_capture_date" property specified by the ISO and AAMVA specifications as well as the "portrait_capture_date" term in the JSON-LD context file.
Iso18013DriversLicensexsd:dateTime@context:https://w3id.org/vdl/v2ageInYearsAge attestation: How old are you (in years)?
This property is equivalent to the "age_in_years" property specified by the ISO and AAMVA specifications as well as the "age_in_years" term in the JSON-LD context file.
Iso18013DriversLicensexsd:unsignedInt@context:https://w3id.org/vdl/v2ageOver18Age attestation: Nearest “true” attestation above 18.
This property is equivalent to the "age_over_18" property specified by the ISO and AAMVA specifications as well as the "age_over_18" term in the JSON-LD context file.
Iso18013DriversLicensexsd:boolean@context:https://w3id.org/vdl/v2ageOver21Age attestation: Nearest “true” attestation above 21.
This property is equivalent to the "age_over_21" property specified by the ISO and AAMVA specifications as well as the "age_over_21" term in the JSON-LD context file.
Iso18013DriversLicensexsd:boolean@context:https://w3id.org/vdl/v2ageOver25Age attestation: Nearest “true” attestation above 25.
This property is equivalent to the "age_over_25" property specified by the ISO and AAMVA specifications as well as the "age_over_25" term in the JSON-LD context file.
Iso18013DriversLicensexsd:boolean@context:https://w3id.org/vdl/v2ageOver62Age attestation: Nearest “true” attestation above 62.
This property is equivalent to the "age_over_62" property specified by the ISO and AAMVA specifications as well as the "age_over_62" term in the JSON-LD context file.
Iso18013DriversLicensexsd:boolean@context:https://w3id.org/vdl/v2ageOver65Age attestation: Nearest “true” attestation above 65.
This property is equivalent to the "age_over_65" property specified by the ISO and AAMVA specifications as well as the "age_over_65" term in the JSON-LD context file.
Iso18013DriversLicensexsd:boolean@context:https://w3id.org/vdl/v2ageBirthYearAge attestation: In what year were you born?
This property is equivalent to the "age_birth_year" property specified by the ISO and AAMVA specifications as well as the "age_birth_year" term in the JSON-LD context file.
Iso18013DriversLicensexsd:unsignedInt@context:https://w3id.org/vdl/v2issuingJurisdictionIssuing jurisdiction
This property is equivalent to the "issuing_jurisdiction" property specified by the ISO and AAMVA specifications as well as the "issuing_jurisdiction" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2nationalityNationality
This property is equivalent to the "nationality" property specified by the ISO and AAMVA specifications as well as the "nationality" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2residentCityResident city
This property is equivalent to the "resident_city" property specified by the ISO and AAMVA specifications as well as the "resident_city" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2residentCountryResident country
This property is equivalent to the "resident_country" property specified by the ISO and AAMVA specifications as well as the "resident_country" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2residentStateResident state/province/district
This property is equivalent to the "resident_state" property specified by the ISO and AAMVA specifications as well as the "resident_state" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2residentPostalCodeResident postal code
This property is equivalent to the "resident_postal_code" property specified by the ISO and AAMVA specifications as well as the "resident_postal_code" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2familyNameNationalCharacterFamily name of holder in full UTF-8 character set
This property is equivalent to the "family_name_national_character" property specified by the ISO and AAMVA specifications as well as the "family_name_national_character" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2givenNameNationalCharacterGiven name of holder in full UTF-8 character set
This property is equivalent to the "given_name_national_character" property specified by the ISO and AAMVA specifications as well as the "given_name_national_character" term in the JSON-LD context file.
Iso18013DriversLicensexsd:string@context:https://w3id.org/vdl/v2signatureUsualMarkSignature / usual mark
data: URL that encodes the image.This property is equivalent to the "signature_usual_mark" property specified by the ISO and AAMVA specifications as well as the "signature_usual_mark" term in the JSON-LD context file.
Iso18013DriversLicense@context:https://w3id.org/vdl/v2terseStatusListBaseUrlTerse Status List Base URL
TerseBitstringStatusListEntry@context:https://w3id.org/vdl/v2terseStatusListIndexTerse Status List Index
TerseBitstringStatusListEntryxsd:integer@context:https://w3id.org/vdl/v2nameName
This term is formally defined in another vocabulary (as sch:name), but is frequently used with this vocabulary and has been included to aid readability of this document.
@context:https://w3id.org/vdl/v2descriptionDescription
This term is formally defined in another vocabulary (as sch:description), but is frequently used with this vocabulary and has been included to aid readability of this document.
@context:https://w3id.org/vdl/v2imageImage
The property's value should be a URL, i.e., not a literal.
This term is formally defined in another vocabulary (as sch:image), but is frequently used with this vocabulary and has been included to aid readability of this document.
@context:https://w3id.org/vdl/v2urlURL
The property's value should be a URL, i.e., not a literal.
This term is formally defined in another vocabulary (as sch:url), but is frequently used with this vocabulary and has been included to aid readability of this document.
@context:https://w3id.org/vdl/v2The following are class definitions in the vdl namespace.
Iso18013DriversLicenseCredentialISO 18013 driver's license credential
cred:VerifiableCredential@context:https://w3id.org/vdl/v2LicensedDriverLicensed driver
driversLicense property to express the license.license@context:https://w3id.org/vdl/v2Iso18013DriversLicenseISO 18013 driver's license
licensefamilyName, givenName, birthDate, issueDate, expiryDate, issuingCountry, issuingAuthority, documentNumber, administrativeNumber, drivingPrivileges, unDistinguishingSign, sex, height, weight, eyeColour, hairColour, birthPlace, residentAddress, portrait, portraitCaptureDate, ageInYears, ageOver18, ageOver21, ageOver25, ageOver62, ageOver65, ageBirthYear, issuingJurisdiction, nationality, residentCity, residentCountry, residentState, residentPostalCode, familyNameNationalCharacter, givenNameNationalCharacter, signatureUsualMark@context:https://w3id.org/vdl/v2OpticalBarcodeCredentialOptical barcode credential
cred:VerifiableCredential@context:https://w3id.org/vdl/v2TerseBitstringStatusListEntryTerse bitstring status list entry
cred:CredentialStatusterseStatusListBaseUrl, terseStatusListIndex@context:https://w3id.org/vdl/v2The Verifiable Driver's License AAMVA Vocabulary extends this vocabulary with terms for all data elements defined by the mDL Implementation Guidelines issued by the American Association of Motor Vehicle Administrators (AAMVA). It can be imported as a JSON-LD context behind the URL https://w3id.org/vdl/aamva/v1.
The AAMVA vocabulary matches the data element set in Version 1.2 of the AAMVA mDL Implementation Guidelines, released on 22 November 2022.