From cc10006f7e5ae9100cfd4ea82e2aba5e5a90da09 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Tue, 26 Mar 2024 15:12:36 -0400 Subject: [PATCH 1/8] Add initial context file. This lays the foundation for eventually turning this metadata into VCs. The context uses a mix of the W3Cs EARL vocabulary, DOAP (which EARL uses), Schema.org, and a temporary `reporter` namespace mapped to https://github.com/digitalbazaar/mocha-w3c-interop-reporter# which is the primary software which consumes these details to generate W3C test reports. This context MAY (and likely should) move in the future either to that repo or to some more permanent home. --- context.json | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 context.json diff --git a/context.json b/context.json new file mode 100644 index 0000000..4138b43 --- /dev/null +++ b/context.json @@ -0,0 +1,52 @@ +{ + "@context": { + "earl": "https://www.w3.org/ns/earl#", + "doap": "http://usefulinc.com/ns/doap#", + "schema": "http://schema.org/", + "reporter": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#", + + "Software": "earl:Software", + "TestSubject": "earl:TestSubject", + "Organization": "schema:Organization", + "Person": "schema:Person", + + "id": "@id", + "name": "schema:name", + "url": { + "@id": "schema:url", + "@type": "@id" + }, + "vendor": { + "@id": "doap:vendor" + }, + "email": "schema:email", + + "options": { + "@id": "https://w3c-ccg.github.io/vc-api/#options", + "@type": "@json" + }, + + "tags": { + "@id": "schema:keywords" + }, + "issuers": { + "@id": "cred:issuer", + "@container": "@set" + }, + "verifiers": { + "@id": "cred:verifier", + "@container": "@set" + }, + "endpoint": { + "@id": "doap:service-endpoint", + "@type": "@id" + }, + + "zcap": "reporter:zcap", + "capability": "reporter:capability", + "keySeed": "reporter:keySeed", + "supportedEcdsaKeyTypes": "reporter:supportedEcdsaKeyTypes", + "vcHolders": "reporter:vcHolders", + "vpVerifiers": "reporter:vpVerifiers" + } +} From 7783fea1ac352b784c9e5b6f080096eb2cb40554 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Wed, 27 Mar 2024 13:17:59 -0400 Subject: [PATCH 2/8] Reorder context terms a bit for legibility. --- context.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/context.json b/context.json index 4138b43..bf32a30 100644 --- a/context.json +++ b/context.json @@ -26,9 +26,6 @@ "@type": "@json" }, - "tags": { - "@id": "schema:keywords" - }, "issuers": { "@id": "cred:issuer", "@container": "@set" @@ -37,10 +34,14 @@ "@id": "cred:verifier", "@container": "@set" }, + "endpoint": { "@id": "doap:service-endpoint", "@type": "@id" }, + "tags": { + "@id": "schema:keywords" + }, "zcap": "reporter:zcap", "capability": "reporter:capability", From 35ab68f3dae1e16e4e16f141941b10f3d875f578 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Thu, 23 Jan 2025 09:06:33 -0500 Subject: [PATCH 3/8] Make vendor and zcap objects. --- context.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/context.json b/context.json index bf32a30..f88339f 100644 --- a/context.json +++ b/context.json @@ -17,7 +17,8 @@ "@type": "@id" }, "vendor": { - "@id": "doap:vendor" + "@id": "doap:vendor", + "@type": "@id" }, "email": "schema:email", @@ -43,7 +44,10 @@ "@id": "schema:keywords" }, - "zcap": "reporter:zcap", + "zcap": { + "@id": "reporter:zcap", + "@type": "@id" + }, "capability": "reporter:capability", "keySeed": "reporter:keySeed", "supportedEcdsaKeyTypes": "reporter:supportedEcdsaKeyTypes", From 30521f8922020a486f735ceef3d4e83a76e4efbc Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Thu, 23 Jan 2025 12:56:17 -0500 Subject: [PATCH 4/8] Absolutize all term URLs. --- context.json | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/context.json b/context.json index f88339f..f06d196 100644 --- a/context.json +++ b/context.json @@ -1,26 +1,21 @@ { "@context": { - "earl": "https://www.w3.org/ns/earl#", - "doap": "http://usefulinc.com/ns/doap#", - "schema": "http://schema.org/", - "reporter": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#", - - "Software": "earl:Software", - "TestSubject": "earl:TestSubject", - "Organization": "schema:Organization", - "Person": "schema:Person", + "Software": "https://www.w3.org/ns/earl#Software", + "TestSubject": "https://www.w3.org/ns/earl#TestSubject", + "Organization": "https://schema.org/Organization", + "Person": "https://schema.org/Person", "id": "@id", - "name": "schema:name", + "name": "https://schema.org/name", "url": { - "@id": "schema:url", + "@id": "https://schema.org/url", "@type": "@id" }, "vendor": { - "@id": "doap:vendor", + "@id": "http://usefulinc.com/ns/doap#vendor", "@type": "@id" }, - "email": "schema:email", + "email": "https://schema.org/email", "options": { "@id": "https://w3c-ccg.github.io/vc-api/#options", @@ -37,21 +32,21 @@ }, "endpoint": { - "@id": "doap:service-endpoint", + "@id": "http://usefulinc.com/ns/doap#service-endpoint", "@type": "@id" }, "tags": { - "@id": "schema:keywords" + "@id": "https://schema.org/keywords" }, "zcap": { - "@id": "reporter:zcap", + "@id": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#zcap", "@type": "@id" }, - "capability": "reporter:capability", - "keySeed": "reporter:keySeed", - "supportedEcdsaKeyTypes": "reporter:supportedEcdsaKeyTypes", - "vcHolders": "reporter:vcHolders", - "vpVerifiers": "reporter:vpVerifiers" + "capability": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#capability", + "keySeed": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#keySeed", + "supportedEcdsaKeyTypes": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#supportedEcdsaKeyTypes", + "vcHolders": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#vcHolders", + "vpVerifiers": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#vpVerifiers" } } From 61ba97f61e964344dd8957a317406722c2a4480d Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Thu, 23 Jan 2025 12:58:40 -0500 Subject: [PATCH 5/8] Choose URLs for cred prefixed terms. The `cred` prefix had not been associated with a full term URL previously. --- context.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context.json b/context.json index f06d196..aa85391 100644 --- a/context.json +++ b/context.json @@ -23,11 +23,11 @@ }, "issuers": { - "@id": "cred:issuer", + "@id": "https://www.w3.org/2018/credentials#issuer", "@container": "@set" }, "verifiers": { - "@id": "cred:verifier", + "@id": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#verifier", "@container": "@set" }, From ffd42a74b2f9f067b1fb7e1d5bf4f4b19ab8d9c8 Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Fri, 24 Jan 2025 10:13:18 -0500 Subject: [PATCH 6/8] Also alias `@type`. --- context.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/context.json b/context.json index aa85391..b3e62eb 100644 --- a/context.json +++ b/context.json @@ -6,6 +6,8 @@ "Person": "https://schema.org/Person", "id": "@id", + "type": "@type", + "name": "https://schema.org/name", "url": { "@id": "https://schema.org/url", From fdc5c1ce3fc85c55a9b798b2248db7610263aa2f Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Fri, 24 Jan 2025 10:22:23 -0500 Subject: [PATCH 7/8] Add missing term definitions. --- context.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/context.json b/context.json index b3e62eb..ccf6796 100644 --- a/context.json +++ b/context.json @@ -49,6 +49,14 @@ "keySeed": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#keySeed", "supportedEcdsaKeyTypes": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#supportedEcdsaKeyTypes", "vcHolders": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#vcHolders", - "vpVerifiers": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#vpVerifiers" + "vpVerifiers": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#vpVerifiers", + "supports": { + "@id": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#supports", + "@type": "@id" + }, + "vc": { + "@id": "https://github.com/digitalbazaar/mocha-w3c-interop-reporter#vc", + "@container": "@set" + } } } From dca2d5492f412f84133e06a3c1abb5241eb9e97d Mon Sep 17 00:00:00 2001 From: Benjamin Young Date: Fri, 24 Jan 2025 10:23:09 -0500 Subject: [PATCH 8/8] Use new format for DB implementation. --- implementations/DigitalBazaar.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/implementations/DigitalBazaar.json b/implementations/DigitalBazaar.json index fe2636b..da5a76e 100644 --- a/implementations/DigitalBazaar.json +++ b/implementations/DigitalBazaar.json @@ -1,6 +1,13 @@ { - "name": "Digital Bazaar", - "implementation": "Veres (Q/A)", + "@context": "https://raw.githubusercontent.com/digitalbazaar/mocha-w3c-interop-reporter/refs/heads/main/context.json", + "vendor": { + "type": "Organization", + "name": "Digital Bazaar, Inc.", + "url": "https://digitalbazaar.com/", + "email": "support@digitalbazaar.com" + }, + "type": ["TestSubject", "Software"], + "name": "Veres (Q/A)", "issuers": [{ "id": "did:key:zDnaer1eJZAf1qxHBeRZqiVg5pxyUpdQBdZCVsHCAp7n9JZyg", "endpoint": "https://vc2.veresissuer.dev/issuers/z19kS41UcJKY6KBwzW2iecY9r/credentials/issue",