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.

Introduction

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.

Relationship to ISO/IEC 18013-5

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.

Use Cases and Requirements

The following use cases outline a number of key scenarios that readers might find useful:

Example

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"
    }
  }
}
        

Namespaces

This specification makes use of the following namespaces:

vdl
https://w3id.org/vdl#
cred
https://www.w3.org/2018/credentials#
sch
https://schema.org/
dc
http://purl.org/dc/terms/
owl
http://www.w3.org/2002/07/owl#
rdf
http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs
http://www.w3.org/2000/01/rdf-schema#
xsd
http://www.w3.org/2001/XMLSchema#

@context files

The following @context files make use of the terms defined in this specification:

The Verifiable Driver's License Core Vocabulary

This 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.

        
Overview diagram of the vocabulary.
Boxes represent RDFS classes. Labeled lines represent properties that connect classes. See the mermaid source of the image for a textual representation of the diagram.

Property definitions

The following are property definitions in the vdl namespace.

license

Driver's license

The driver's license held by a licensed driver.

This property appears as the "driversLicense" term in the JSON-LD context file.

Domain:
LicensedDriver
Range:
Iso18013DriversLicense
Relevant @context:
https://w3id.org/vdl/v2

familyName

Family name

Last name, surname, or primary identifier, of the licence holder.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

givenName

Given names

First name(s), other name(s), or secondary identifier, of the licence holder.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

birthDate

Date of birth

Day, month, year on which the licence holder was born. If unknown, approximate.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:dateTime
Relevant @context:
https://w3id.org/vdl/v2

issueDate

Date of Issue

Date licence document was issued.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:dateTime
Relevant @context:
https://w3id.org/vdl/v2

expiryDate

Date of Expiry

Date licence document expires.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:dateTime
Relevant @context:
https://w3id.org/vdl/v2

issuingCountry

Issuing country

Country code as alpha 2 code, defined in ISO 3166-1, which issued the mDL or within which the licensing authority is located.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

issuingAuthority

Issuing authority

Name of licensing authority, or issuing country if separate licensing authorities have not been authorized.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

documentNumber

Licence number

The number assigned or calculated by the issuing authority.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

administrativeNumber

Administrative number

An audit control number assigned by the licensing authority.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

drivingPrivileges

Categories of vehicles/restrictions/conditions

Driving privileges the licence holder is authorized to drive. It consists of category issue date, expiry date, restriction/condition sign code, restriction/condition sign and restriction/condition value.

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.

Domain:
Iso18013DriversLicense
Range:
rdf:JSON
Relevant @context:
https://w3id.org/vdl/v2

unDistinguishingSign

UN distinguishing sign

Distinguishing sign of the issuing country according to ISO/IEC 18013-1 Annex F. This field is added for purposes of the UN conventions on driving licences.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

sex

Sex

Licence holder’s sex using values as defined in ISO/IEC 5218.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:unsignedInt
Relevant @context:
https://w3id.org/vdl/v2

height

Height (cm)

A Licence holder’s height in centimetres.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:unsignedInt
Relevant @context:
https://w3id.org/vdl/v2

weight

Weight (kg)

A Licence holder’s weight in kilograms.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:unsignedInt
Relevant @context:
https://w3id.org/vdl/v2

eyeColour

Eye colour

Licence holder’s eye colour: black, blue, brown, dichromatic, grey, green, hazel, maroon, pink or unknown.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

hairColour

Hair colour

Licence holder’s hair colour: bald, black, blond, brown, grey, red, auburn, sandy, white or unknown.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

birthPlace

Place of birth

Country and municipality or state/province where the licence holder was born.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

residentAddress

Permanent place of residence

The place where the licence holder resides and/or may be contacted (street/house number, municipality etc.)

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

portrait

Portrait of mDL Holder

A reproduction of the licence holder’s portrait. The value is a URL, such as a data: URL that encodes the image.

The property's value should be a URL, i.e., not a literal.

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.

Domain:
Iso18013DriversLicense
Relevant @context:
https://w3id.org/vdl/v2

portraitCaptureDate

Portrait image timestamp

Date when picture was taken.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:dateTime
Relevant @context:
https://w3id.org/vdl/v2

ageInYears

Age attestation: How old are you (in years)?

The age of the mDL Holder.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:unsignedInt
Relevant @context:
https://w3id.org/vdl/v2

ageOver18

Age attestation: Nearest “true” attestation above 18.

Is the holder over 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.

Domain:
Iso18013DriversLicense
Range:
xsd:boolean
Relevant @context:
https://w3id.org/vdl/v2

ageOver21

Age attestation: Nearest “true” attestation above 21.

Is the holder over 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.

Domain:
Iso18013DriversLicense
Range:
xsd:boolean
Relevant @context:
https://w3id.org/vdl/v2

ageOver25

Age attestation: Nearest “true” attestation above 25.

Is the holder over 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.

Domain:
Iso18013DriversLicense
Range:
xsd:boolean
Relevant @context:
https://w3id.org/vdl/v2

ageOver62

Age attestation: Nearest “true” attestation above 62.

Is the holder over 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.

Domain:
Iso18013DriversLicense
Range:
xsd:boolean
Relevant @context:
https://w3id.org/vdl/v2

ageOver65

Age attestation: Nearest “true” attestation above 65.

Is the holder over 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.

Domain:
Iso18013DriversLicense
Range:
xsd:boolean
Relevant @context:
https://w3id.org/vdl/v2

ageBirthYear

Age attestation: In what year were you born?

The year when the mDL Holder was 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.

Domain:
Iso18013DriversLicense
Range:
xsd:unsignedInt
Relevant @context:
https://w3id.org/vdl/v2

issuingJurisdiction

Issuing jurisdiction

Country subdivision code as defined in clause 8, ISO 3166-2. The first part of the code shall be the same as the value for issuing_country. This element is intended to be used in cases where the issuing jurisdiction is different from the issuing authority.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

nationality

Nationality

Nationality of the mDL Holder as two letter country code (alpha-2 code) defined in ISO 3166-1.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

residentCity

Resident city

The city where the mDL Holder lives.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

residentCountry

Resident country

The country where the mDL Holder lives.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

residentState

Resident state/province/district

The state/province/district where the mDL Holder lives.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

residentPostalCode

Resident postal code

The postal code of the mDL Holder.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

familyNameNationalCharacter

Family name of holder in full UTF-8 character set

The family name of the mDL Holder in their national characters.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

givenNameNationalCharacter

Given name of holder in full UTF-8 character set

The given name of the mDL Holder in their national characters.

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.

Domain:
Iso18013DriversLicense
Range:
xsd:string
Relevant @context:
https://w3id.org/vdl/v2

signatureUsualMark

Signature / usual mark

Image of the signature or usual mark of the mDL Holder. The value is a URL, such as a data: URL that encodes the image.

The property's value should be a URL, i.e., not a literal.

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.

Domain:
Iso18013DriversLicense
Relevant @context:
https://w3id.org/vdl/v2

terseStatusListBaseUrl

Terse Status List Base URL

The base URL location of a status list.

The property's value should be a URL, i.e., not a literal.
Domain:
TerseBitstringStatusListEntry
Relevant @context:
https://w3id.org/vdl/v2

terseStatusListIndex

Terse Status List Index

An index within a status list.
Domain:
TerseBitstringStatusListEntry
Range:
xsd:integer
Relevant @context:
https://w3id.org/vdl/v2

name

Name

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.

Relevant @context:
https://w3id.org/vdl/v2

description

Description

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.

Relevant @context:
https://w3id.org/vdl/v2

image

Image

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.

Relevant @context:
https://w3id.org/vdl/v2

url

URL

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.

Relevant @context:
https://w3id.org/vdl/v2

Class definitions

The following are class definitions in the vdl namespace.

Iso18013DriversLicenseCredential

ISO 18013 driver's license credential

A verifiable credential whose subject holds a driver's license that follows the ISO/IEC 18013-5 mDL data model.
Subclass of:
cred:VerifiableCredential
Relevant @context:
https://w3id.org/vdl/v2

LicensedDriver

Licensed driver

A person who holds a driver's license. Use the driversLicense property to express the license.
Domain of:
license
Relevant @context:
https://w3id.org/vdl/v2

Iso18013DriversLicense

ISO 18013 driver's license

A driver's license expressed using the ISO/IEC 18013-5 mDL data elements.
Range of:
license
Domain of:
familyName, 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
Relevant @context:
https://w3id.org/vdl/v2

OpticalBarcodeCredential

Optical barcode credential

A verifiable credential that secures data in an optical barcode, such as the PDF417 barcode on a physical driver's license.
Subclass of:
cred:VerifiableCredential
Relevant @context:
https://w3id.org/vdl/v2

TerseBitstringStatusListEntry

Terse bitstring status list entry

A compact status entry that uses a Bitstring Status List. The status list URL is derived from a base URL and an index.
Subclass of:
cred:CredentialStatus
Domain of:
terseStatusListBaseUrl, terseStatusListIndex
Relevant @context:
https://w3id.org/vdl/v2

The Verifiable Driver's License AAMVA Vocabulary

The 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.