Skip to content

Instantly share code, notes, and snippets.

@ottonomy
Created April 8, 2015 05:17
Show Gist options
  • Save ottonomy/72642187019265236fa7 to your computer and use it in GitHub Desktop.
Save ottonomy/72642187019265236fa7 to your computer and use it in GitHub Desktop.
draft 8 April 2015 - Open Badges Context 1.1
{
"@context": {
"id": "@id",
"type": "@type",
"obi": "https://w3id.org/openbadges#",
"validation": "obi:validation",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"schema": "http://schema.org/",
"sec": "https://w3id.org/security#",
"Assertion": "obi:Assertion",
"BadgeClass": "obi:BadgeClass",
"Issuer": "obi:Issuer",
"Extension": "obi:Extension",
"hosted": "obi:HostedBadge",
"signed": "obi:SignedBadge",
"TypeValidation": "obi:TypeValidation",
"FrameValidation": "obi:FrameValidation",
"name": {
"@id": "schema:name",
"@type": "xsd:string"
},
"description": {
"@id": "schema:description",
"@type": "xsd:string"
},
"url": {
"@id": "schema:url",
"@type": "@id"
},
"image": {
"@id": "schema:image",
"@type": "@id"
},
"uid": {
"@id": "obi:uid",
"type": "xsd:string"
},
"recipient": {
"@id": "obi:recipient",
"type": "@id"
},
"hashed": {
"@id": "obi:hashed",
"type": "xsd:boolean"
},
"salt": {
"@id": "obi:salt",
"@type": "xsd:string"
},
"identity": {
"@id": "obi:identityHash",
"@type": "xsd:string"
},
"issuedOn": {
"@id": "obi:issueDate",
"@type": "xsd:dateTime"
},
"expires": {
"@id": "sec:expiration",
"@type": "xsd:dateTime"
},
"evidence": {
"@id": "obi:evidence",
"@type": "@id"
},
"verify": {
"@id": "obi:verify",
"@type": "@id"
},
"badge": {
"@id": "obi:badge",
"@type": "@id"
},
"criteria": {
"@id": "obi:criteria",
"@type": "@id"
},
"tags": {
"@id": "schema:keywords",
"@type": "xsd:string"
},
"alignment": {
"@id": "obi:alignment",
"@type": "@id"
},
"issuer": {
"@id": "obi:issuer",
"@type": "@id"
},
"email": "schema:email",
"revocationList": {
"@id": "obi:revocationList",
"@type": "@id"
}
},
"validation": [
{
"type": "TypeValidation",
"obi:validatesType": "Assertion",
"obi:validationSchema": "http://specification.openbadges.org/1.1/schema/assertion.json"
},
{
"type": "TypeValidation",
"obi:validatesType": "BadgeClass",
"obi:validationSchema": "http://specification.openbadges.org/1.1/schema/badgeclass.json"
},
{
"type": "TypeValidation",
"obi:validatesType": "Issuer",
"obi:validationSchema": "http://specification.openbadges.org/1.1/schema/issuer.json"
},
{
"type": "TypeValidation",
"obi:validatesType": "Extension",
"obi:validationSchema": "http://specification.openbadges.org/1.1/schema/extension.json"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment