Added OB 20 context file
This commit is contained in:
parent
579e19a929
commit
7ee4475917
@ -77,6 +77,7 @@ public class CachingDocumentLoader extends ConfigurableDocumentLoader {
|
||||
.put("https://w3id.org/security/suites/ed25519-2018/v1", Resources.getResource("contexts/suites-ed25519-2018.jsonld"))
|
||||
.put("https://w3id.org/security/suites/x25519-2019/v1", Resources.getResource("contexts/suites-x25519-2019.jsonld"))
|
||||
.put("https://w3id.org/security/suites/jws-2020/v1", Resources.getResource("contexts/suites-jws-2020.jsonld"))
|
||||
.put("https://openbadgespec.org/v2/context.json", Resources.getResource("contexts/ob-v2p0.json"))
|
||||
|
||||
.build();
|
||||
|
||||
|
91
inspector-vc/src/main/resources/contexts/ob-v2p0.json
Normal file
91
inspector-vc/src/main/resources/contexts/ob-v2p0.json
Normal file
@ -0,0 +1,91 @@
|
||||
{
|
||||
"@context": {
|
||||
"id": "@id",
|
||||
"type": "@type",
|
||||
|
||||
"extensions": "https://w3id.org/openbadges/extensions#",
|
||||
"obi": "https://w3id.org/openbadges#",
|
||||
"validation": "obi:validation",
|
||||
|
||||
"cred": "https://w3id.org/credentials#",
|
||||
"dc": "http://purl.org/dc/terms/",
|
||||
"schema": "http://schema.org/",
|
||||
"sec": "https://w3id.org/security#",
|
||||
"xsd": "http://www.w3.org/2001/XMLSchema#",
|
||||
|
||||
"AlignmentObject": "schema:AlignmentObject",
|
||||
"CryptographicKey": "sec:Key",
|
||||
"Endorsement": "cred:Credential",
|
||||
|
||||
"Assertion": "obi:Assertion",
|
||||
"BadgeClass": "obi:BadgeClass",
|
||||
"Criteria": "obi:Criteria",
|
||||
"Evidence": "obi:Evidence",
|
||||
"Extension": "obi:Extension",
|
||||
"FrameValidation": "obi:FrameValidation",
|
||||
"IdentityObject": "obi:IdentityObject",
|
||||
"Image": "obi:Image",
|
||||
"HostedBadge": "obi:HostedBadge",
|
||||
"hosted": "obi:HostedBadge",
|
||||
"Issuer": "obi:Issuer",
|
||||
"Profile": "obi:Profile",
|
||||
"RevocationList": "obi:RevocationList",
|
||||
"SignedBadge": "obi:SignedBadge",
|
||||
"signed": "obi:SignedBadge",
|
||||
"TypeValidation": "obi:TypeValidation",
|
||||
"VerificationObject": "obi:VerificationObject",
|
||||
|
||||
"author": { "@id": "schema:author", "@type": "@id" },
|
||||
"caption": { "@id": "schema:caption" },
|
||||
"claim": {"@id": "cred:claim", "@type": "@id"},
|
||||
"created": { "@id": "dc:created", "@type": "xsd:dateTime" },
|
||||
"creator": { "@id": "dc:creator", "@type": "@id" },
|
||||
"description": { "@id": "schema:description" },
|
||||
"email": { "@id": "schema:email" },
|
||||
"endorsement": {"@id": "cred:credential", "@type": "@id"},
|
||||
"expires": { "@id": "sec:expiration", "@type": "xsd:dateTime" },
|
||||
"genre": { "@id": "schema:genre" },
|
||||
"image": { "@id": "schema:image", "@type": "@id" },
|
||||
"name": { "@id": "schema:name" },
|
||||
"owner": {"@id": "sec:owner", "@type": "@id"},
|
||||
"publicKey": { "@id": "sec:publicKey", "@type": "@id" },
|
||||
"publicKeyPem": { "@id": "sec:publicKeyPem" },
|
||||
"related": { "@id": "dc:relation", "@type": "@id" },
|
||||
"startsWith": { "@id": "http://purl.org/dqm-vocabulary/v1/dqm#startsWith" },
|
||||
"tags": { "@id": "schema:keywords" },
|
||||
"targetDescription": { "@id": "schema:targetDescription" },
|
||||
"targetFramework": { "@id": "schema:targetFramework" },
|
||||
"targetName": { "@id": "schema:targetName" },
|
||||
"targetUrl": { "@id": "schema:targetUrl" },
|
||||
"telephone": { "@id": "schema:telephone" },
|
||||
"url": { "@id": "schema:url", "@type": "@id" },
|
||||
"version": { "@id": "schema:version" },
|
||||
|
||||
"alignment": { "@id": "obi:alignment", "@type": "@id" },
|
||||
"allowedOrigins": { "@id": "obi:allowedOrigins" },
|
||||
"audience": { "@id": "obi:audience" },
|
||||
"badge": { "@id": "obi:badge", "@type": "@id" },
|
||||
"criteria": { "@id": "obi:criteria", "@type": "@id" },
|
||||
"endorsementComment": { "@id": "obi:endorsementComment" },
|
||||
"evidence": { "@id": "obi:evidence", "@type": "@id" },
|
||||
"hashed": { "@id": "obi:hashed", "@type": "xsd:boolean" },
|
||||
"identity": { "@id": "obi:identityHash" },
|
||||
"issuedOn": { "@id": "obi:issueDate", "@type": "xsd:dateTime" },
|
||||
"issuer": { "@id": "obi:issuer", "@type": "@id" },
|
||||
"narrative": { "@id": "obi:narrative" },
|
||||
"recipient": { "@id": "obi:recipient", "@type": "@id" },
|
||||
"revocationList": { "@id": "obi:revocationList", "@type": "@id" },
|
||||
"revocationReason": { "@id": "obi:revocationReason" },
|
||||
"revoked": { "@id": "obi:revoked", "@type": "xsd:boolean" },
|
||||
"revokedAssertions": { "@id": "obi:revoked" },
|
||||
"salt": { "@id": "obi:salt" },
|
||||
"targetCode": { "@id": "obi:targetCode" },
|
||||
"uid": { "@id": "obi:uid" },
|
||||
"validatesType": "obi:validatesType",
|
||||
"validationFrame": "obi:validationFrame",
|
||||
"validationSchema": "obi:validationSchema",
|
||||
"verification": { "@id": "obi:verify", "@type": "@id" },
|
||||
"verificationProperty": { "@id": "obi:verificationProperty" },
|
||||
"verify": "verification"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user