W3C Verifiable Credentials¶
Vocabulary: Verifiable Credentials Data Model 2.0 (W3C Recommendation).
Namespace: https://www.w3.org/ns/credentials/v2/
Specification: https://www.w3.org/TR/vc-data-model-2.0/
A verifiable credential is a carrier: it says nothing about conformity assessment, only that a claim is signed and verifiable. CAP is the content that such a carrier transports. The two are complementary, and the relationship is containment rather than equivalence - which is why nothing on this page is asserted.
Asserted¶
None, and none is expected.
cred:VerifiableCredential is a shape any assertion can take; cap:StatementOfConformity is a kind of assertion.
Asserting a match between a carrier and a content type would be a category error.
Example¶
The pattern the developer notebook actually uses: a CAP certification as the subject of a VC.
@prefix cap: <https://w3id.org/eclipse-cap/v0/#> .
@prefix cred: <https://www.w3.org/ns/credentials/v2/> .
@prefix ex: <http://example.com/#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:myvc a cred:VerifiableCredential ;
cred:issuer "did:web:trusted-notary.eu" ;
cred:credentialSubject ex:cert01 ;
cred:validFrom "2026-11-14T00:00:00"^^xsd:dateTime .
ex:cert01 a cap:Certification ;
cap:issuedBy ex:LNE ;
cap:issuedAt "2023-11-30T00:00:00"^^xsd:dateTime ;
cap:validFrom "2023-11-30T00:00:00"^^xsd:dateTime ;
cap:validUntil "2026-11-30T00:00:00"^^xsd:dateTime .
Where the semantics diverge¶
- Issuer is not the same as who issued the statement. In the example,
cred:issueris the wallet holder that published the credential (did:web:trusted-notary.eu) whilecap:issuedByis the body that made the certification (ex:LNE). Collapsing them loses who is answerable for the conformity claim. - Two validity windows. A credential can be valid while the certificate it carries has expired, and the reverse. Consumers that read only
cred:validUntilwill accept stale attestations. - Verification is not assessment. A verifiable signature proves the carrier was signed by the issuer; it says nothing about whether specified requirements were fulfilled.
Illustrative¶
| CAP term | Candidate | How to read it |
|---|---|---|
cap:StatementOfConformity |
carried by cred:VerifiableCredential |
the statement is the cred:credentialSubject, not the credential itself |
cap:issuedBy |
cred:issuer |
they usually agree, but they are not the same thing - see the divergence below |
cap:validFrom / cap:validUntil |
cred:validFrom / cred:validUntil |
same names, different meaning: the credential's validity window is not the certificate's |
cap:NotarisationEvidence |
cred:Evidence |
both are "what this rests on"; CAP's is specifically the evidence a notary used to convert a paper document |
cap:issuedAt |
cred:issuanceDate |
the credential may be issued later than the statement it carries |