From e813369036a320cfca44350dfe8a22c6de6394b9 Mon Sep 17 00:00:00 2001 From: "Andy Miller (IMS)" <48326098+amiller-ims@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:43:11 -0800 Subject: [PATCH] Add cached ob-v3p0-extensions context --- .../oneedtech/inspect/vc/util/CachingDocumentLoader.java | 3 ++- .../src/main/resources/contexts/ob-v3p0-extensions.json | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 inspector-vc/src/main/resources/contexts/ob-v3p0-extensions.json diff --git a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/util/CachingDocumentLoader.java b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/util/CachingDocumentLoader.java index b656419..66b97fe 100644 --- a/inspector-vc/src/main/java/org/oneedtech/inspect/vc/util/CachingDocumentLoader.java +++ b/inspector-vc/src/main/java/org/oneedtech/inspect/vc/util/CachingDocumentLoader.java @@ -41,7 +41,8 @@ public class CachingDocumentLoader implements DocumentLoader { static final ImmutableMap bundled = ImmutableMap.builder() .put("https://purl.imsglobal.org/spec/clr/v2p0/context.json",Resources.getResource("contexts/clr-v2p0.json")) - .put("https://purl.imsglobal.org/spec/ob/v3p0/context.json",Resources.getResource("contexts/ob-v3p0.json")) + .put("https://purl.imsglobal.org/spec/ob/v3p0/context.json",Resources.getResource("contexts/ob-v3p0.json")) + .put("https://purl.imsglobal.org/spec/ob/v3p0/extensions.json",Resources.getResource("contexts/ob-v3p0-extensions.json")) .put("https://imsglobal.github.io/openbadges-specification/context.json",Resources.getResource("contexts/obv3x.jsonld")) .put("https://www.w3.org/ns/did/v1", Resources.getResource("contexts/did-v1.jsonld")) .put("https://www.w3.org/ns/odrl.jsonld", Resources.getResource("contexts/odrl.jsonld")) diff --git a/inspector-vc/src/main/resources/contexts/ob-v3p0-extensions.json b/inspector-vc/src/main/resources/contexts/ob-v3p0-extensions.json new file mode 100644 index 0000000..95dc35c --- /dev/null +++ b/inspector-vc/src/main/resources/contexts/ob-v3p0-extensions.json @@ -0,0 +1,9 @@ +{ + "@context": { + "id": "@id", + "type": "@type", + "1EdTechJsonSchemaValidator2019": "https://purl.imsglobal.org/spec/vccs/v1p0/context.json#1EdTechJsonSchemaValidator2019", + "1EdTechRevocationList": "https://purl.imsglobal.org/spec/vcrl/v1p0/context.json#1EdTechRevocationList", + "1EdTechCredentialRefresh": "https://purl.imsglobal.org/spec/vccr/v1p0/context.json#1EdTechCredentialRefresh" + } +} \ No newline at end of file