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.

Introduction

This provides an example of a yml2vocab vocabulary.

Ecosystem Examples

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

Namespaces

This specification makes use of the following namespaces:

example
https://w3id.org/example#
ex
https://w3id.org/example#
schema
https://schema.org/
dc
http://purl.org/dc/terms/
dcterms
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#
vs
http://www.w3.org/2003/06/sw-vocab-status/ns#
schema
http://schema.org/
jsonld
http://www.w3.org/ns/json-ld#

@context files

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

Term definitions

Property definitions

The following are property definitions in the example namespace.

exampleProperty

Example property

This is an example property.
stable
Domain:
ExampleClass
Relevant @context:
https://w3id.org/example/v1rc1

Class definitions

The following are class definitions in the example namespace.

ExampleClass

Example Class

An example class.
stable
Domain of:
exampleProperty
Relevant @context:
https://w3id.org/example/v1rc1
{
  "@context": "https://w3id.org/example/v1rc1",
  "type": "ExampleClass",
  "exampleProperty": "Example"
}