Skip to content

Commit d5d3c85

Browse files
committed
Add section on Contexts. See #206.
1 parent 0fdc3e6 commit d5d3c85

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

index.html

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,54 @@ <h1>Basic Concepts</h1>
651651
toward the end of the document.
652652
</p>
653653

654+
<section>
655+
<h2>Contexts</h2>
656+
657+
<p>
658+
When two software systems need to exchange data, they must use terminology
659+
that both systems understand. A useful analogy is to think about how two
660+
people communicate; both people must use the same language and the words
661+
that each of them use must mean the same thing to the other party. This
662+
specification uses the <code>@context</code> property to express the context
663+
of the conversation.
664+
</p>
665+
666+
<dl>
667+
<dt><dfn>@context</dfn></dt>
668+
<dd>
669+
The value of this property MUST be one or more URIs where first URI is the
670+
value <code>https://w3.org/2018/credentials/v1</code>.
671+
If more than one URI is provided, the URIs MUST be interpreted as an
672+
ordered set. It is RECOMMENDED that dereferencing the URI results in a
673+
document containing machine-readable information about the context.
674+
</dd>
675+
</dl>
676+
677+
<pre class="example nohighlight" title="Usage of the @context property">
678+
{
679+
<span class="highlight">"@context": [
680+
"https://w3.org/2018/credentials/v1",
681+
...
682+
]</span>,
683+
"id": "http://dmv.example.gov/credentials/3732",
684+
"type": ["VerifiableCredential", "ProofOfAgeCredential"],
685+
"claim": {
686+
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
687+
"ageOver": 21
688+
},
689+
"proof": { ... }
690+
}
691+
</pre>
692+
693+
<p>
694+
The data available at <code>https://w3.org/2018/credentials/v1</code>
695+
is a static document that is never updated and may thus be downloaded and
696+
cached client side. The associated vocabulary document for the
697+
Verifiable Credentials Data Model can be found at the following URL:
698+
<code>https://w3.org/2018/credentials</code>.
699+
</p>
700+
</section>
701+
654702
<section>
655703
<h2>Identifiers</h2>
656704

0 commit comments

Comments
 (0)