From fc58a8c0a0e59508dd1dfb8e31a0c96f5c0b8dda Mon Sep 17 00:00:00 2001 From: Manu Sporny Date: Sat, 27 Oct 2018 12:30:56 -0400 Subject: [PATCH] Add section on Contexts. See #206. --- index.html | 55 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 09c2bb49c..059437c27 100644 --- a/index.html +++ b/index.html @@ -651,6 +651,54 @@

Basic Concepts

toward the end of the document.

+
+

Contexts

+ +

+When two software systems need to exchange data, they must use terminology +that both systems understand. A useful analogy is to think about how two +people communicate; both people must use the same language and the words +that each of them use must mean the same thing to the other party. This +specification uses the @context property to express the context +of the conversation. +

+ +
+
@context
+
+The value of this property MUST be one or more URIs where first URI is the +value https://w3.org/2018/credentials/v1. +If more than one URI is provided, the URIs MUST be interpreted as an +ordered set. It is RECOMMENDED that dereferencing the URI results in a +document containing machine-readable information about the context. +
+
+ +
+{
+  "@context": [
+    "https://w3.org/2018/credentials/v1",
+    ...
+  ],
+  "id": "http://dmv.example.gov/credentials/3732",
+  "type": ["VerifiableCredential", "ProofOfAgeCredential"],
+  "claim": {
+    "id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
+    "ageOver": 21
+  },
+  "proof": { ... }
+}
+        
+ +

+The data available at https://w3.org/2018/credentials/v1 +is a static document that is never updated and may thus be downloaded and +cached client side. The associated vocabulary document for the +Verifiable Credentials Data Model can be found at the following URL: +https://w3.org/2018/credentials. +

+
+

Types

@@ -2165,12 +2213,7 @@

JSON-LD

processing a verifiable credential or verifiable presentation, and a @context property is not present at the top-level of the JSON-LD document, then a @context property with a value of -https://w3.org/2018/credentials/v1 MUST be assumed. The -JSON-LD Context available at https://w3.org/2018/credentials/v1 -is a static document that is never updated and may thus be downloaded and -cached client side. The associated vocabulary document for the -Verifiable Credentials Data Model can be found at the following URL: -https://w3.org/2018/credentials. +https://w3.org/2018/credentials/v1 MUST be assumed.