Update context URLs

This commit is contained in:
Andy Miller (IMS) 2022-09-09 09:11:38 -07:00
parent 3c0a09624e
commit f3d8b5ace6
2 changed files with 4 additions and 4 deletions

View File

@ -62,11 +62,11 @@ public class ContextPropertyProbe extends Probe<JsonNode> {
// TODO uris will change
.put(Set.of(OpenBadgeCredential, AchievementCredential, EndorsementCredential),
List.of("https://www.w3.org/2018/credentials/v1",
"https://imsglobal.github.io/openbadges-specification/context.json"))
"https://purl.imsglobal.org/spec/ob/v3p0/context.json"))
.put(Set.of(ClrCredential),
List.of("https://www.w3.org/2018/credentials/v1",
"https://dc.imsglobal.org/draft/clr/v2p0/context",
"https://imsglobal.github.io/openbadges-specification/context.json"))
"https://purl.imsglobal.org/spec/clr/v2p0/context.json",
"https://purl.imsglobal.org/spec/ob/v3p0/context.json"))
.build();
public static final String ID = ContextPropertyProbe.class.getSimpleName();

View File

@ -43,7 +43,7 @@ public class CachingDocumentLoader implements DocumentLoader {
.put("https://www.w3.org/ns/odrl.jsonld", Resources.getResource("contexts/odrl.jsonld"))
.put("https://w3id.org/security/suites/ed25519-2020/v1", Resources.getResource("contexts/security-suites-ed25519-2020-v1.jsonld"))
.put("https://www.w3.org/2018/credentials/v1", Resources.getResource("contexts/2018-credentials-v1.jsonld"))
.put("https://imsglobal.github.io/openbadges-specification/context.json", Resources.getResource("contexts/obv3.jsonld"))
.put("https://purl.imsglobal.org/spec/ob/v3p0/context.json", Resources.getResource("contexts/obv3.jsonld"))
.build();
static final LoadingCache<Tuple<String, DocumentLoaderOptions>, Document> documentCache = CacheBuilder.newBuilder()