Add simple badgeclass sample
This commit is contained in:
parent
24a2e02fe6
commit
f17f8913bc
@ -43,13 +43,16 @@ public class Samples {
|
||||
|
||||
public static final class OB20 {
|
||||
public static final class JSON {
|
||||
// original: test_verify:test_verify_function
|
||||
// original: test_verify: test_verify_function
|
||||
public final static Sample SIMPLE_ASSERTION_JSON = new Sample("ob20/basic-assertion.json", true);
|
||||
// original: test_graph:test_verify_with_redirection
|
||||
// original: test_graph: test_verify_with_redirection
|
||||
public final static Sample WARNING_REDIRECTION_ASSERTION_JSON = new Sample("ob20/warning-with-redirection.json", true);
|
||||
// original: test_validation: test_can_input_badgeclass
|
||||
public final static Sample SIMPLE_BADGECLASS = new Sample("ob20/assets/badgeclass1.json", true);
|
||||
}
|
||||
|
||||
public static final class PNG {
|
||||
// original: test_verify: test_verify_of_baked_image
|
||||
public final static Sample SIMPLE_JSON_PNG = new Sample("ob20/simple-badge.png", true);
|
||||
}
|
||||
}
|
||||
|
208
inspector-vc/src/test/resources/ob20/assets/badgeclass1.json
Normal file
208
inspector-vc/src/test/resources/ob20/assets/badgeclass1.json
Normal file
@ -0,0 +1,208 @@
|
||||
{
|
||||
"@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"
|
||||
},
|
||||
"id": "http://example.org/badgeclass1",
|
||||
"type": "BadgeClass",
|
||||
"name": "Example Badge",
|
||||
"description": "An example",
|
||||
"criteria": "http://example.org/criteria",
|
||||
"issuer": "http://example.org/issuer1",
|
||||
"image": "http://example.org/robotics-badge.png"
|
||||
}
|
206
inspector-vc/src/test/resources/ob20/assets/issuer1.json
Normal file
206
inspector-vc/src/test/resources/ob20/assets/issuer1.json
Normal file
@ -0,0 +1,206 @@
|
||||
{
|
||||
"@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"
|
||||
},
|
||||
"id": "http://example.org/issuer1",
|
||||
"type": "Issuer",
|
||||
"name": "Example Issuer",
|
||||
"email": "me@example.org",
|
||||
"url": "http://example.org"
|
||||
}
|
Loading…
Reference in New Issue
Block a user