Skip to content

Commit ae503c8

Browse files
committed
Fix all VC JSON-LD Context URLs. See #206.
1 parent 04e1533 commit ae503c8

File tree

1 file changed

+45
-20
lines changed

1 file changed

+45
-20
lines changed

index.html

Lines changed: 45 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
company: "Spec-Ops", companyURL: "https://spec-ops.io/",
5656
w3cid: "44770" }
5757
],
58-
5958
// authors, add as many as you like.
6059
// This is optional, uncomment if you have authors as well as editors.
6160
// only "name" is required. Same format as editors.
@@ -66,7 +65,6 @@
6665
{ name: "Dave Longley", url: "http://digitalbazaar.com/",
6766
company: "Digital Bazaar", companyURL: "http://digitalbazaar.com/"}
6867
],
69-
7068
// name of the WG
7169
wg: "Verifiable Claims Working Group",
7270

@@ -677,7 +675,10 @@ <h2>Types</h2>
677675

678676
<pre class="example nohighlight" title="Usage of the type property">
679677
{
680-
"@context": "https://w3id.org/credentials/v1",
678+
"@context": [
679+
"https://w3.org/2018/credentials/v1",
680+
"https://example.com/examples/v1"
681+
],
681682
"id": "http://dmv.example.gov/credentials/3732",
682683
<span class="highlight">"type": ["VerifiableCredential", "ProofOfAgeCredential"]</span>,
683684
"claim": {
@@ -819,7 +820,10 @@ <h2>Issuer</h2>
819820
</dl>
820821
<pre class="example nohighlight" title="Usage of issuer properties">
821822
{
822-
"@context": "https://w3id.org/credentials/v1",
823+
"@context": [
824+
"https://w3.org/2018/credentials/v1",
825+
"https://example.com/examples/v1"
826+
],
823827
"id": "http://dmv.example.gov/credentials/3732",
824828
"type": ["VerifiableCredential", "ProofOfAgeCredential"],
825829
<span class="highlight">"issuer": "https://dmv.example.gov/issuers/14"</span>,
@@ -852,7 +856,10 @@ <h2>Proofs (e.g., Signatures)</h2>
852856
<pre class="example nohighlight"
853857
title="Usage of proof property on a verifiable credential">
854858
{
855-
"@context": "https://w3id.org/credentials/v1",
859+
"@context": [
860+
"https://w3.org/2018/credentials/v1",
861+
"https://example.com/examples/v1"
862+
],
856863
"id": "http://example.gov/credentials/3732",
857864
"type": ["VerifiableCredential", "ProofOfAgeCredential"],
858865
"issuer": "https://dmv.example.gov",
@@ -900,7 +907,10 @@ <h2>Expiration</h2>
900907

901908
<pre class="example nohighlight" title="Usage of expirationDate property">
902909
{
903-
"@context": "https://w3id.org/credentials/v1",
910+
"@context": [
911+
"https://w3.org/2018/credentials/v1",
912+
"https://example.com/examples/v1"
913+
],
904914
"id": "http://dmv.example.gov/credentials/3732",
905915
"type": ["VerifiableCredential", "ProofOfAgeCredential"],
906916
"issuer": "https://dmv.example.gov/issuers/14",
@@ -955,7 +965,10 @@ <h2>Status</h2>
955965

956966
<pre class="example nohighlight" title="Usage of status property">
957967
{
958-
"@context": "https://w3id.org/credentials/v1",
968+
"@context": [
969+
"https://w3.org/2018/credentials/v1",
970+
"https://example.com/examples/v1"
971+
],
959972
"id": "http://dmv.example.gov/credentials/3732",
960973
"type": ["VerifiableCredential", "ProofOfAgeCredential"],
961974
"issuer": "https://dmv.example.gov/issuers/14",
@@ -996,7 +1009,10 @@ <h2>Presentations</h2>
9961009

9971010
<pre class="example nohighlight" title="Basic structure of a presentation">
9981011
{
999-
"@context": "https://w3id.org/credentials/v1",
1012+
"@context": [
1013+
"https://w3.org/2018/credentials/v1",
1014+
"https://example.com/examples/v1"
1015+
],
10001016
"id": "urn:uuid:3978344f-8596-4c3a-a978-8fcaba3903c5",
10011017
"type": ["VerifiablePresentation"],
10021018
<span class="highlight">"verifiableCredential": [{ ... }],
@@ -1102,7 +1118,10 @@ <h2>Extensibility</h2>
11021118

11031119
<pre class="example nohighlight" title="A simple credential">
11041120
{
1105-
"@context": "https://w3id.org/credentials/v1",
1121+
"@context": [
1122+
"https://w3.org/2018/credentials/v1",
1123+
"https://example.com/examples/v1"
1124+
],
11061125
"id": "http://example.com/credentials/4643",
11071126
"type": ["VerifiableCredential"],
11081127
"issuer": "https://example.com/issuers/14",
@@ -1152,7 +1171,7 @@ <h2>Extensibility</h2>
11521171
title="A verifiable credential with a custom extension">
11531172
{
11541173
"@context": <span class="highlight">[
1155-
</span>"https://w3id.org/credentials/v1",
1174+
</span>"https://w3.org/2018/credentials/v1",
11561175
<span class="highlight">"https://example.com/contexts/mycontext.jsonld"
11571176
]</span>,
11581177
"id": "http://example.com/credentials/4643",
@@ -1288,7 +1307,7 @@ <h2>Refreshing</h2>
12881307
<pre class="example nohighlight" title="Usage of termsOfUse property by an Issuer">
12891308
{
12901309
"@context": [
1291-
"https://w3id.org/credentials/v1",
1310+
"https://w3.org/2018/credentials/v1",
12921311
"https://example.org/motorlicense/v1"
12931312
],
12941313
"id": "http://dmv.example.gov/credentials/3732",
@@ -1361,7 +1380,7 @@ <h2>Terms of Use</h2>
13611380
<pre class="example nohighlight" title="Usage of termsOfUse property by an Issuer">
13621381
{
13631382
"@context": [
1364-
"https://w3id.org/credentials/v1",
1383+
"https://w3.org/2018/credentials/v1",
13651384
"https://example.org/motorlicense/v1"
13661385
],
13671386
"id": "http://dmv.example.gov/credentials/3732",
@@ -1395,7 +1414,7 @@ <h2>Terms of Use</h2>
13951414
<pre class="example nohighlight" title="Usage of termsOfUse property by a Holder">
13961415
{
13971416
"@context": [
1398-
"https://w3id.org/credentials/v1",
1417+
"https://w3.org/2018/credentials/v1",
13991418
"https://example.org/motorlicense/v1"
14001419
],
14011420
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
@@ -1485,7 +1504,7 @@ <h2>Evidence</h2>
14851504
<pre class="example nohighlight" title="Usage of evidence property">
14861505
{
14871506
"@context": [
1488-
"https://w3id.org/credentials/v1",
1507+
"https://w3.org/2018/credentials/v1",
14891508
"https://example.org/motorlicense/v1"
14901509
],
14911510
"id": "http://dmv.example.gov/credentials/3732",
@@ -1579,7 +1598,7 @@ <h2>Credential Uniquely Identifies Subject</h2>
15791598
<pre class="example nohighlight" title="An example of a credential
15801599
that uniquely identifies a subject">
15811600
{
1582-
"@context": ["https://w3id.org/credentials/v1", "https://schema.org/"]
1601+
"@context": ["https://w3.org/2018/credentials/v1", "https://schema.org/"]
15831602
"id": "http://dmv.example.gov/credentials/332",
15841603
"type": ["VerifiableCredential", "IdentityCredential"],
15851604
"issuer": "https://dmv.example.gov/issuers/4",
@@ -1941,7 +1960,10 @@ <h2>Disputes</h2>
19411960
<pre class="example nohighlight"
19421961
title="Expressing a disputed credential">
19431962
{
1944-
"@context": "https://w3id.org/credentials/v1",
1963+
"@context": [
1964+
"https://w3.org/2018/credentials/v1",
1965+
"https://example.com/examples/v1"
1966+
],
19451967
"id": "http://example.com/credentials/245",
19461968
"type": ["VerifiableCredential", "DisputeCredential"],
19471969
<span class="highlight">"claim": {
@@ -2143,7 +2165,7 @@ <h2>JSON-LD</h2>
21432165
processing a <a>verifiable credential</a> or <a>verifiable presentation</a>,
21442166
and a <code>@context</code> property is not present at the top-level of the
21452167
JSON-LD document, then a <code>@context</code> property with a value of
2146-
<code>https://w3id.org/credentials/v1</code> MUST be assumed.
2168+
<code>https://w3.org/2018/credentials/v1</code> MUST be assumed.
21472169
</p>
21482170

21492171
</section>
@@ -2623,7 +2645,10 @@ <h3>Bearer Credentials</h3>
26232645

26242646
<pre class="example nohighlight" title="Usage of issuer properties">
26252647
{
2626-
"@context": "https://w3id.org/credentials/v1",
2648+
"@context": [
2649+
"https://w3.org/2018/credentials/v1",
2650+
"https://example.com/examples/v1"
2651+
],
26272652
"id": "http://dmv.example.gov/credentials/temporary/28934792387492384",
26282653
"type": ["VerifiableCredential", "ProofOfAgeCredential"],
26292654
"issuer": "https://dmv.example.gov/issuers/14",
@@ -3153,8 +3178,8 @@ <h3>Device Theft and Impersonation</h3>
31533178
</section>
31543179
<section>
31553180
<h2>Accessibility Impact</h2>
3156-
<p>There are a number of accessibility considerations of which implementors should be aware when processing data described in this specification. As with any implementation of web standards or protocols, ignoring accessibility issues will make this information unusable to a large subset of the population. It is important to follow accessiblity guidelines and standards such as [WCAG21] to ensure that all people, regardless of ability can make use of this data. This is especially important when establishing cryptography and encryption which historically have created problems for assistive technologies.
3157-
3181+
<p>There are a number of accessibility considerations of which implementors should be aware when processing data described in this specification. As with any implementation of web standards or protocols, ignoring accessibility issues will make this information unusable to a large subset of the population. It is important to follow accessiblity guidelines and standards such as [WCAG21] to ensure that all people, regardless of ability can make use of this data. This is especially important when establishing cryptography and encryption which historically have created problems for assistive technologies.
3182+
31583183
</body>
31593184
</html>
31603185

0 commit comments

Comments
 (0)