Skip to content

Commit a50893f

Browse files
committed
Add context and vocabulary section.
1 parent 7727b69 commit a50893f

File tree

1 file changed

+133
-0
lines changed

1 file changed

+133
-0
lines changed

index.html

+133
Original file line numberDiff line numberDiff line change
@@ -1346,6 +1346,139 @@ <h2>Media Types</h2>
13461346
</p>
13471347
</section>
13481348

1349+
<section>
1350+
<h2>Contexts and Vocabularies</h2>
1351+
1352+
<p class="issue" title="(AT RISK) Hash values might change during Candidate Recommendation">
1353+
This section lists cryptographic hash values that might change during the
1354+
Candidate Recommendation phase based on implementer feedback that requires
1355+
the referenced files to be modified.
1356+
</p>
1357+
1358+
<section>
1359+
<h2>Vocabulary</h2>
1360+
<p>
1361+
The terms defined in this specification are also part of the RDF <a
1362+
data-cite="RDF-CONCEPTS#vocabularies">vocabulary namespace</a>
1363+
<a href="https://www.w3.org/ns/credentials/status">https://www.w3.org/ns/credentials/status#</a>. For any
1364+
`TERM`, the relevant URL is of the form `https://www.w3.org/ns/credentials/status#TERM`.
1365+
Implementations that use RDF processing and rely on this specification MUST use
1366+
these URLs.
1367+
</p>
1368+
1369+
<p>
1370+
When dereferencing the
1371+
<a href="https://www.w3.org/ns/credentials/status">https://www.w3.org/ns/credentials/status#</a> URL, the
1372+
media type of the data that is returned depends on HTTP content negotiation.
1373+
These are as follows:
1374+
</p>
1375+
1376+
<table class="simple">
1377+
<thead>
1378+
<tr>
1379+
<th>Media Type</th>
1380+
<th>Description and Hash</th>
1381+
</tr>
1382+
</thead>
1383+
<tbody>
1384+
<tr>
1385+
<td>
1386+
application/ld+json
1387+
</td>
1388+
<td>
1389+
The vocabulary in JSON-LD format [[?JSON-LD11]].<br>
1390+
1391+
<strong>SHA2-256 Digest:</strong>
1392+
<code><span class="vc-hash"
1393+
data-hash-url="https://w3c.github.io/vc-bitstring-status-list/vocab/vocabulary.jsonld"
1394+
data-hash-format="openssl dgst -sha256" /></code>
1395+
</td>
1396+
</tr>
1397+
<tr>
1398+
<td>
1399+
text/turtle
1400+
</td>
1401+
<td>
1402+
The vocabulary in Turtle format [[?TURTLE]].<br>
1403+
1404+
<strong>SHA2-256 Digest:</strong>
1405+
<code><span class="vc-hash"
1406+
data-hash-url="https://w3c.github.io/vc-bitstring-status-list/vocab/vocabulary.ttl"
1407+
data-hash-format="openssl dgst -sha256" /></code>
1408+
</td>
1409+
</tr>
1410+
<tr>
1411+
<td>
1412+
text/html
1413+
</td>
1414+
<td>
1415+
The vocabulary in HTML+RDFa Format [[?HTML-RDFA]].<br>
1416+
1417+
1418+
<strong>SHA2-256 Digest:</strong>
1419+
<code><span class="vc-hash"
1420+
data-hash-url="https://w3c.github.io/vc-bitstring-status-list/vocab/vocabulary.html"
1421+
data-hash-format="openssl dgst -sha256" /></code>
1422+
</td>
1423+
</tr>
1424+
</tbody>
1425+
</table>
1426+
1427+
<p>
1428+
It is possible to confirm the cryptographic digests above by running a command
1429+
like the following (replacing `&lt;MEDIA_TYPE>` and `&lt;DOCUMENT_URL>` with the
1430+
appropriate values) through a modern UNIX-like OS command line interface:
1431+
`curl -sL -H "Accept: &lt;MEDIA_TYPE>" &lt;DOCUMENT_URL> | openssl dgst -sha256`
1432+
</p>
1433+
</section>
1434+
1435+
<section>
1436+
<h3>JSON-LD context</h3>
1437+
<p>
1438+
Implementations that perform JSON-LD processing MUST treat the following JSON-LD
1439+
context URL as already resolved, where the resolved document matches the
1440+
corresponding hash value below:
1441+
</p>
1442+
1443+
<table class="simple">
1444+
<thead>
1445+
<th>Context URL and Hash</th>
1446+
</thead>
1447+
<tbody>
1448+
<tr>
1449+
<td style="white-space: nowrap;">
1450+
<strong>URL:</strong> https://www.w3.org/ns/credentials/status/v1<br>
1451+
<strong>SHA2-256 Digest:</strong><br>
1452+
<code><span class="vc-hash"
1453+
data-hash-url="https://w3c.github.io/vc-bitstring-status-list/contexts/v1.jsonld"
1454+
data-hash-format="openssl dgst -sha256" /></code>
1455+
</td>
1456+
</tr>
1457+
</tbody>
1458+
</table>
1459+
1460+
<p>
1461+
It is possible to confirm the cryptographic digests listed above by running a
1462+
command like the following through a modern UNIX-like OS command line interface:
1463+
`curl -sL -H "Accept: application/ld+json" https://www.w3.org/ns/credentials/status/v1 | openssl dgst -sha256`
1464+
</p>
1465+
1466+
<p>
1467+
The vocabulary terms that the JSON-LD contexts resolve to
1468+
are in the <a href="https://www.w3.org/ns/credentials/status">https://www.w3.org/ns/credentials/status#</a>
1469+
namespace. See Section [[[#vocabulary]]] for further details.
1470+
</p>
1471+
1472+
<p class="note">
1473+
Applications or specifications may define mappings to the vocabulary URLs using
1474+
their own JSON-LD contexts. For example, the JSON-LD context definitions
1475+
referred to in this section are also a part of the
1476+
`https://www.w3.org/ns/credentials/v2` context, defined by the
1477+
[[[?VC-DATA-MODEL-2.0]]] specification.
1478+
</p>
1479+
</section>
1480+
</section>
1481+
13491482
<section class="informative">
13501483
<h2>Privacy Considerations</h2>
13511484

0 commit comments

Comments
 (0)