The example vocabulary is meant to provide a basic example of a yml2vocab vocabulary document.
Alternate versions of the vocabulary definition exist in Turtle and JSON-LD.
This is an experimental vocabulary and is not fit for production usage.
This section provides a few examples of the use of this vocabulary, including how the information can be rendered to a compact QR Code and placed on a sheet of paper.
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://w3id.org/example/v1rc1"
],
"type": [
"VerifiableCredential",
"ExampleClass"
],
"issuer": "https://hospital.example/issuer",
"credentialSubject": {
}
}
This specification makes use of the following namespaces:
examplehttps://w3id.org/example#exhttps://w3id.org/example#schemahttps://schema.org/dchttp://purl.org/dc/terms/dctermshttp://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#vshttp://www.w3.org/2003/06/sw-vocab-status/ns#schemahttp://schema.org/jsonldhttp://www.w3.org/ns/json-ld#@context filesThe following @context files make use of the terms defined in this specification:
The following are property definitions in the example namespace.
examplePropertyExample property
ExampleClass@context:https://w3id.org/example/v1rc1The following are class definitions in the example namespace.
ExampleClassExample Class
exampleProperty@context:https://w3id.org/example/v1rc1{
"@context": "https://w3id.org/example/v1rc1",
"type": "ExampleClass",
"exampleProperty": "Example"
}