Skip to content

Instantly share code, notes, and snippets.

@ottonomy
ottonomy / displayer-requirements.md
Last active July 28, 2017 21:43
Open Badges Displayer Requirements for Verification

Proposed Requirement: Must display that the Open Badge is an Open Badge

Requirement: Must enable the viewer to initiate verification of the displayed Open Badge and retrieve up-to-date results about its validity.

Details:

  • Must allow a viewer to access a known verification service with input data in hand.
  • Input data may be in the form of a baked badge image, the assertion URL of a hosted-verification Assertion, or the signed JSON string for a signed-verification Assertion.

Recommended Practice:

  • Make user profile information available to the viewer of the Candidate Platform consistent with the privacy wishes expressed by the user who is recipient of the badge, when relevant.
@ottonomy
ottonomy / 20170621-issuer.json
Last active June 21, 2017 16:57
20170621-issuer.json
{
"@context": "https://w3id.org/openbadges/v2",
"id": "https://gist.github.com/ottonomy/92d945eb61bc820d0954b45fd66836c6/raw",
"type": "Issuer",
"name": "First! American Civics 2016",
"url": "http://concentricsky.com",
"telephone": "+15415551212",
"description": "A test issuer for a hypothetical high school civics course",
"image": "https://api.badgr.io/public/issuers/american-civics-2016/image",
"email": "[email protected]"
@ottonomy
ottonomy / 20170621-badgeclass.json
Last active June 21, 2017 16:54
20170621-badgeclass.json
{
"@context": "https://w3id.org/openbadges/v2",
"id": "https://gist.github.com/ottonomy/f920ce98aa93c2d60b685461f4bd22ca/raw",
"type": "BadgeClass",
"name": "Hosted Bill of Rights",
"description": "Description of Bill",
"image": "https://api.badgr.io/public/badges/bill-of-rights/image",
"criteria": {
"id": "https://api.badgr.io/public/badges/bill-of-rights/criteria",
"narrative": "some narrative"
@ottonomy
ottonomy / 20170621-assertion.json
Last active June 26, 2017 19:04
20170621-assertion.json
{
"@context": "https://w3id.org/openbadges/v2",
"id": "https://gist.github.com/ottonomy/30f865699f2047082a4f91f920eb91b4/raw",
"type": "Assertion",
"recipient": {
"type": "email",
"hashed": false,
"identity": "[email protected]"
},
"badge": "https://gist.github.com/ottonomy/f920ce98aa93c2d60b685461f4bd22ca/raw",
@ottonomy
ottonomy / psc.md
Created June 9, 2017 19:23
Links for the Pacific Science Center Discovery Corps program
@ottonomy
ottonomy / embedded-badgeclass-minimal.jsonld
Created July 9, 2015 00:16
Embedded BadgeClass Minimal
{
"@context": {
"id": "@id",
"obi": "https://w3id.org/openbadges#",
"badge": {"@id": "obi:badge", "@type": "@id"},
"name": "http://schema.org/name"
},
"badge": "https://issuer.org/badgeclass1",
"obi:badge": {
"id": "https://issuer.org/badgeclass1",
@ottonomy
ottonomy / credentials context v1
Created April 8, 2015 05:25
draft credentials context v1
{
"@context": {
"id": "@id",
"type": "@type",
"credentials": "http://specification.openbadges.org/credentials/#",
"obi": "http://specification.openbadges.org/#",
"schema": "https://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"dc": "http://purl.org/dc/terms/",
@ottonomy
ottonomy / v1 context
Created April 8, 2015 05:17
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",
{
"@context": {
"id": "@id",
"type": "@type",
"obi": "http://specification.openbadges.org/#",
"assertion": "obi:Assertion",
"badge": { "@id": "badge", "@type": "@id" },
"issuer": { "@id": "obi: Issuer", "@type": "@id" },
"extension": "http://specification.openbadges.org/extensions#",
@ottonomy
ottonomy / extensionSchema.json
Created November 1, 2014 00:34
Sample extension JSON-schema
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "http://extension.org/schema/badgeListUrl",
"title": "BadgelistUrl Extension",
"description": "An extension that allows issuers to declare a list of badge classes that they offer",
"type": "object",
"properties": {
"listUrl": { "type": "string", "format": "uri" }
},
"required": ["listUrl"]