This the namespace document for the Linked Data Vocabulary representation of the DID Core v1.0 data model.

Introduction

This document contains the vocabulary terms defined in the DID Core v1.0 data model [[did-core]]. The following namespaces are used:

DID Core Namespace
https://www.w3.org/ns/did#
Security Vocabulary Namespace
https://w3id.org/security#
ActivityStreams 2.0 Terms
https://www.w3.org/ns/activitystreams#

While the DID Core v1.0 namespace URI is https://www.w3.org/ns/did#, for historical reasons most of the terms are in the https://w3id.org/security# namespace, though defined in the DID Core specification [[did-core]]. These terms do not define any cryptographic primitives and are formally defined in the DID Core specification. Future Working Group may define a formal specification for the complete security vocabulary.

Some of the terms, as defined in the DID Core specification [[did-core]], use a slightly different term name as their full URIs. For example, the term https://w3id.org/security#keyAgreementMethod is referred to as keyAgreement in the DID Core specification. The mapping is done, for JSON-LD, by the official JSON-LD Context. For the sake of clarity, section below references both those terms.

Extensions to DID Core v1.0 terms can be found in the DID Specification Registries [[did-spec-registries]]. Extensions may be in the https://w3id.org/security# namespace or may have their own namespaces; they have their own JSON-LD Contexts.

Formal Versions of the Vocabulary

The formal RDF [[rdf11-concepts]] vocabulary, using RDFS [[rdf-schema]] terms, is available in the following formats:

Turtle:
https://www.w3.org/ns/did.ttl
JSON-LD:
https://www.w3.org/ns/did.jsonld
RDF/XML:
https://www.w3.org/ns/did.rdf

These files can also be accessed using content negotiations on the https://www.w3.org/ns/did URI HTTP request, referring to the text/turtle, application/ld+json, or application/rdf+xml media types, respectively,

Vocabulary

Classes

Note: the RDFS Classes are not defined in the DID Core v1.0 specification [[did-core]] and are only used by the formal RDFS vocabulary specification. Users of the JSON-LD representation of the DID Data Model are advised not to use these.

DIDSubject
  • URI: https://www.w3.org/ns/did#serviceEndpoint
Service
  • URI: https://www.w3.org/ns/did#Service
VerificationMethod
  • URI: https://www.w3.org/ns/did#VerificationMethod

Properties

Terms are listed here in alphabetical order, and linked to their definitions in the DID Core v1.0 [[did-core]] specification.

alsoKnownAs
assertionMethod
authenticationMethod, referred to as authentication
capabilityDelegationMethod, referred to as capabilityDelegation
capabilityInvocationMethod, referred to as capabilityInvocation
controller
keyAgreementMethod, referred to as keyAgreement
publicKeyMultibase
publicKeyJwk
service
serviceEndpoint
verificationMethod

Constraints Definitions

Although not formally part of the Vocabulary specification, the RDF shape constraints, related to this vocabulary, are also available: